setMaximum Manual
defines the progress bar's minimum value
Synopsis
void setMaximum( $max )
Attributes
$max is an integer with a minimum of 0, or
given by HTML_Progress_DM::getMinimum(), but as no maximum limit.
Description
The setMaximum() method is used to set the
maximal value in the mathematical model of the progress bar.
If the maximum value is less than current value, then the current value
is set to this maximum.
Example
<?php
require_once ('HTML/Progress.php');
$bar = new HTML_Progress();
// direct way
$bar->setMaximum(80);
print('maximum = ' . $bar->getMaximum());
echo '<br/>';
// another way
$dm =& $bar->getDM();
$dm->setMaximum(80);
print('maximum = ' . $bar->getMaximum());
?>
See Also
getMaximum Manual