It contains a collection of records and implements the IteratorAggregate interface so that you can use the dataset in a foreach() {} loop.
$ds = new TableDataSet($conn, "mytable"); $ds->fetchRecords(); foreach($ds as $record) { $record->setValue("col1", "new value"); $record->save(); }
This class is extended by QueryDataSet and TableDataSet and should not be used directly.
Author |
Jon S. Stevens <jon@latchkey.com> (Village) Hans Lellelid <hans@xmpl.org> (Jargon) |
Version |
|
This file is part of the Creole[php5] library.
Copyright © 2004 Hans Lellelid |   |
Creole[php5] CVS
|