HTML_Progress_UI::getStyle

HTML_Progress

Prev |  | Next
HTML_Progress_UI::getStyle returns instance of HTML_CSS object ## Synopsis require_once 'HTML/Progress/UI.php'; string &HTML_Progress_UI::getStyle() ## Description This method is used to retrieve the cascading style sheet required to run properly the progress meter. ## Note ( HTML_Progress >= 0.2, HTML_CSS )
| This function can not be called statically.
| You can also call the HTML_Progress::getStyle method, that will retrieve the same style sheet in plain text (all styles prefixed by the progress meter identification class).
## See HTML_Progress_UI::getProgressAttributes, HTML_Progress_UI::getBorderAttributes, HTML_Progress_UI::getStringAttributes, HTML_Progress_UI::getCellAttributes ## Example Example below will print inline cascading style sheet of a default progress bar.

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

    $bar = new HTML_Progress();

    $ui =& $bar->getUI();
    $css =& $ui->getStyle();

    print '<pre>';
    echo '<h1>object</h1>';
    print_r($css);
    echo '<h1>plain text</h1><br/>';
    print_r($css->toString());
    print '</pre>';
    ?>
Prev | Up | Next
HTML_Progress_UI::setScript | Reference Guide | HTML_Progress_UI::drawCircleSegments
Documentation generated on Sun, 12 Sep 2004 20:23:31 +0200 by phpDocumentor 1.3.0RC3