ADORecordSetRecordSet 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 |
|---|---|
ADORecordSet_array
|
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. |
ADORecordSet_fbsql
|
RecordSet class that represents the dataset returned by the database. |
ADORecordset_ibase
|
RecordSet class that represents the dataset returned by the database. |
ADORecordset_informix72
|
RecordSet class that represents the dataset returned by the database. |
ADORecordSet_ldap
|
RecordSet class that represents the dataset returned by the database. |
ADORecordset_mssql
|
RecordSet class that represents the dataset returned by the database. |
ADORecordSet_mysql
|
RecordSet class that represents the dataset returned by the database. |
ADORecordSet_mysqli
|
RecordSet class that represents the dataset returned by the database. |
ADORecordset_oci8
|
RecordSet class that represents the dataset returned by the database. |
ADORecordSet_odbc
|
RecordSet class that represents the dataset returned by the database. |
ADORecordSet_odbtp
|
RecordSet class that represents the dataset returned by the database. |
ADORecordset_oracle
|
RecordSet class that represents the dataset returned by the database. |
ADORecordSet_pdo
|
RecordSet class that represents the dataset returned by the database. |
ADORecordSet_postgres64
|
RecordSet class that represents the dataset returned by the database. |
ADORecordset_sqlite
|
RecordSet class that represents the dataset returned by the database. |
ADORecordset_sybase
|
RecordSet class that represents the dataset returned by the database. |
HTML
GetMenu
(name $name, [[defstr] $defstr = ''], [[blank1stItem] $blank1stItem = true], [[multiple] $multiple = false], [[size] $size = 0], [[selectAttr] $selectAttr = ''], [ $compareFields0 = true])
void
GetMenu2
( $name, [ $defstr = ''], [ $blank1stItem = true], [ $multiple = false], [ $size = 0], [ $selectAttr = ''])
void
GetMenu3
( $name, [ $defstr = ''], [ $blank1stItem = true], [ $multiple = false], [ $size = 0], [ $selectAttr = ''])
mixed
$bind
= false (line 2469)
mixed
$blobSize
= 100 (line 2458)
mixed
$canSeek
= false (line 2460)
mixed
$connection
= false (line 2471)
mixed
$dataProvider
= "native" (line 2456)
mixed
$datetime
= false (line 2489)
mixed
$debug
= false (line 2466)
mixed
$emptyDate
= ' ' (line 2465)
mixed
$emptyTimeStamp
= ' ' (line 2464)
mixed
$EOF
= false (line 2462)
mixed
$fetchMode
(line 2470)
mixed
$fields
= false (line 2457)
mixed
$timeCreated
(line 2467)
mixed
$_atFirstPage
= false (line 2485)
Added by Iván Oliva to implement recordset pagination
mixed
$_atLastPage
= false (line 2486)
Added by Iván Oliva to implement recordset pagination
mixed
$_closed
= false (line 2479)
This variable keeps the current row in the Recordset.
mixed
$_currentPage
= -1 (line 2484)
Used by FetchObj
mixed
$_currentRow
= -1 (line 2478)
This variable keeps the result link identifier.
mixed
$_inited
= false (line 2480)
has recordset been closed
mixed
$_lastPageNo
= -1 (line 2487)
Added by Iván Oliva to implement recordset pagination
mixed
$_maxRecordCount
= 0 (line 2488)
mixed
$_names
(line 2482)
Used by FetchObj
mixed
$_numOfFields
= -1 (line 2476)
number of rows, or -1
mixed
$_numOfRows
= -1 (line 2475)
mixed
$_obj
(line 2481)
Init() should only be called once
mixed
$_queryID
= -1 (line 2477)
number of fields in recordset
Constructor ADORecordSet (line 2497)
Constructor
AbsolutePage (line 3378)
set/returns the current recordset page when paginating
AbsolutePosition (line 3098)
synonym for CurrentRow -- for ADO compat
AtFirstPage (line 3387)
set/returns the status of the atFirstPage flag when paginating
AtLastPage (line 3402)
set/returns the status of the atLastPage flag when paginating
Close (line 3029)
Clean up recordset
CurrentRow (line 3091)
FetchField (line 3114)
Get the ADOFieldObject of a specific column.
FetchInto (line 2862)
Fetch a row, returning PEAR_Error if no more rows.
This is PEAR DB compat mode.
FetchNextObj (line 3184)
Return the fields array of the current row as an object for convenience.
The default is lower-case field names.
FetchNextObject (line 3202)
Return the fields array of the current row as an object for convenience.
The default is upper case field names.
FetchObj (line 3137)
Return the fields array of the current row as an object for convenience.
The default case is lowercase field names.
FetchObject (line 3151)
Return the fields array of the current row as an object for convenience.
The default case is uppercase.
FetchRow (line 2843)
Fetch a row, returning false if no more rows.
This is PEAR DB compat mode.
FieldCount (line 3104)
Fields (line 2983)
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.
FieldTypesArray (line 3123)
Get the ADOFieldObjects of all columns in an array.
Free (line 2814)
PEAR DB Compat - do not use internally
GetAll (line 2602)
GetArray (line 2588)
return recordset as a 2-dimensional array.
GetArrayLimit (line 2626)
return recordset as a 2-dimensional array.
Helper function for ADOConnection->SelectLimit()
GetAssoc (line 2675)
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.
GetAssocKeys (line 2988)
GetMenu (line 2545)
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.
GetMenu2 (line 2563)
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.
GetMenu3 (line 2572)
GetRowAssoc (line 3007)
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
GetRows (line 2653)
Synonym for GetArray() for compatibility with ADO.
Init (line 2504)
LastPageNo (line 3393)
MaxRecordCount (line 3053)
MetaType (line 3238)
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:
Move (line 2933)
Random access to a specific row in the recordset. Some databases do not support access to previous rows in the databases (no scrolling backwards).
MoveFirst (line 2876)
Move to the first row in the recordset. Many databases do NOT support this.
MoveLast (line 2888)
Move to the last row in the recordset.
MoveNext (line 2907)
Move to next record in the recordset.
NextRecordSet (line 2612)
NumCols (line 2832)
PEAR DB compat, number of cols
NumRows (line 2823)
PEAR DB compat, number of rows
PO_RecordCount (line 3074)
Portable RecordCount. Pablo Roca <pabloroca@mvps.org>
RecordCount (line 3046)
synonyms RecordCount and RowCount
RowCount (line 3063)
synonyms RecordCount and RowCount
UnixDate (line 2794)
UnixTimeStamp (line 2805)
UserDate (line 2777)
UserTimeStamp (line 2760)
_close (line 3373)
Documentation generated on Wed, 23 Jan 2008 19:34:35 -0500 by phpDocumentor 1.4.0