package Zend_EventManager

 Methods

Return last element in the stack

bottom() : mixed

Returns

mixed

Countable: return count of items in the stack

count() : integer

Returns

integer

Iterator: return current item in the stack

current() : mixed

Returns

mixed

Get iteration mode

getIteratorMode() : integer

Returns

integer

Is the stack empty?

isEmpty() : boolean

Returns

boolean

Iterator: return key of current item in the stack

key() : mixed

Returns

mixed

Iterator: advance pointer to next item in the stack

next() : void

ArrayAccess: does an item exist at the specified offset?

offsetExists(mixed $index) : boolean

Parameters

$index

mixed

Returns

boolean

ArrayAccess: get the item at the specified offset

offsetGet(mixed $index) : mixed

Parameters

$index

mixed

Exceptions

\OutOfRangeException

Returns

mixed

ArrayAccess: add an item at the specified offset

offsetSet(mixed $index, mixed $newval) : void

Parameters

$index

mixed

$newval

mixed

ArrayAccess: unset the item at the specified offset

offsetUnset(mixed $index) : void

Parameters

$index

mixed

Exceptions

\OutOfRangeException

Pop a node from the end of the stack

pop() : mixed

Exceptions

\RuntimeException

Returns

mixed

Move the iterator to the previous node

prev() : void
todo Does this need to be implemented?

Push an element to the list

push(mixed $value) : void

Parameters

$value

mixed

Iterator: rewind to beginning of stack

rewind() : void

Serialize the storage

serialize() : string

Returns

string

Set the iterator mode

setIteratorMode(integer $mode) : void

Must be set to one of IT_MODE_DELETE or IT_MODE_KEEP

todo Currently, IteratorMode is ignored, as we use the default (keep); should this be implemented?

Parameters

$mode

integer

Exceptions

\InvalidArgumentException

Shifts a node from the beginning of the list

shift() : mixed

Exceptions

\RuntimeException

Returns

mixed

Peek at the top node of the stack

top() : mixed

Returns

mixed

Unserialize the storage

unserialize($serialized) : void

Parameters

$serialized

Unshift a node onto the beginning of the list

unshift(mixed $value) : void

Parameters

$value

mixed

Iterator: is the current pointer valid?

valid() : boolean

Returns

boolean

 Properties

 

Count of elements in the stack

$count : integer

Default

0
 

Data represented by this stack

$data : array

Default

array()
 

Mode used when iterating

$mode : integer

Default

self::IT_MODE_KEEP
 

Sorted stack of values

$stack : false | array

Default

false

 Constants

 

Delete items during iteration

IT_MODE_DELETE = 1 
 

Keep items during iteration

IT_MODE_KEEP = 0