ListenerPriorityQueue
- Full name:
\Qubus\EventDispatcher\Legacy\ListenerPriorityQueue
- This class implements:
\IteratorAggregate
Properties
storage
queue
Methods
__construct
public __construct(\SplObjectStorage $storage = new SplObjectStorage(), \SplPriorityQueue $queue = new SplPriorityQueue()): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$storage | \SplObjectStorage | |
$queue | \SplPriorityQueue |
insert
Insert a listener to the queue.
Parameters:
Parameter | Type | Description |
---|---|---|
$listener | \Qubus\EventDispatcher\Legacy\EventListener | |
$priority | int |
detach
Removes an listener from the queue.
Parameters:
Parameter | Type | Description |
---|---|---|
$listener | \Qubus\EventDispatcher\Legacy\EventListener |
clear
Clears the queue.
contains
Checks whether the queue contains the listener.
Parameters:
Parameter | Type | Description |
---|---|---|
$listener | \Qubus\EventDispatcher\Legacy\EventListener |
all
Gets all listeners.
getIterator
Clones and returns a iterator.
refreshQueue
Refreshes the status of the queue.
Automatically generated on 2025-10-13