Methods
Remove all items.
clear() : void
Get a item.
get(string $name) : mixed
Parameters
$name
string
Returns
mixed
getIterator()
getIterator() : \Zend\Stdlib\self
Returns
\Zend\Stdlib\self
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
Remove a item.
remove(string $name) : void
setPriority()
setPriority(string $name, int $priority) : \Zend\Stdlib\$this
Parameters
$name
string
$priority
int
Exceptions
Returns
\Zend\Stdlib\$this
Return list as array
toArray(int $flag) : array
Parameters
$flag
int
Returns
array
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_PRIORITY
EXTR_PRIORITY