Specialized priority queue implementation for use with an intercepting filter chain.
Allows removal
category | Zend |
---|---|
package | Zend_EventManager |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Stdlib_SplPriorityQueue |
__construct() : void
Creates a new, empty queue
compare(mixed $priority1, mixed $priority2) : integer
Returns positive integer if $priority1 is greater than $priority2, 0 if equal, negative otherwise.
Unused internally, and only included in order to retain the same interface as PHP's SplPriorityQueue.
mixed
mixed
integer
contains(mixed $datum) : boolean
mixed
boolean
count() : integer
integer
current() : mixed
mixed
extract() : \mixed;
Returns either the value, the priority, or both, depending on the extract flag.
\mixed;
insert(mixed $value, mixed $priority) : void
mixed
mixed
isEmpty() : boolean
boolean
key() : mixed
mixed
Usually an int or stringnext(mixed $context= null
, array $params= array()
, \Zend_EventManager_Filter_FilterIterator $chain= null
) : mixed
Iterates and calls the next filter in the chain.
mixed
array
\Zend_EventManager_Filter_FilterIterator
mixed
next() : void
recoverFromCorruption() : void
Unimplemented, and only included in order to retain the same interface as PHP's SplPriorityQueue.
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.
mixed
boolean
rewind() : void
serialize() : string
string
setExtractFlags(integer $flags) : void
Defines what is extracted by SplPriorityQueue::current(), SplPriorityQueue::top() and SplPriorityQueue::extract().
The default mode is SplPriorityQueue::EXTR_DATA.
integer
toArray() : array
Array will be priority => data pairs
array
top() : mixed
mixed
unserialize(string $data) : void
string
valid() : boolean
boolean
prepareQueue() : void
sort() : void
$count : integer
0
$extractFlags : integer
self::EXTR_DATA
$isPhp53 : boolean
$preparedQueue : boolean | array
false
$queue : array
array()
$serial : integer
PHP_INT_MAX
EXTR_BOTH = 3
EXTR_DATA = 1
EXTR_PRIORITY = 2