ListenersQueue
class ListenersQueue implements IteratorAggregate, Countable (View source)
Class ListenerPriorityQueue
Methods
__construct()
Constructor.
mixed
getPriority(Closure|object $listener, mixed $default = null)
Get the priority of the given listener.
object[]
getAll()
Get all listeners contained in this queue, sorted according to their priority.
getIterator()
Get the inner queue with its cursor on top of the heap.
integer
count()
Count the number of listeners in the queue.
Details
at line line 55
__construct()
Constructor.
at line line 71
ListenersQueue
add(Closure|object $listener, integer $priority)
Add a listener with the given priority only if not already present.
at line line 94
ListenersQueue
remove(Closure|object $listener)
Remove a listener from the queue.
at line line 137
mixed
getPriority(Closure|object $listener, mixed $default = null)
Get the priority of the given listener.
at line line 154
object[]
getAll()
Get all listeners contained in this queue, sorted according to their priority.
at line line 176
SplPriorityQueue
getIterator()
Get the inner queue with its cursor on top of the heap.
at line line 196
integer
count()
Count the number of listeners in the queue.