Specialized priority queue implementation for use with an intercepting filter chain.

Allows removal

package Default
inherited_from \Zend\Stdlib\SplPriorityQueue

 Methods

Does the queue contain a given value?

contains(mixed $datum) : boolean

Parameters

$datum

mixed

Returns

boolean

Insert a value with a given priority

insert(mixed $datum, mixed $priority) : void
Inherited

Utilizes {@var $serial} to ensure that values of equal priority are emitted in the same order in which they are inserted.

Parameters

$datum

mixed

$priority

mixed

Iterate the next filter in the chain

next(mixed $context = null, array $params = array(), \Zend\EventManager\Filter\FilterIterator $chain = null) : mixed

Iterates and calls the next filter in the chain.

Parameters

$context

mixed

$params

array

$chain

\Zend\EventManager\Filter\FilterIterator

Returns

mixed

Remove a value from the queue

remove(mixed $datum) : boolean

This is an expensive operation. It must first iterate through all values, and then re-populate itself. Use only if absolutely necessary.

Parameters

$datum

mixed

Returns

boolean

Serialize

serialize() : string
Inherited

Returns

string

Serialize to an array

toArray() : array
Inherited

Array will be priority => data pairs

Returns

array

Deserialize

unserialize(string $data) : void
Inherited

Parameters

$data

string

 Properties

 

Seed used to ensure queue order for items of the same priority

$serial : integer

Default

PHP_INT_MAX