Class Events
Event Handler
Stores callbacks for particular events that may be executed when the event is triggered. Events are static, so each instance may register events triggered in this or other instances of the Event handler.
Package: blesta\components\events
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/events/events.php
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/events/events.php
Methods summary
public
|
#
register( string $event_name, callable $callback, string $file_name = null )
Register a listener, to be notified when the event is triggered. Only permits one registered event per callback. |
public
|
#
unregister( string $event_name, callable $callback )
Unregisters a listener if the event has been registered. Will remove all copies of the registered event in the case that it was registered multiple times. |
public
|
#
trigger(
Notifies all registered listeners of the event (called in the order they were set). |
public
|
#
triggerUntil(
Notifies all registered listeners of the event (called in the order they were set), until one returns true, then ceases notifying all remaining listeners. |
public
array
|