creole
[ class tree: creole ] [ index: creole ] [ all elements ]

Class: DataSetIterator

Source Location: /jargon/DataSet.php

Class Overview


The Iterator returned by DataSet::getIterator() that loops through the records.


Author(s):

Methods



Class Details

[line 434]
The Iterator returned by DataSet::getIterator() that loops through the records.

Thanks to PHP5 SPL this allows you to foreach() over a DataSet:

  1. $ds = new QueryDataSet($conn, "select * from author");
  2. $ds->fetchRecords();
  3. foreach($ds as $rec) {
  4. print $rec->getValue("mycol");
  5. }




Tags:



[ Top ]


Class Methods


constructor __construct [line 440]

DataSetIterator __construct( DataSet $ds)



[ Top ]

method current [line 457]

void current( )



[ Top ]

method key [line 453]

void key( )



[ Top ]

method next [line 461]

void next( )



[ Top ]

method rewind [line 445]

void rewind( )



[ Top ]

method valid [line 449]

void valid( )



[ Top ]


Documentation generated on Mon, 23 Aug 2004 21:51:28 -0400 by phpDocumentor 1.3.0RC3