Methods

Count all items

count() : int

Returns

int

Return the current element

current() : mixed

Returns

mixed

Return the key of the current element

key() : mixed

Returns

mixed

Check if an offset exists

offsetExists(mixed $offset) : bool

Parameters

$offset

mixed

Returns

bool

Get the value of an offset

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

Parameters

$offset

mixed

Returns

Append a new item

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

Parameters

$offset

mixed

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(int $index) : void

Parameters

$index

int

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() : bool

Returns

bool

 Properties

 

Items in this list

$items : array