Skip to content

Latest commit

 

History

History
175 lines (77 loc) · 1.73 KB

ItemList.rst

File metadata and controls

175 lines (77 loc) · 1.73 KB

Class

Zend\Tag\ItemList

Methods

count

count()

Count all items

rtype

integer

spreadWeightValues

spreadWeightValues()

Spread values in the items relative to their weight

param array
throws InvalidArgumentException

When value list is empty

rtype

void

seek

seek()

Seek to an absolute position

param integer
throws OutOfBoundsException

When the seek position is invalid

rtype

void

current

current()

Return the current element

rtype

mixed

next

next()

Move forward to next element

rtype

mixed

key

key()

Return the key of the current element

rtype

mixed

valid

valid()

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

rtype

bool

rewind

rewind()

Rewind the Iterator to the first element

rtype

void

offsetExists

offsetExists()

Check if an offset exists

param mixed
rtype

bool

offsetGet

offsetGet()

Get the value of an offset

param mixed
rtype

TaggableInterface

offsetSet

offsetSet()

Append a new item

param mixed
param TaggableInterface
throws OutOfBoundsException

When item does not implement ZendTagTaggableInterface

rtype

void

offsetUnset

offsetUnset()

Unset an item

param mixed
rtype

void