Event.php
function detachListener(iListener $listener)
    {
        $this->_listenerQueue()->del($listener);

        if (in_array($listener, $this->_c_listeners)) {
            foreach ($this->_c_listeners as $k => $l) {
                if ($l === $listener) {
                    unset($this->_c_listeners[$k]);
                    break;
                }
            }
        }

        return $this;
    }
function detachListener(iListener $listener)
    {
        $this->_listenerQueue()->del($listener);

        if (in_array($listener, $this->_c_listeners)) {
            foreach ($this->_c_listeners as $k => $l) {
                if ($l === $listener) {
                    unset($this->_c_listeners[$k]);
                    break;
                }
            }
        }

        return $this;
    }
function detachListener ( iListener $ listener ) { $ this -> _listenerQueue ( ) -> del ( $ listener ) ; if ( in_array ( $ listener , $ this -> _c_listeners ) ) { foreach ( $ this -> _c_listeners as $ k => $ l ) { if ( $ l === $ listener ) { unset ( $ this -> _c_listeners [ $ k ] ) ; break ; } } } return $ this ; }
Detach A Listener From List

- to detach by name you have to findListener() first

@param iListener $listener

@return $this
Detach A Listener From List