PEAR Progress2 logo

HTML_Progress2 : The Definitive Guide

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

See

see HTML_Progress2::addListener

Throws

throws HTML_PROGRESS2_ERROR_INVALID_CALLBACK, 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