getPercentComplete Manual
returns the percent complete for the progress bar
Synopsis
float getPercentComplete()
Description
The getPercentComplete() method is used to retrieve
degree of completion from 0.00 to 1.00
Example
<?php
require_once ('HTML/Progress.php');
$bar = new HTML_Progress();
$bar->setValue(18);
// direct way
print('completed at ' . $bar->getPercentComplete());
echo '<br/>';
// another way
$dm =& $bar->getDM();
print('completed at ' . $dm->getPercentComplete());
?>
See Also
getValue Manual,
getMaximum Manual