setIncrement Manual
defines the progress bar's increment value
Synopsis
void setIncrement( $inc )
Attributes
$inc is a non-zero integer.
Description
The setIncrement() method is used to set the
increment value in the mathematical model of the progress bar.
The default value is set to +1.
Example
<?php
require_once ('HTML/Progress.php');
$bar = new HTML_Progress();
// direct way
$bar->setIncrement(10);
print('increment = ' . $bar->getIncrement());
echo '<br/>';
// another way
$dm =& $bar->getDM();
$dm->setIncrement(10);
print('increment = ' . $bar->getIncrement());
?>
See Also
getIncrement Manual