13 return isset($this->_hooks[$hookKey]);
21 if(isset($this->_hooks[$hookKey])){
22 return $this->_hooks[$hookKey];
32 public function addHook($hookKey,$callable){
33 $this->_hooks[$hookKey]=$callable;
42 public function execHook($hookKey,...$variables){
43 if(($hook=$this->
getHook($hookKey))!=null){
44 return call_user_func_array($hook,$variables);
execHook($hookKey,... $variables)
Executes the hook with key $hookKey.
addHook($hookKey, $callable)
Adds a new Hook.