1908. Class

1908.1. Zend\Tag\ItemList

1908.1.1. Methods

1908.1.1.1. count

count()

Count all items

Return type:integer

1908.1.1.2. spreadWeightValues

spreadWeightValues()

Spread values in the items relative to their weight

Parameters:array
Throws InvalidArgumentException:
 When value list is empty
Return type:void

1908.1.1.3. seek

seek()

Seek to an absolute position

Parameters:integer
Throws OutOfBoundsException:
 When the seek position is invalid
Return type:void

1908.1.1.4. current

current()

Return the current element

Return type:mixed

1908.1.1.6. key

key()

Return the key of the current element

Return type:mixed

1908.1.1.7. valid

valid()

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

Return type:bool

1908.1.1.8. rewind

rewind()

Rewind the Iterator to the first element

Return type:void

1908.1.1.9. offsetExists

offsetExists()

Check if an offset exists

Parameters:mixed
Return type:bool

1908.1.1.10. offsetGet

offsetGet()

Get the value of an offset

Parameters:mixed
Return type:TaggableInterface

1908.1.1.11. offsetSet

offsetSet()

Append a new item

Parameters:
  • mixed
  • TaggableInterface
Throws OutOfBoundsException:
 

When item does not implement ZendTagTaggableInterface

Return type:

void

1908.1.1.12. offsetUnset

offsetUnset()

Unset an item

Parameters:mixed
Return type:void