1
0
Fork 0
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:
Mzhelskiy Maxim 2010-02-06 20:18:06 +00:00
parent 3559678893
commit 1124380108

View file

@ -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;
}
}