A class containing an inner listeners priority queue that can be iterated multiple times. One instance of ListenersPriorityQueue is used per Event in the Dispatcher.
- Depuis
- 1.0
◆ __construct()
◆ add()
add |
( |
|
$listener, |
|
|
|
$priority |
|
) |
| |
Add a listener with the given priority only if not already present.
- Paramètres
-
\Closure | object | $listener | The listener. |
integer | $priority | The listener priority. |
- Renvoie
- ListenersPriorityQueue This method is chainable.
- Depuis
- 1.0
Référencé par Dispatcher\addListener().
◆ count()
Count the number of listeners in the queue.
- Renvoie
- integer The number of listeners in the queue.
- Depuis
- 1.0
◆ getAll()
◆ getIterator()
◆ getPriority()
getPriority |
( |
|
$listener, |
|
|
|
$default = null |
|
) |
| |
Get the priority of the given listener.
- Paramètres
-
\Closure | object | $listener | The listener. |
mixed | $default | The default value to return if the listener doesn't exist. |
- Renvoie
- mixed The listener priority if it exists, null otherwise.
- Depuis
- 1.0
Références $default.
◆ has()
Tell if the listener exists in the queue.
- Paramètres
-
\Closure | object | $listener | The listener. |
- Renvoie
- boolean True if it exists, false otherwise.
- Depuis
- 1.0
◆ remove()
Remove a listener from the queue.
- Paramètres
-
\Closure | object | $listener | The listener. |
- Renvoie
- ListenersPriorityQueue This method is chainable.
- Depuis
- 1.0
◆ $counter
◆ $queue
◆ $storage
La documentation de cette classe a été générée à partir du fichier suivant :