setValue Manual
set the current progress bar's value
Synopsis
void setValue( $val )
Attributes
$val is an integer between the minimum value,
given by HTML_Progress_DM::getMinimum(), and the maximum value,
given by HTML_Progress_DM::getMaximum().
Description
The setValue() method is used to set the
current value in the mathematical model of the progress bar.
Example
<?php
require_once ('HTML/Progress.php');
$bar = new HTML_Progress();
// direct way
$bar->setValue(45);
print('value = ' . $bar->getValue());
echo '<br/>';
// another way
$dm =& $bar->getDM();
$dm->setValue(45);
print('value = ' . $bar->getValue());
?>
See Also
getValue Manual,
incValue Manual