Serializable version of SplPriorityQueue

Also, provides predictable heap order for datums added with the same priority (i.e., they will be emitted in the same order they are enqueued).

category Zend
package Zend_Stdlib

 Methods

compare()

compare() 

inherited_from SplPriorityQueue::compare()

count()

count() 

inherited_from SplPriorityQueue::count()

current()

current() 

inherited_from SplPriorityQueue::current()

extract()

extract() 

inherited_from SplPriorityQueue::extract()

Insert a value with a given priority

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

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

isEmpty()

isEmpty() 

inherited_from SplPriorityQueue::isEmpty()

key()

key() 

inherited_from SplPriorityQueue::key()

recoverFromCorruption()

recoverFromCorruption() 

inherited_from SplPriorityQueue::recoverFromCorruption()

rewind()

rewind() 

inherited_from SplPriorityQueue::rewind()

Serialize

serialize() : string

Returns

string

setExtractFlags()

setExtractFlags() 

inherited_from SplPriorityQueue::setExtractFlags()

Serialize to an array

toArray() : array

Array will be priority => data pairs

Returns

array

top()

top() 

inherited_from SplPriorityQueue::top()

Deserialize

unserialize(string $data) : void

Parameters

$data

string

valid()

valid() 

inherited_from SplPriorityQueue::valid()

 Properties

 

<p>Seed used to ensure queue order for items of the same priority</p>

$serial : int