Zend Framework
3.0
|
Public Member Functions | |
insert ($name, $value, $priority=0) | |
Insert a new item. | |
setPriority ($name, $priority) | |
remove ($name) | |
Remove a item. | |
clear () | |
Remove all items. | |
get ($name) | |
Get a item. | |
isLIFO ($flag=null) | |
Get/Set serial order mode. | |
rewind () | |
| |
current () | |
| |
key () | |
| |
next () | |
| |
valid () | |
| |
getIterator () | |
count () | |
| |
toArray ($flag=self::EXTR_DATA) | |
Return list as array. | |
Public Attributes | |
const | EXTR_DATA = 0x00000001 |
const | EXTR_PRIORITY = 0x00000002 |
const | EXTR_BOTH = 0x00000003 |
Protected Member Functions | |
sort () | |
Sort all items. | |
compare (array $item1, array $item2) | |
Compare the priority of two items. | |
Protected Attributes | |
$items = [] | |
$serial = 0 | |
$isLIFO = 1 | |
$count = 0 | |
$sorted = false | |
clear | ( | ) |
Remove all items.
|
protected |
Compare the priority of two items.
array | $item1,@param | array $item2 |
count | ( | ) |
current | ( | ) |
get | ( | $name | ) |
Get a item.
string | $name |
getIterator | ( | ) |
insert | ( | $name, | |
$value, | |||
$priority = 0 |
|||
) |
Insert a new item.
string | $name | |
mixed | $value | |
int | $priority |
isLIFO | ( | $flag = null | ) |
Get/Set serial order mode.
bool | null | $flag |
key | ( | ) |
next | ( | ) |
remove | ( | $name | ) |
Remove a item.
string | $name |
rewind | ( | ) |
setPriority | ( | $name, | |
$priority | |||
) |
string | $name | |
int | $priority |
\Exception |
|
protected |
Sort all items.
toArray | ( | $flag = self::EXTR_DATA | ) |
Return list as array.
int | $flag |
valid | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
const EXTR_BOTH = 0x00000003 |
const EXTR_DATA = 0x00000001 |
const EXTR_PRIORITY = 0x00000002 |