Handles registering events and calling the event handlers. The event register is a hierarchical list with the following format: Raising class -> Event -> Catching class -> Callback type -> Function The first three elements should be self explanatory, as should the function name. The callback type, however, represents how the function will be called. The valid types are “instance” and “static”, the difference being that an instance of the class is not created for “static” callbacks.
Note that this presupposes that all events are raised and caught by a class, but this is not an absolute requirement. For either type of callback function, if the catching class does not exist (i.e. the callback was directly registered using a dumby name), the event will be raised as a regular function.
Summary
| Handles registering events and calling the event handlers. |
| |
| Check if an event exists. |
| Check if a given event has any handlers registered. |
| |
| Adds a handler function to an event. |
| Raises an arbitrary event for the given class. |
| Activates an event for the raising object. |