kernel/private/classes/ezpevent.php
public function detach( $name, $id )
    {
        if ( !isset( $this->listeners[$name][$id] ) )
        {
            return false;
        }

        unset( $this->listeners[$name][$id] );
        return true;
    }
public function detach( $name, $id )
    {
        if ( !isset( $this->listeners[$name][$id] ) )
        {
            return false;
        }

        unset( $this->listeners[$name][$id] );
        return true;
    }
public function detach ( $ name , $ id ) { if ( ! isset ( $ this -> listeners [ $ name ] [ $ id ] ) ) { return false ; } unset ( $ this -> listeners [ $ name ] [ $ id ] ) ; return true ; }
Detach an event listener by id given when it was added.

@param string $name
@param int $id The unique id given by {@see attach()}
@return bool True if the listener has been correctly detached
Detach an event listener by id given when it was added .