public function detach($event, IObserver $observer)
    {
        if (!isset($this->_observers[$event])) {
            return;
        }

        foreach ($this->_observers[$event] as $key=> $attachedObserver) {
            if ($attachedObserver === $observer) {
                array_splice($this->_observers[$event], $key, 1);
            }
        }
    }
public function detach($event, IObserver $observer)
    {
        if (!isset($this->_observers[$event])) {
            return;
        }

        foreach ($this->_observers[$event] as $key=> $attachedObserver) {
            if ($attachedObserver === $observer) {
                array_splice($this->_observers[$event], $key, 1);
            }
        }
    }
public function detach ( $ event , IObserver $ observer ) { if ( ! isset ( $ this -> _observers [ $ event ] ) ) { return ; } foreach ( $ this -> _observers [ $ event ] as $ key => $ attachedObserver ) { if ( $ attachedObserver === $ observer ) { array_splice ( $ this -> _observers [ $ event ] , $ key , 1 ) ; } } }
Detatch an observer from an event.
@param string    $event    The event to detach from.
@param IObserver $observer The observer that we want to detach.
Detatch an observer from an event .