addEventListener
API Quick reference
API:addEventListener
Description / Usage
string addEventListener($evtName, $pluginName);
Add an event listener to a plugin - only for use within the current execution cycle.
Function Source
function addEventListener($evtName, $pluginName) { if (!$evtName || !$pluginName) return false; if (!array_key_exists($evtName,$this->pluginEvent)) $this->pluginEvent[$evtName] = array(); return array_push($this->pluginEvent[$evtName], $pluginName); // return array count }
Suggest an edit to this page.