ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
EventEmitterInterface.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\Event;
4 
16 
25  function on($eventName, callable $callBack, $priority = 100);
26 
35  function once($eventName, callable $callBack, $priority = 100);
36 
63  function emit($eventName, array $arguments = [], callable $continueCallBack = null);
64 
74  function listeners($eventName);
75 
86  function removeListener($eventName, callable $listener);
87 
98  function removeAllListeners($eventName = null);
99 
100 }
on($eventName, callable $callBack, $priority=100)
Subscribe to an event.
removeListener($eventName, callable $listener)
Removes a specific listener from an event.
removeAllListeners($eventName=null)
Removes all listeners.
once($eventName, callable $callBack, $priority=100)
Subscribe to an event exactly once.
emit($eventName, array $arguments=[], callable $continueCallBack=null)
Emits an event.
listeners($eventName)
Returns the list of listeners for an event.