![]() HTML_Progress2 : The Definitive Guide
|
Table of Contents
HTML_Progress 1.x allows multiple signatures (5) while HTML_Progress2 allow one unique signature even if all parameters are optional.
Resume of HTML_Progress 1.x signatures :
![]() |
Caution |
---|---|
Signature #5 is no more allowed because feature was removed. |
HTML_Progress2 signature :
$bar = new HTML_Progress2($errorPrefs, $orient, $min, $max, $percentLabel); /* $errorPrefs :hash of options to configure the API error handling system default is empty array (use PEAR_Error object) $orient :orientation of the progress bar (see constants) $min :minimum value of the progress bar (default is zero) $max :maximum value of the progress bar (default is 100) $percentLabel :progress bar percent label identifier (default is 'pct1') */
Returns the current API version compatible with the PHP function : version_compare()
This method return now a string rather than a float, and allow a largest version naming (such as x.y.zRCn)
Returns the percent complete for the progress meter
This method has now an optional parameter that allows to return either
Rendering of the progress meter.
![]() |
Important |
---|---|
This method has a new behavior. It will now send only
toHtml() output to browser, while in previous version this method managed browser refresh. Refresh are now made by the
moveNext() or
moveStep() method.
|
HTML_Progress2 : The Definitive Guide | v 1.0.0 : September 23, 2005 |