| Package | system.collections |
|---|---|
| Inheritance | class CListIterator |
| Implements | Iterator, Traversable |
| Since | 1.0 |
| Version | $Id: CListIterator.php 568 2009-01-23 22:50:14Z qiang.xue $ |
| Method | Description | Defined By |
|---|---|---|
| __construct() | Constructor. | CListIterator |
| current() | Returns the current array item. | CListIterator |
| key() | Returns the key of the current array item. | CListIterator |
| next() | Moves the internal pointer to the next array item. | CListIterator |
| rewind() | Rewinds internal array pointer. | CListIterator |
| valid() | Returns whether there is an item at current position. | CListIterator |
|
public void __construct(array $data)
| ||
| $data | array | the data to be iterated through |
Constructor.
|
public mixed current()
| ||
| {return} | mixed | the current array item |
Returns the current array item. This method is required by the interface Iterator.
|
public integer key()
| ||
| {return} | integer | the key of the current array item |
Returns the key of the current array item. This method is required by the interface Iterator.
|
public void next()
|
Moves the internal pointer to the next array item. This method is required by the interface Iterator.
|
public void rewind()
|
Rewinds internal array pointer. This method is required by the interface Iterator.
|
public boolean valid()
| ||
| {return} | boolean | |
Returns whether there is an item at current position. This method is required by the interface Iterator.
Be the first person to leave a comment
Please login to leave your comment.