web/app/db.php
/**
	 * Callbacks are executed in the order in which they are registered until one
	 * of them returns something other than null.
	 */
Callbacks are executed in the order in which they are registered until one
of them returns something other than null.
Callbacks are executed in the order in which they are registered until one of them returns something other than null .
function run_callbacks( $group, $args = null) {
		if ( !isset( $this->hyper_callbacks[ $group ] ) || !is_array( $this->hyper_callbacks[ $group ] ) )
			return null;
		if ( !isset($args) ) {
			$args = array( &$this );
		} elseif ( is_array( $args ) ) {
			$args[] = &$this;
		} else {
			$args = array( $args, &$this );
		}
		foreach ( $this->hyper_callbacks[ $group ] as $func ) {
			$result = call_user_func_array($func, $args);
			if ( isset($result) )
				return $result;
		}
	}
function run_callbacks ( $ group , $ args = null ) { if ( ! isset ( $ this -> hyper_callbacks [ $ group ] ) || ! is_array ( $ this -> hyper_callbacks [ $ group ] ) ) return null ; if ( ! isset ( $ args ) ) { $ args = array ( & $ this ) ; } elseif ( is_array ( $ args ) ) { $ args [ ] = & $ this ; } else { $ args = array ( $ args , & $ this ) ; } foreach ( $ this -> hyper_callbacks [ $ group ] as $ func ) { $ result = call_user_func_array ( $ func , $ args ) ; if ( isset ( $ result ) ) return $ result ; } }
Callbacks are executed in the order in which they are registered until one
 of them returns something other than null.
Callbacks are executed in the order in which they are registered until one of them returns something other than null .