src/ADT/Event/Handler.php
public function trigger( $key, $caller = NULL, $arguments = NULL ){
		if( !( $events = $this->getBoundEvents( $key, TRUE ) ) )
			return NULL;
		$this->removeStopMark( $key );
		foreach( $events as $callback ){
			if( in_array( $key, $this->stopped ) )
				continue;
			$event	= new ADT_Event_Data( $this );
			$event->key			= $callback[0];
			$event->trigger		= $key;
			$event->caller		= $caller;
			$event->data		= $callback[1]->getData();
			$event->arguments	= $arguments;
			$result			= call_user_func( $callback[1]->getCallback(), $event );
			if( $result === FALSE )
				return FALSE;
		}
		return TRUE;
	}
public function trigger( $key, $caller = NULL, $arguments = NULL ){
		if( !( $events = $this->getBoundEvents( $key, TRUE ) ) )
			return NULL;
		$this->removeStopMark( $key );
		foreach( $events as $callback ){
			if( in_array( $key, $this->stopped ) )
				continue;
			$event	= new ADT_Event_Data( $this );
			$event->key			= $callback[0];
			$event->trigger		= $key;
			$event->caller		= $caller;
			$event->data		= $callback[1]->getData();
			$event->arguments	= $arguments;
			$result			= call_user_func( $callback[1]->getCallback(), $event );
			if( $result === FALSE )
				return FALSE;
		}
		return TRUE;
	}
public function trigger ( $ key , $ caller = NULL , $ arguments = NULL ) { if ( ! ( $ events = $ this -> getBoundEvents ( $ key , TRUE ) ) ) return NULL ; $ this -> removeStopMark ( $ key ) ; foreach ( $ events as $ callback ) { if ( in_array ( $ key , $ this -> stopped ) ) continue ; $ event = new ADT_Event_Data ( $ this ) ; $ event -> key = $ callback [ 0 ] ; $ event -> trigger = $ key ; $ event -> caller = $ caller ; $ event -> data = $ callback [ 1 ] -> getData ( ) ; $ event -> arguments = $ arguments ; $ result = call_user_func ( $ callback [ 1 ] -> getCallback ( ) , $ event ) ; if ( $ result === FALSE ) return FALSE ; } return TRUE ; }
Builds event data object and handles call of triggered event.
@access		public
@param		string		$key		Event trigger key
@param		object		$caller		Object which triggered event
@param		mixed		$arguments	Data for event on trigger
@return		boolean
Builds event data object and handles call of triggered event .