HTML_Progress::isStringPainted

HTML_Progress

Prev |  | Next
HTML_Progress::isStringPainted determines whether the progress meter string is painted or not ## Synopsis require_once 'HTML/Progress.php'; bool HTML_Progress::isStringPainted() ## Description This method is used to know whether the progress meter string is painted or not. If returns value is FALSE, the progress meter displays the value returned by HTML_Progress::getPercentComplete() method formatted as a percent such as 33%. ## Note ( HTML_Progress >= 1.0 )
| This function can not be called statically.
## See HTML_Progress::setStringPainted ## Example

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

    $bar = new HTML_Progress();
    $test = "\$res = \$bar->isStringPainted() ? 'yes':'no';";

    eval($test);
    printf('is custom string painted ? %s <br/>', $res);

    $bar->setStringPainted(true);
    eval($test);
    printf('and now, is custom string painted ? %s', $res);
    ?>
Prev | Up | Next
HTML_Progress::setDM | Reference Guide | HTML_Progress::setStringPainted
Documentation generated on Sun, 12 Sep 2004 20:23:08 +0200 by phpDocumentor 1.3.0RC3