Class ResultSet
Implements interfaces:
- Iterator (internal interface)
- Countable (internal interface)
Contains a set of database results, but is database indepenent, and allows the traversing of the database records as well as access to the data.
Located in /class.resultset.php (line 25)
Stores the supplied database and query resource for later processing. Counts the number of rows in the query resource and stores for later use.
- Database $oDatabase: An instance of a database connection
- Resource $rQueryResource: A reference to the database result returned by a query
- &$oDatabase
- &$rQueryResource
Returns the number of rows returned by the query this result set originated from
- Countable::count
Returns the data record for the current row, if any, or false if there is not a current row
- Iterator::current
Returns a copy of the current record, if any, or null if no record is stored
Returns the key for the current data. This is defined as the current row of data in the query result.
- Iterator::key
Attempts to advance the internal pointer of the query result to the next row of data.
On success, the data is loaded into this object. On failure, the data is cleared and operations such as current will return false.
- Iterator::next
Returns the internal pointer of the query result to the first row of the data.
- Iterator::rewind
Returns whether there is any data currently loaded in the ResultSet. If no data was returned by the query, or if the internal pointer is out of bounds (higher than the number of results in the query), this method will return false.
- Iterator::valid
Documentation generated on Thu, 25 Feb 2010 15:59:41 -0500 by phpDocumentor 1.4.3

