package Default

 Methods

Count all items

count() : integer

Returns

integer

Return the current element

current() : mixed

Returns

mixed

Return the key of the current element

key() : mixed

Returns

mixed

Move forward to next element

next() : mixed

Returns

mixed

Check if an offset exists

offsetExists(mixed $offset) : boolean

Parameters

$offset

mixed

Returns

boolean

Get the value of an offset

offsetGet(mixed $offset) : \Zend\Tag\TaggableInterface

Parameters

$offset

mixed

Returns

\Zend\Tag\TaggableInterface

Append a new item

offsetSet(mixed $offset, \Zend\Tag\TaggableInterface $item) : void

Parameters

$offset

mixed

$item

\Zend\Tag\TaggableInterface

Exceptions

\Zend\Tag\Exception\OutOfBoundsException When item does not implement Zend\Tag\TaggableInterface

Unset an item

offsetUnset(mixed $offset) : void

Parameters

$offset

mixed

Rewind the Iterator to the first element

rewind() : void

Seek to an absolute position

seek(integer $index) : void

Parameters

$index

integer

Exceptions

\Zend\Tag\Exception\OutOfBoundsException When the seek position is invalid

Spread values in the items relative to their weight

spreadWeightValues(array $values) : void

Parameters

$values

array

Exceptions

\Zend\Tag\Exception\InvalidArgumentException When value list is empty

Check if there is a current element after calls to rewind() or next()

valid() : boolean

Returns

boolean

 Properties

 

Items in this list

$items : array

Default

array()