Name
HTML_Progress2::removeListener
—
Removes a registered observer.
Synopsis
require_once 'HTML/Progress2.php';
bool HTML_Progress2::removeListener(
|
$callback,
|
|
|
$nName =
EVENT_DISPATCHER_GLOBAL) ;
|
|
mixed
|
$callback;
|
string
|
$nName = EVENT_DISPATCHER_GLOBAL;
|
Description
Detachs a previously registered observer and remove the Event
Dispatcher if there is no more observer registered.
Parameter
-
mixed
$callback
-
PHP callback that act as listener
-
string
$nName
-
(optional) Expected notification name, serves as a filter
Return value
returns True if observer was
removed, false otherwise
Throws
throws
HTML_PROGRESS2_ERROR_INVALID_CALLBACK,
HTML_PROGRESS2_ERROR_INVALID_INPUT
Note
since 2.0.0
This function can not be called statically.