Class Listener
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.
- Blesta\Core\Util\Events\Common\AbstractListener
- Blesta\Core\Util\Events\Listener
Namespace: Blesta\Core\Util\Events
Package: blesta\core\Util\Events
Copyright: Copyright (c) 2018, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at core/Util/Events/Listener.php
Package: blesta\core\Util\Events
Copyright: Copyright (c) 2018, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at core/Util/Events/Listener.php
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
|
#
register( string $name, callable $callback = null, string $file = null )
Register a listener, to be notified when the event is triggered. Only permits one registered event per callback. |
public
|
#
unregister( string $name, callable $callback = null )
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. |
getRegistered()
|