Gumbo_Iterator
Iterator Class
Author(s): |
Michael Luster <mluster79@yahoo.com> |
License: | New BSD License |
Copyright: | Copyright (c) 2007, iBayou, Michael Luster |
Link: | http://sourceforge.net/projects/phpgumbo |
Version: | 0.0.1 |
Implements interfaces:
Class Variables
int $_current = 0 [line 43]
array $_keys = array () [line 40]
array $_list = array () [line 38]
Class Methods
public Gumbo_Iterator __construct ( array|Gumbo_Interface_List $list )
[line 57]
Constructor
The constructor requires an array to be given. The object will save the keys, keeping array references on the original array. The supplied array can contain any type of values.
Parameter(s):
- (array|Gumbo_Interface_List) $list :: array to loop through
- throws:
Gumbo_Exception
[ Top ]public int getCurrent ( ) [line 156]Returns the current incremental element number
Implementation of:
[ Top ]public array getKeys ( ) [line 140]Returns the array of keys in the object
Implementation of:
[ Top ]public int getTotal ( ) [line 164]Returns the total number of elements in the Iterator
Implementation of:
[ Top ]