src/Alg/Object/EventHandler.php
public function handleEvent( $eventName )
	{
		$counter	= 0;
		if( !array_key_exists( $eventName, $this->callbacks ) )
			return $counter;
		foreach( $this->callbacks[$eventName] as $callback )
		{
			extract( $callback );
			$factory	= new Alg_Object_MethodFactory;												//  build a new Method Factory
			$factory->callObjectMethod( $object, $methodName, $methodParameters );
			$counter++;																				//  increase Callback Counter
			$this->counter++;																		//  increase total Callback Counter
		}
		return $counter;
	}
public function handleEvent( $eventName )
	{
		$counter	= 0;
		if( !array_key_exists( $eventName, $this->callbacks ) )
			return $counter;
		foreach( $this->callbacks[$eventName] as $callback )
		{
			extract( $callback );
			$factory	= new Alg_Object_MethodFactory;												//  build a new Method Factory
			$factory->callObjectMethod( $object, $methodName, $methodParameters );
			$counter++;																				//  increase Callback Counter
			$this->counter++;																		//  increase total Callback Counter
		}
		return $counter;
	}
public function handleEvent ( $ eventName ) { $ counter = 0 ; if ( ! array_key_exists ( $ eventName , $ this -> callbacks ) ) return $ counter ; foreach ( $ this -> callbacks [ $ eventName ] as $ callback ) { extract ( $ callback ) ; $ factory = new Alg_Object_MethodFactory ; //  build a new Method Factory $ factory -> callObjectMethod ( $ object , $ methodName , $ methodParameters ) ; $ counter ++ ; //  increase Callback Counter $ this -> counter ++ ; //  increase total Callback Counter } return $ counter ; }
Trigger all registered Callbacks for an Event.
@access		public
@public		string		$eventName		Name of Event to trigger
@return		int			Number of handled Callbacks
Trigger all registered Callbacks for an Event .