Class Events
Package: blesta\app\components\events
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Located at components/events/events.php
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
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 |
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
|
Magic methods summary
Properties summary
private static
array
|
$listeners |
#
Holds all registered listeners |