Methods

Remove all items.

clear() : void

{@inheritDoc}

count() 

{@inheritDoc}

current() 

Get a item.

get(string $name) : mixed

Parameters

$name

string

Returns

mixed

Insert a new item.

insert(string $name, mixed $value, int $priority) : void

Parameters

$name

string

$value

mixed

$priority

int

Get/Set serial order mode

isLIFO(bool | null $flag) : bool

Parameters

$flag

boolnull

Returns

bool

{@inheritDoc}

key() 

Remove a item.

remove(string $name) : void

Parameters

$name

string

{@inheritDoc}

rewind() 

setPriority()

setPriority(string $name, int $priority) : \Zend\Stdlib\$this

Parameters

$name

string

$priority

int

Exceptions

\Exception

Returns

\Zend\Stdlib\$this

Return list as array

toArray(int $flag) : array

Parameters

$flag

int

Returns

array

{@inheritDoc}

valid() 

Compare the priority of two items.

compare(array $item1, array $item2) : int

Parameters

$item1

$item2

array

Returns

int

Sort all items.

sort() : void

 Properties

 

Internal counter to avoid usage of count().

$count : int

 

Serial order mode

$isLIFO : integer

 

Internal list of all items.

$items : array[]

 

Serial assigned to items to preserve LIFO.

$serial : int

 

Whether the list was already sorted.

$sorted : bool

 Constants

 

EXTR_BOTH

EXTR_BOTH 

 

EXTR_DATA

EXTR_DATA 

 

EXTR_PRIORITY

EXTR_PRIORITY