- void constructor DlRecordset()
Usage: constructor DlRecordset ( $connection )
The DlRecordset Constructor
The constructor takes in a DlRecordset (or inherited) object and sets up initial members
Parameters
- object $connection - DlRecordset A DlRecordset object, passed by reference
Info
- boolean Bof()
Usage: Bof ( )
Is the result set at the beginning?
Check the member var $mBof to see if we are at the beginning of the result set
Parameters
Info
- boolean Eof()
Usage: Eof ( )
Is the result set at the end?
Check the member var $mEof to see if we are at the end of the result set
Parameters
Info
- array FetchArray()
Usage: FetchArray ( )
Returns the current row as an array
Returns the current row in the data set as an indexed and associative array
Parameters
Info
- integer GetCurrentRow()
Usage: GetCurrentRow ( )
Returns the current row number
Returns the current row number, starting with 1
Parameters
Info
- string GetError()
Usage: GetError ( )
Returns the last error encountered
Returns the last error encountered by the result set object
Parameters
Info
- boolean GetRowCount()
Usage: GetRowCount ( )
Overridden in child class(es) as: DlPgSqlRecordset::GetRowCount(), DlSqlServerRecordset::GetRowCount()
Gets the number of rows in the current result set
Gets the number of rows in the current result set
Parameters
Info
- string GetTableName()
Usage: GetTableName ( )
Gets the table name for the current query
Currently only works correctly with single table queries
Parameters
Info
- boolean IsEmpty()
Usage: IsEmpty ( )
Check to see if the resultset is empty
Checks the row count to see if it is zero
Parameters
Info
- boolean MoveFirst()
Usage: MoveFirst ( )
Moves to the first row in the dataset
Moves to the first row in the dataset
Parameters
Info
- boolean MoveLast()
Usage: MoveLast ( )
Moves to the last row in the dataset
Moves to the last row in the dataset
Parameters
Info
- boolean MoveNext()
Usage: MoveNext ( )
Moves to the next row in the dataset
Moves to the next row in the dataset
Parameters
Info
- boolean MovePrevious()
Usage: MovePrevious ( )
Moves to the previous row in the dataset
Moves to the previous row in the dataset
Parameters
Info
- DlRecordset NewRecordset()
Usage: NewRecordset ( &$connection )
Creates a new recordset object
Returns a recordset object of the appropriate type
Parameters
- DlRecordset $connection - A DlRecordset (or inherited from) object
Info
- mixed Value()
Usage: Value ( $field )
Overridden in child class(es) as: DlIBaseRecordset::Value()
Returns the value for the field
Returns the value for the requested field on the current row in the dataset
Parameters
- mixed $field - the field to return the value for, can either be a string or a long
Info