ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
EventEmitterInterface.php
Go to the documentation of this file.
1<?php
2
3namespace 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}
An exception for terminatinating execution or to throw for unit testing.
removeAllListeners($eventName=null)
Removes all listeners.
emit($eventName, array $arguments=[], callable $continueCallBack=null)
Emits an event.
removeListener($eventName, callable $listener)
Removes a specific listener from an event.
on($eventName, callable $callBack, $priority=100)
Subscribe to an event.
listeners($eventName)
Returns the list of listeners for an event.
once($eventName, callable $callBack, $priority=100)
Subscribe to an event exactly once.