RecordSet class that represents the dataset returned by the database.
To keep memory overhead low, this class holds only the current row in memory. No prefetching of data is done, so the RecordCount() can return -1 ( which means recordcount not known).
Located in /3rd/adodb/adodb.inc.php (line 2452)
ADODB_BASE_RS | --ADORecordSet
Class | Description |
---|---|
![]() |
This class encapsulates the concept of a recordset created in memory as an array. This is useful for the creation of cached recordsets. |
![]() |
RecordSet class that represents the dataset returned by the database. |
![]() |
RecordSet class that represents the dataset returned by the database. |
![]() |
RecordSet class that represents the dataset returned by the database. |
![]() |
RecordSet class that represents the dataset returned by the database. |
![]() |
RecordSet class that represents the dataset returned by the database. |
![]() |
RecordSet class that represents the dataset returned by the database. |
![]() |
RecordSet class that represents the dataset returned by the database. |
![]() |
RecordSet class that represents the dataset returned by the database. |
![]() |
RecordSet class that represents the dataset returned by the database. |
![]() |
RecordSet class that represents the dataset returned by the database. |
![]() |
RecordSet class that represents the dataset returned by the database. |
![]() |
RecordSet class that represents the dataset returned by the database. |
![]() |
RecordSet class that represents the dataset returned by the database. |
![]() |
RecordSet class that represents the dataset returned by the database. |
![]() |
RecordSet class that represents the dataset returned by the database. |
![]() |
RecordSet class that represents the dataset returned by the database. |
Added by Iván Oliva to implement recordset pagination
Added by Iván Oliva to implement recordset pagination
This variable keeps the current row in the Recordset.
Used by FetchObj
This variable keeps the result link identifier.
has recordset been closed
Added by Iván Oliva to implement recordset pagination
Used by FetchObj
number of rows, or -1
Init() should only be called once
number of fields in recordset
Constructor
set/returns the current recordset page when paginating
synonym for CurrentRow -- for ADO compat
set/returns the status of the atFirstPage flag when paginating
set/returns the status of the atLastPage flag when paginating
Clean up recordset
Get the ADOFieldObject of a specific column.
Fetch a row, returning PEAR_Error if no more rows.
This is PEAR DB compat mode.
Return the fields array of the current row as an object for convenience.
The default is lower-case field names.
Return the fields array of the current row as an object for convenience.
The default is upper case field names.
Return the fields array of the current row as an object for convenience.
The default case is lowercase field names.
Return the fields array of the current row as an object for convenience.
The default case is uppercase.
Fetch a row, returning false if no more rows.
This is PEAR DB compat mode.
Get the value of a field in the current row by column name.
Will not work if ADODB_FETCH_MODE is set to ADODB_FETCH_NUM.
Get the ADOFieldObjects of all columns in an array.
PEAR DB Compat - do not use internally
return recordset as a 2-dimensional array.
return recordset as a 2-dimensional array.
Helper function for ADOConnection->SelectLimit()
return whole recordset as a 2-dimensional associative array if there are more than 2 columns.
The first column is treated as the key and is not included in the array. If there is only 2 columns, it will return a 1 dimensional array of key-value pairs unless $force_array == true.
Generate a SELECT tag string from a recordset, and return the string.
If the recordset has 2 cols, we treat the 1st col as the containing the text to display to the user, and 2nd col as the return value. Default strings are compared with the FIRST column.
Generate a SELECT tag string from a recordset, and return the string.
If the recordset has 2 cols, we treat the 1st col as the containing the text to display to the user, and 2nd col as the return value. Default strings are compared with the SECOND column.
Use associative array to get fields array for databases that do not support associative arrays. Submitted by Paolo S. Asioli paolo.asioli#libero.it
If you don't want uppercase cols, set $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC before you execute your SQL statement, and access $rs->fields['col'] directly.
$upper 0 = lowercase, 1 = uppercase, 2 = whatever is returned by FetchField
Synonym for GetArray() for compatibility with ADO.
Get the metatype of the column. This is used for formatting. This is because many databases use different names for the same type, so we transform the original type to our standardised version which uses 1 character codes:
Random access to a specific row in the recordset. Some databases do not support access to previous rows in the databases (no scrolling backwards).
Move to the first row in the recordset. Many databases do NOT support this.
Move to the last row in the recordset.
Move to next record in the recordset.
PEAR DB compat, number of cols
PEAR DB compat, number of rows
Portable RecordCount. Pablo Roca <pabloroca@mvps.org>
synonyms RecordCount and RowCount
synonyms RecordCount and RowCount
Documentation generated on Wed, 23 Jan 2008 19:34:35 -0500 by phpDocumentor 1.4.0