Zend Framework
3.0
|
Public Member Functions | |
count () | |
Count all items. | |
spreadWeightValues (array $values) | |
Spread values in the items relative to their weight. | |
seek ($index) | |
Seek to an absolute position. | |
current () | |
Return the current element. | |
next () | |
Move forward to next element. | |
key () | |
Return the key of the current element. | |
valid () | |
Check if there is a current element after calls to rewind() or next() | |
rewind () | |
Rewind the Iterator to the first element. | |
offsetExists ($offset) | |
Check if an offset exists. | |
offsetGet ($offset) | |
Get the value of an offset. | |
offsetSet ($offset, $item) | |
Append a new item. | |
offsetUnset ($offset) | |
Unset an item. | |
Protected Attributes | |
$items = [] | |
count | ( | ) |
Count all items.
current | ( | ) |
Return the current element.
key | ( | ) |
Return the key of the current element.
next | ( | ) |
Move forward to next element.
offsetExists | ( | $offset | ) |
Check if an offset exists.
mixed | $offset |
offsetGet | ( | $offset | ) |
offsetSet | ( | $offset, | |
$item | |||
) |
Append a new item.
mixed | $offset | |
TaggableInterface | $item |
OutOfBoundsException | When item does not implement Zend |
offsetUnset | ( | $offset | ) |
Unset an item.
mixed | $offset |
rewind | ( | ) |
Rewind the Iterator to the first element.
seek | ( | $index | ) |
Seek to an absolute position.
int | $index |
OutOfBoundsException | When the seek position is invalid |
spreadWeightValues | ( | array | $values | ) |
Spread values in the items relative to their weight.
array | $values |
InvalidArgumentException | When value list is empty |
|
protected |