src/Hook/Hook.php
public function triggerHook($params=NULL) {
		if( !isset($params) ) {
			$params = array(
				0 => null,
			);
		} else if( !is_array($params) ) {
			$params = array(
				0 => $params,
			); 
		}
		foreach($this->callbacks as $callback) {
			$r	= call_user_func_array($callback, $params);
			if( $r !== NULL ) {
				$params[0] = $r;
			}
		}
		return isset($params[0]) ? $params[0] : null;
	}
public function triggerHook($params=NULL) {
		if( !isset($params) ) {
			$params = array(
				0 => null,
			);
		} else if( !is_array($params) ) {
			$params = array(
				0 => $params,
			); 
		}
		foreach($this->callbacks as $callback) {
			$r	= call_user_func_array($callback, $params);
			if( $r !== NULL ) {
				$params[0] = $r;
			}
		}
		return isset($params[0]) ? $params[0] : null;
	}
public function triggerHook ( $ params = NULL ) { if ( ! isset ( $ params ) ) { $ params = array ( 0 => null , ) ; } else if ( ! is_array ( $ params ) ) { $ params = array ( 0 => $ params , ) ; } foreach ( $ this -> callbacks as $ callback ) { $ r = call_user_func_array ( $ callback , $ params ) ; if ( $ r !== NULL ) { $ params [ 0 ] = $ r ; } } return isset ( $ params [ 0 ] ) ? $ params [ 0 ] : null ; }
Trigger this hook.

@param array $params Params sent to the callback.
@return mixed The first param as result.
@see trigger()

Trigger this hook calling all associated callbacks.
$params array is passed to the callback as its arguments.
The first parameter, $params[0], is considered as the result of the trigger.
If $params is not an array, its value is assigned to the second value of a new $params array.
Trigger this hook .