Class AbstractListener
Abstract listener for events
Direct known subclasses
Blesta\Core\Util\Events\Listener
Abstract
Namespace: Blesta\Core\Util\Events\Common
Package: blesta\core\Util\Events\Common
Copyright: Copyright (c) 2019, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at core/Util/Events/Common/AbstractListener.php
Namespace: Blesta\Core\Util\Events\Common
Package: blesta\core\Util\Events\Common
Copyright: Copyright (c) 2019, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at core/Util/Events/Common/AbstractListener.php
abstract public
|
#
trigger(
Notifies all registered listeners of the event (called in the order they were set). |
abstract 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, 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 )
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
array
|