english/libraries/joomla/base/observable.php
/**
	 * Detach an observer object
	 *
	 * @param   object   $observer  An observer object to detach.
	 *
	 * @return  bool  True if the observer object was detached.
	 * @since   11.1
	 */
Detach an observer object
@param   object   $observer  An observer object to detach.

@return  bool  True if the observer object was detached.
Detach an observer object @param object $observer An observer object to detach . @return bool True if the observer object was detached .
public function detach($observer)
	{
		$retval = false;
		$key = array_search($observer, $this->_observers);
		if ($key !== false) {
			unset($this->_observers[$key]);
			$retval = true;
			foreach($this->_methods AS &$method)
			{
				$k = array_search($key, $method);
				if ($k !== false) {
					unset($method[$k]);
				}
			}
		}
		return $retval;
	}
public function detach ( $ observer ) { $ retval = false ; $ key = array_search ( $ observer , $ this -> _observers ) ; if ( $ key !== false ) { unset ( $ this -> _observers [ $ key ] ) ; $ retval = true ; foreach ( $ this -> _methods AS & $ method ) { $ k = array_search ( $ key , $ method ) ; if ( $ k !== false ) { unset ( $ method [ $ k ] ) ; } } } return $ retval ; }
Detach an observer object
 @param   object   $observer  An observer object to detach.
Detach an observer object @param object $observer An observer object to detach .
// Initialise variables.