Documentation TYPO3 par Ameos

ADORecordSet_db2 Class Reference

Inheritance diagram for ADORecordSet_db2:

Inheritance graph
Collaboration diagram for ADORecordSet_db2:

Collaboration graph
List of all members.

Public Member Functions

 ADORecordSet_db2 ($id, $mode=false)
FetchField ($fieldOffset=-1)
 Fields ($colname)
 _initrs ()
 _seek ($row)
GetArrayLimit ($nrows, $offset=-1)
 MoveNext ()
 _fetch ()
 _close ()
 ADORecordSet_db2 ($id, $mode=false)
 MetaType ($t, $len=-1, $fieldobj=false)

Public Attributes

 $bind = false
 datetime in Unix format rs created -- for cached recordsets
 $databaseType = "db2"
 $dataProvider = "db2"

Detailed Description

Definition at line 558 of file

Member Function Documentation

& ADORecordSet_db2::FetchField fieldOffset = -1  ) 

Get the ADOFieldObject of a specific column.

fieldoffset is the column position to access(0-based).
the ADOFieldObject for that column, or false.

Reimplemented from ADORecordSet.

Definition at line 578 of file

Referenced by Fields().

ADORecordSet_db2::Fields colname  ) 

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.

colname is the field to access
the value of $colname column

Reimplemented from ADORecordSet.

Definition at line 593 of file

References FetchField().

& ADORecordSet_db2::GetArrayLimit nrows,
offset = -1

return recordset as a 2-dimensional array. Helper function for ADOConnection->SelectLimit()

offset is the row to start calculations from (1-based)
[nrows] is the number of rows to return
an array indexed by the rows (0-based) from the recordset

Reimplemented from ADORecordSet.

Definition at line 623 of file

ADORecordSet_db2::MetaType t,
len = -1,
fieldobj = false

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:

t is the type passed in. Normally is ADOFieldObject->type.
len is the maximum length of that field. This is because we treat character fields bigger than a certain size as a 'B' (blob).
fieldobj is the field object returned by the database driver. Can hold additional info (eg. primary_key for mysql).
the general type of the data: C for character < 250 chars X for teXt (>= 250 chars) B for Binary N for numeric or floating point D for date T for timestamp L for logical/Boolean I for integer R for autoincrement counter/integer

Reimplemented from ADORecordSet.

Definition at line 306 of file

ADORecordSet_db2::MoveNext  ) 

Move to next record in the recordset.

true if there still rows available, or false if there are no more rows (EOF).

Reimplemented from ADORecordSet.

Definition at line 649 of file

The documentation for this class was generated from the following files:

Généré par TYPO3 Ameos avec  doxygen 1.4.6