Public Member Functions | |
__construct (ResultSet $rs) | |
Construct the iterator. | |
rewind () | |
If not at start of resultset, this method will call seek(0). | |
valid () | |
This method checks to see whether there are more results by advancing the cursor position. | |
key () | |
Returns the cursor position. | |
current () | |
Returns the row (assoc array) at current cursor pos. | |
next () | |
This method does not actually do anything since we have already advanced the cursor pos in valid(). | |
Private Attributes | |
$rs |
Definition at line 52 of file ResultSetIterator.php.
ResultSetIterator::__construct | ( | ResultSet $ | rs | ) |
Construct the iterator.
ResultSet | $rs |
Definition at line 60 of file ResultSetIterator.php.
00061 { 00062 $this->rs = $rs; 00063 }
ResultSetIterator::current | ( | ) |
Returns the row (assoc array) at current cursor pos.
Definition at line 99 of file ResultSetIterator.php.
ResultSetIterator::key | ( | ) |
ResultSetIterator::next | ( | ) |
This method does not actually do anything since we have already advanced the cursor pos in valid().
Definition at line 109 of file ResultSetIterator.php.
ResultSetIterator::rewind | ( | ) |
If not at start of resultset, this method will call seek(0).
Definition at line 69 of file ResultSetIterator.php.
ResultSetIterator::valid | ( | ) |
This method checks to see whether there are more results by advancing the cursor position.
Definition at line 81 of file ResultSetIterator.php.
ResultSetIterator::$rs [private] |
Definition at line 54 of file ResultSetIterator.php.