getListeners Manual
returns a list of current listeners attached on the progress bar
Synopsis
boolean removeListener( $observer )
Attributes
Name |
Type |
observer |
object |
Description
The getListeners() method is used to know what are
the listeners attached on a progress bar.
Example
<?php
require_once ('HTML/Progress/monitor.php');
$bar = new HTML_Progress();
$mon = new HTML_Progress_Monitor();
$li = $bar->getListeners();
print
(count($li) .
' listener(s)');
echo '<br/>';
$bar->addListener($mon);
$li = $bar->getListeners();
print
(count($li) .
' listener(s) now');
?>
See Also
addListener Manual,
removeListener Manual