HTML_Progress_Monitor::setProgressElement
attachs a progress bar to the monitor
Synopsis
require_once 'HTML/Progress/monitor.php';
void
HTML_Progress_Monitor::setProgressElement(
object
$bar)
Description
This method is used to attach a new progress bar to the current monitor.
All progress events will be send to this monitor thru the listen interface
(HTML_Progress_Monitor::notify).
Parameter
- object
$bar
-
a html_progress instance
Throws
Possible PEAR_Error values
Error level |
Error code |
Error message |
Solution |
exception |
HTML_PROGRESS_ERROR_INVALID_INPUT |
invalid input, parameter #1 "$val" was expecting (HTML_Progress object) |
Fixed the cast of parameter |
Note
( HTML_Progress >= 1.1 )
| This function can not be called statically. |
See
HTML_Progress_Monitor::getProgressElement
Example
See example of HTML_Progress_Monitor::run.