PEAR logo

PHP_CompatInfo : The Definitive Guide

Name

PHP_CompatInfo::removeListener — Removes a registered listener

Synopsis

    require_once 'PHP/CompatInfo.php';
   
bool PHP_CompatInfo::removeListener ( $callback,  
  $nName = EVENT_DISPATCHER_GLOBAL );  
mixed   $callback ;
string   $nName = EVENT_DISPATCHER_GLOBAL ;

Description

Removes a registered listener that correspond to the given criteria.

Parameter

mixed $callback

A PHP callback

string $nName

(optional) Expected notification name

Return value

returns True if listener was removed, false otherwise.

Throws

throws no exceptions thrown

Since

since version 1.8.0b3 (2008-06-07)

Note

This function can not be called statically.

Example

see PHP_CompatInfo::addListener example

PHP_CompatInfo : The Definitive Guide v 1.8.0 : August 1, 2008