Property | Type | Description | |
---|---|---|---|
$events | containing all registered callbacks, indexed by event name |
Method | Description | |
---|---|---|
clear ( ) | Clear all registered listeners. | |
eventName ( integer $event ) : string | false | Returns the name of the given event from constant | |
fire ( string $event, mixed $data = null ) : true | Raise a given event with the supplied data. | |
forget ( string $event, mixed $callback ) : true | Stop a given callback from listening on a specific event. | |
listen ( string $event, mixed $callback ) : true | Listen in on a given event to have a specified callback fired. |