Documentation > Events


Events are used to trigger interoperability between modules.  They are fired at various points during the code and can be hooked with a callback to execute additional code at that time.



Add an option to the global option table.

$eventName string Name of the event to hook
$callback callable Reference to callback function
$module string Limit callback to only operate on specified module (class name)
$order integer Order this callback should run


Retreive a value defined by AddOption

$eventName string Name of the event to hook
$object object Object which this event has run on (can be null to trigger on all modules)
$eventData array Additional arguments to pass to callback handlers
Fork me on GitHub