프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$events | containing all registered callbacks, indexed by event name |
메소드 | 설명 | |
---|---|---|
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. |