public function addHookTo($zone, $hook, Array $args=array()){
		if(!isset($this->content[$zone])){
			$this->content[$zone] = array();
		}
		//allow just a string reference to a method on this skin object
		if (!is_array($hook) && method_exists($this, $hook)) {
			$hook = array($this, $hook);
		}
		if (!is_callable($hook, false, $callbable_name)) {
			throw new \Exception('Invalid skin content hook for zone:'.$zone.' (Hook callback was: '.$callbable_name.')');
		}
		$this->content[$zone][] = array('type'=>'hook', 'hook'=>$hook, 'arguments'=>$args);
	}
public function addHookTo($zone, $hook, Array $args=array()){
		if(!isset($this->content[$zone])){
			$this->content[$zone] = array();
		}
		//allow just a string reference to a method on this skin object
		if (!is_array($hook) && method_exists($this, $hook)) {
			$hook = array($this, $hook);
		}
		if (!is_callable($hook, false, $callbable_name)) {
			throw new \Exception('Invalid skin content hook for zone:'.$zone.' (Hook callback was: '.$callbable_name.')');
		}
		$this->content[$zone][] = array('type'=>'hook', 'hook'=>$hook, 'arguments'=>$args);
	}
public function addHookTo ( $ zone , $ hook , Array $ args = array ( ) ) { if ( ! isset ( $ this -> content [ $ zone ] ) ) { $ this -> content [ $ zone ] = array ( ) ; } //allow just a string reference to a method on this skin object if ( ! is_array ( $ hook ) && method_exists ( $ this , $ hook ) ) { $ hook = array ( $ this , $ hook ) ; } if ( ! is_callable ( $ hook , false , $ callbable_name ) ) { throw new \ Exception ( 'Invalid skin content hook for zone:' . $ zone . ' (Hook callback was: ' . $ callbable_name . ')' ) ; } $ this -> content [ $ zone ] [ ] = array ( 'type' => 'hook' , 'hook' => $ hook , 'arguments' => $ args ) ; }
Add the result of a function callback to a zone

eg.	add('before:content', array('methodName', $obj))
add('before:content', 'methodOnThisObject')
Add the result of a function callback to a zone