HTML_Progress_UI::getBorderAttributes

HTML_Progress

Prev |  | Next
HTML_Progress_UI::getBorderAttributes returns border attributes list of the progress meter ## Synopsis require_once 'HTML/Progress/UI.php'; mixed HTML_Progress_UI::getCellAttributes( bool $asString = FALSE) ## Description This method is used to retrieve border attributes of a progress meter. Ouput can be an array or a string depending of the $asString parameter value. Default behavior will return an associative array. ## Parameter boolean $asString whether to return the attributes list as string. ## Throws

Possible PEAR_Error values

Error level | Error code | Error message | Solution
exception | HTML_PROGRESS_ERROR_INVALID_INPUT | invalid input, parameter #1 "$asString" was expecting "boolean" | Fixed the cast of parameter
## Note ( HTML_Progress >= 1.0 )
| This function can not be called statically.
## See HTML_Progress_UI::setBorderAttributes, ## Example Example below will show you the border attributes list of a progress meter in two formats: array (default) and string.

    <?php
    require_once 'HTML/Progress.php';

    $bar = new HTML_Progress();
    $bar->setBorderPainted(true);

    $ui =& $bar->getUI();
    $ui->setBorderAttributes('width=1 color=navy');

    print '<pre>';
    var_dump($ui->getBorderAttributes());
    var_dump($ui->getBorderAttributes(true));
    print '</pre>';
    ?>
Prev | Up | Next
HTML_Progress_UI::setCellCoordinates | Reference Guide | HTML_Progress_UI::setBorderAttributes
Documentation generated on Sun, 12 Sep 2004 20:23:25 +0200 by phpDocumentor 1.3.0RC3