PEAR Progress2 logo

HTML_Progress2 : The Definitive Guide

Name

HTML_Progress2::setMaximum — Sets the progress bar's maximum value.

Synopsis

      require_once 'HTML/Progress2.php';
     
void HTML_Progress2::setMaximum( $max);  
integer   $max;

Description

Set the maximum value at which the progress meter will stop. The default value is 100 and can't be less than minimum. If the new maximum is different than previous value, all listeners are notified.

Parameter

integer $max

progress meter's maximal value

See

see HTML_Progress2::getMaximum

Throws

throws HTML_PROGRESS2_ERROR_INVALID_INPUT

Note

since 2.0.0

This function can not be called statically.

HTML_Progress2 : The Definitive Guide v 2.4.0 : April 20, 2007