Public Member Functions | |
__construct (DataSet $ds) | |
rewind () | |
valid () | |
key () | |
current () | |
next () | |
Private Attributes | |
$ds | |
$size | |
$pos |
Thanks to PHP5 SPL this allows you to foreach() over a DataSet: $ds = new QueryDataSet($conn, "select * from author"); $ds->fetchRecords(); foreach($ds as $rec) { print $rec->getValue("mycol"); }
Definition at line 434 of file DataSet.php.
DataSetIterator::__construct | ( | DataSet $ | ds | ) |
DataSetIterator::current | ( | ) |
DataSetIterator::key | ( | ) |
DataSetIterator::next | ( | ) |
DataSetIterator::rewind | ( | ) |
DataSetIterator::valid | ( | ) |
DataSetIterator::$ds [private] |
Definition at line 436 of file DataSet.php.
DataSetIterator::$pos [private] |
Definition at line 438 of file DataSet.php.
DataSetIterator::$size [private] |
Definition at line 437 of file DataSet.php.