Priority list

 Methods

Remove all items.

clear() : void
Inherited

inherited_from \Zend\Stdlib\PriorityList::clear()

{@inheritDoc}

count() 
Inherited

inherited_from \Zend\Stdlib\PriorityList::count()

{@inheritDoc}

current() 
Inherited

inherited_from \Zend\Stdlib\PriorityList::current()

Get a item.

get(string $name) : mixed
Inherited

inherited_from \Zend\Stdlib\PriorityList::get()

Parameters

$name

string

Returns

mixed

Insert a new item.

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

inherited_from \Zend\Stdlib\PriorityList::insert()

Parameters

$name

string

$value

mixed

$priority

int

Get/Set serial order mode

isLIFO(bool | null $flag) : bool
Inherited

inherited_from \Zend\Stdlib\PriorityList::isLIFO()

Parameters

$flag

boolnull

Returns

bool

{@inheritDoc}

key() 
Inherited

inherited_from \Zend\Stdlib\PriorityList::key()

Remove a item.

remove(string $name) : void
Inherited

inherited_from \Zend\Stdlib\PriorityList::remove()

Parameters

$name

string

{@inheritDoc}

rewind() 
Inherited

inherited_from \Zend\Stdlib\PriorityList::rewind()

setPriority()

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

inherited_from \Zend\Stdlib\PriorityList::setPriority()

Parameters

$name

string

$priority

int

Exceptions

\Exception

Returns

\Zend\Stdlib\$this

Return list as array

toArray(int $flag) : array
Inherited

inherited_from \Zend\Stdlib\PriorityList::toArray()

Parameters

$flag

int

Returns

array

{@inheritDoc}

valid() 
Inherited

inherited_from \Zend\Stdlib\PriorityList::valid()

Compare the priority of two items.

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

inherited_from \Zend\Stdlib\PriorityList::compare()

Parameters

$item1

$item2

array

Returns

int

Sort all items.

sort() : void
Inherited

inherited_from \Zend\Stdlib\PriorityList::sort()

 Properties

 

Internal counter to avoid usage of count().

$count : int
Inherited

inherited_from \Zend\Stdlib\PriorityList::$$count
 

Serial order mode

$isLIFO : integer
Inherited

inherited_from \Zend\Stdlib\PriorityList::$$isLIFO
 

Internal list of all items.

$items : array[]
Inherited

inherited_from \Zend\Stdlib\PriorityList::$$items
 

Serial assigned to items to preserve LIFO.

$serial : int
Inherited

inherited_from \Zend\Stdlib\PriorityList::$$serial
 

Whether the list was already sorted.

$sorted : bool
Inherited

inherited_from \Zend\Stdlib\PriorityList::$$sorted

 Constants

 

EXTR_BOTH

EXTR_BOTH 
Inherited

inherited_from \Zend\Stdlib\PriorityList::EXTR_BOTH
 

EXTR_DATA

EXTR_DATA 
Inherited

inherited_from \Zend\Stdlib\PriorityList::EXTR_DATA
 

EXTR_PRIORITY

EXTR_PRIORITY 
Inherited

inherited_from \Zend\Stdlib\PriorityList::EXTR_PRIORITY