HTML_Progress::getPercentComplete

HTML_Progress

Prev |  | Next
HTML_Progress::getPercentComplete returns the percent complete of the progress meter ## Synopsis require_once 'HTML/Progress.php'; float HTML_Progress::getPercentComplete() ## Description This method is used to retrieve degree of completion from 0.00 to 1.00 ## Note ( HTML_Progress >= 1.0 )
| This function can not be called statically.
| This method is also a wrapper for HTML_Progress_DM::getPercentComplete.
## See HTML_Progress::getValue, HTML_Progress::getMaximum ## Example

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

    $bar = new HTML_Progress();
    $bar->setValue(18);

    printf('direct way: progress completed at %f <br/>', $bar->getPercentComplete());

    $dm =& $bar->getDM();
    printf('another way: progress completed at %f <br/>', $dm->getPercentComplete());
    ?>
Prev | Up | Next
HTML_Progress::incValue | Reference Guide | HTML_Progress_UI::getOrientation
Documentation generated on Sun, 12 Sep 2004 20:23:18 +0200 by phpDocumentor 1.3.0RC3