jargon Namespace Reference


Detailed Description

The DataSet represents the results of a query.

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
Revision
1.5


This file is part of the Creole[php5] library.


Copyright © 2004 Hans Lellelid  
Creole[php5] CVS