Class: ADORecordSet
Source Location: /includes/classes/adodb/adodb.inc.php
ADODB_BASE_RS
|
--ADORecordSet
RecordSet class that represents the dataset returned by the database.
|
|
|
Class Details
Class Variables
Class Methods
constructor ADORecordSet [line 2782]
ADORecordSet ADORecordSet(
queryID
$queryID)
|
|
Constructor
Parameters:
method AbsolutePage [line 3699]
void AbsolutePage(
[
$page = -1])
|
|
set/returns the current recordset page when paginating
Parameters:
method AbsolutePosition [line 3404]
synonym for CurrentRow -- for ADO compat
Tags:
method AtFirstPage [line 3708]
void AtFirstPage(
[
$status = false])
|
|
set/returns the status of the atFirstPage flag when paginating
Parameters:
method AtLastPage [line 3723]
void AtLastPage(
[
$status = false])
|
|
set/returns the status of the atLastPage flag when paginating
Parameters:
method Close [line 3334]
method CurrentRow [line 3397]
method FetchField [line 3420]
method FetchInto [line 3167]
Fetch a row, returning PEAR_Error if no more rows. This is PEAR DB compat mode.
Tags:
Parameters:
method FetchNextObj [line 3493]
Return the fields array of the current row as an object for convenience. The default is lower-case field names.
Tags:
method FetchNextObject [line 3511]
the &FetchNextObject(
[$isupper
$isupper = true])
|
|
Return the fields array of the current row as an object for convenience. The default is upper case field names.
Tags:
Parameters:
method FetchObj [line 3446]
Return the fields array of the current row as an object for convenience. The default case is lowercase field names.
Tags:
method FetchObject [line 3460]
the &FetchObject(
[$isupper
$isupper = true])
|
|
Return the fields array of the current row as an object for convenience. The default case is uppercase.
Tags:
Parameters:
method FetchRow [line 3148]
Fetch a row, returning false if no more rows. This is PEAR DB compat mode.
Tags:
method FieldCount [line 3410]
method Fields [line 3288]
method FieldTypesArray [line 3432]
Get the ADOFieldObjects of all columns in an array.
method Free [line 3119]
PEAR DB Compat - do not use internally
method GetAll [line 2889]
void &GetAll(
[
$nRows = -1])
|
|
Parameters:
method GetArray [line 2873]
an &GetArray(
[[nRows]
$nRows = -1])
|
|
return recordset as a 2-dimensional array.
Tags:
Overridden in child classes as:
- ADORecordSet_array::GetArray()
Parameters:
method GetArrayLimit [line 2913]
method GetAssoc [line 2962]
an &GetAssoc(
[[force_array]
$force_array = false], [[first2cols]
$first2cols = false])
|
|
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.
Tags:
Overridden in child classes as:
- ADORecordSet_ldap::GetAssoc()
Parameters:
method GetAssocKeys [line 3293]
void GetAssocKeys(
[
$upper = true])
|
|
Parameters:
method GetMenu [line 2830]
HTML GetMenu(
name
$name, [[defstr]
$defstr = ''], [[blank1stItem]
$blank1stItem = true], [[multiple]
$multiple = false], [[size]
$size = 0], [[selectAttr]
$selectAttr = ''], [
$compareFields0 = 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.
Tags:
Parameters:
method GetMenu2 [line 2848]
void GetMenu2(
$name, [
$defstr = ''], [
$blank1stItem = true], [
$multiple = false], [
$size = 0], [
$selectAttr = ''])
|
|
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.
Parameters:
method GetMenu3 [line 2857]
void GetMenu3(
$name, [
$defstr = ''], [
$blank1stItem = true], [
$multiple = false], [
$size = 0], [
$selectAttr = ''])
|
|
Parameters:
method GetRowAssoc [line 3312]
method GetRows [line 2940]
an &GetRows(
[[nRows]
$nRows = -1])
|
|
Synonym for GetArray() for compatibility with ADO.
Tags:
Parameters:
method Init [line 2789]
method LastPageNo [line 3714]
void LastPageNo(
[
$page = false])
|
|
Parameters:
method MaxRecordCount [line 3358]
method MetaType [line 3547]
method Move [line 3238]
true Move(
[rowNumber
$rowNumber = 0])
|
|
Random access to a specific row in the recordset. Some databases do not support access to previous rows in the databases (no scrolling backwards).
Tags:
Parameters:
method MoveFirst [line 3181]
method MoveLast [line 3193]
method MoveNext [line 3212]
method NextRecordSet [line 2899]
method NumCols [line 3137]
PEAR DB compat, number of cols
method NumRows [line 3128]
PEAR DB compat, number of rows
method PO_RecordCount [line 3379]
the PO_RecordCount(
[
$table = ""], [
$condition = ""])
|
|
Portable RecordCount. Pablo Roca <pabloroca@mvps.org>
Tags:
Parameters:
method RecordCount [line 3351]
synonyms RecordCount and RowCount
Tags:
method RowCount [line 3368]
synonyms RecordCount and RowCount
Tags:
method UnixDate [line 3099]
method UnixTimeStamp [line 3110]
method UserDate [line 3082]
a UserDate(
v
$v, [fmt
$fmt = 'Y-m-d'])
|
|
Tags:
Parameters:
method UserTimeStamp [line 3065]
a UserTimeStamp(
v
$v, [fmt
$fmt = 'Y-m-d H:i:s'])
|
|
Tags:
Parameters:
method _close [line 3694]
|
|