mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-17 07:10:48 +03:00
add hook for events
This commit is contained in:
parent
3559678893
commit
1124380108
|
@ -98,9 +98,11 @@ abstract class Action extends Object {
|
|||
} else {
|
||||
continue 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
$sCmd='$result=$this->'.$aEvent['method'].'();';
|
||||
$this->Hook_Run("action_event_".strtolower($this->sCurrentAction)."_before",array('event'=>$this->sCurrentEvent,'params'=>$this->GetParams()));
|
||||
eval($sCmd);
|
||||
$this->Hook_Run("action_event_".strtolower($this->sCurrentAction)."_after",array('event'=>$this->sCurrentEvent,'params'=>$this->GetParams()));
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue