Implements interfaces:
TDbDataReader class.
TDbDataReader represents a forward-only stream of rows from a query result set.
To read the current row of data, call read. The method readAll returns all the rows in a single array.
One can also retrieve the rows of data in TDbDataReader by using foreach:
Since TDbDataReader is a forward-only stream, you can only traverse it once.
- foreach($reader as $row)
- // $row represents a row of data
It is possible to use a specific mode of data fetching by setting FetchMode. See http://www.php.net/manual/en/function.PDOStatement-setFetchMode.php for more details.
Located in /Data/TDbDataReader.php (line 37)
TComponent | --TDbDataReader
Constructor.
Binds a column to a PHP variable.
When rows of data are being fetched, the corresponding column value will be set in the variable. Note, the fetch mode must include PDO::FETCH_BOUND.
Closes the reader.
Any further data reading will result in an exception.
Returns the current row.
This method is required by the interface Iterator.
Returns the index of the current row.
This method is required by the interface Iterator.
Moves the internal pointer to the next row.
This method is required by the interface Iterator.
Advances the reader to the next result when reading the results of a batch of statements.
This method is only useful when there are multiple result sets returned by the query. Not all DBMS support this feature.
Advances the reader to the next row in a result set.
Reads the whole result set into an array.
Returns a single column from the next row of a result set.
Returns a single column from the next row of a result set.
Resets the iterator to the initial state.
This method is required by the interface Iterator.
Returns whether there is a row of data at current position.
This method is required by the interface Iterator.
Inherited From TComponent
TComponent::addParsedObject()
TComponent::attachEventHandler()
TComponent::canGetProperty()
TComponent::canSetProperty()
TComponent::createdOnTemplate()
TComponent::detachEventHandler()
TComponent::evaluateExpression()
TComponent::evaluateStatements()
TComponent::getEventHandlers()
TComponent::getSubProperty()
TComponent::hasEvent()
TComponent::hasEventHandler()
TComponent::hasProperty()
TComponent::raiseEvent()
TComponent::setSubProperty()
TComponent::__get()
TComponent::__set()
Documentation generated on Mon, 21 Apr 2008 11:34:53 -0400 by phpDocumentor 1.3.0RC4