Class ADORecordSet_array

Description

This class encapsulates the concept of a recordset created in memory as an array. This is useful for the creation of cached recordsets.

Note that the constructor is different from the standard ADORecordSet

Located in /3rd/adodb/adodb.inc.php (line 3421)

ADODB_BASE_RS
   |
   --ADORecordSet
      |
      --ADORecordSet_array
Direct descendents
Class Description
 class ADORecordSet_array_mssql This class encapsulates the concept of a recordset created in memory as an array. This is useful for the creation of cached recordsets.
 class ADORecordSet_array_sybase This class encapsulates the concept of a recordset created in memory as an array. This is useful for the creation of cached recordsets.
Variable Summary
 mixed $canSeek
 mixed $compat
 mixed $insertid
 mixed $sql
 mixed $_array
 mixed $_colnames
 mixed $_fieldarr
 mixed $_skiprow1
 mixed $_types
Method Summary
 ADORecordSet_array ADORecordSet_array ([ $fakeid = 1])
 void &FetchField ([ $fieldOffset = -1])
 void Fields ( $colname)
 void &GetArray ([ $nRows = -1])
 void InitArray (array $array, typearr $typearr, [[colnames] $colnames = false])
 void InitArrayFields (array &$array, fieldarr &$fieldarr)
 void MoveNext ()
 void _close ()
 void _fetch ()
 void _initrs ()
 void _seek ( $row)
Variables
mixed $affectedrows = false (line 3431)
mixed $canSeek = true (line 3430)

Redefinition of:
ADORecordSet::$canSeek
mixed $compat = false (line 3434)
mixed $databaseType = 'array' (line 3423)
mixed $insertid = false (line 3432)
mixed $sql = '' (line 3433)

Redefinition of:
ADORecordSet::$sql
mixed $_array (line 3425)
mixed $_colnames (line 3427)
mixed $_fieldarr (line 3429)
mixed $_skiprow1 (line 3428)
mixed $_types (line 3426)

Inherited Variables

Inherited from ADORecordSet

ADORecordSet::$bind
ADORecordSet::$blobSize
ADORecordSet::$connection
ADORecordSet::$dataProvider
ADORecordSet::$datetime
ADORecordSet::$debug
ADORecordSet::$emptyDate
ADORecordSet::$emptyTimeStamp
ADORecordSet::$EOF
ADORecordSet::$fetchMode
ADORecordSet::$fields
ADORecordSet::$timeCreated
ADORecordSet::$_atFirstPage
ADORecordSet::$_atLastPage
ADORecordSet::$_closed
ADORecordSet::$_currentPage
ADORecordSet::$_currentRow
ADORecordSet::$_inited
ADORecordSet::$_lastPageNo
ADORecordSet::$_maxRecordCount
ADORecordSet::$_names
ADORecordSet::$_numOfFields
ADORecordSet::$_numOfRows
ADORecordSet::$_obj
ADORecordSet::$_queryID
Methods
Constructor ADORecordSet_array (line 3439)

Constructor

ADORecordSet_array ADORecordSet_array ([ $fakeid = 1])
  • $fakeid
FetchField (line 3530)
void &FetchField ([ $fieldOffset = -1])
  • $fieldOffset

Redefinition of:
ADORecordSet::FetchField()
Get the ADOFieldObject of a specific column.
Fields (line 3512)
void Fields ( $colname)
  • $colname

Redefinition of:
ADORecordSet::Fields()
Get the value of a field in the current row by column name.
GetArray (line 3492)
void &GetArray ([ $nRows = -1])
  • $nRows

Redefinition of:
ADORecordSet::GetArray()
return recordset as a 2-dimensional array.
InitArray (line 3461)

Setup the array.

void InitArray (array $array, typearr $typearr, [[colnames] $colnames = false])
  • array $array: is a 2-dimensional array holding the data. The first row should hold the column names unless paramter $colnames is used.
  • typearr $typearr: holds an array of types. These are the same types used in MetaTypes (C,B,L,I,N).
  • [colnames] $colnames: array of column names. If set, then the first row of $array should not hold the column names.
InitArrayFields (line 3482)

Setup the Array and datatype file objects

void InitArrayFields (array &$array, fieldarr &$fieldarr)
  • array &$array: is a 2-dimensional array holding the data. The first row should hold the column names unless paramter $colnames is used.
  • fieldarr &$fieldarr: holds an array of ADOFieldObject's.
MoveNext (line 3554)
void MoveNext ()

Redefinition of:
ADORecordSet::MoveNext()
Move to next record in the recordset.
_close (line 3587)
void _close ()

Redefinition of:
ADORecordSet::_close()
_fetch (line 3574)
void _fetch ()
_initrs (line 3502)
void _initrs ()
_seek (line 3543)
void _seek ( $row)
  • $row

Inherited Methods

Inherited From ADORecordSet

 ADORecordSet::ADORecordSet()
 ADORecordSet::AbsolutePage()
 ADORecordSet::AbsolutePosition()
 ADORecordSet::AtFirstPage()
 ADORecordSet::AtLastPage()
 ADORecordSet::Close()
 ADORecordSet::CurrentRow()
 ADORecordSet::FetchField()
 ADORecordSet::FetchInto()
 ADORecordSet::FetchNextObj()
 ADORecordSet::FetchNextObject()
 ADORecordSet::FetchObj()
 ADORecordSet::FetchObject()
 ADORecordSet::FetchRow()
 ADORecordSet::FieldCount()
 ADORecordSet::Fields()
 ADORecordSet::FieldTypesArray()
 ADORecordSet::Free()
 ADORecordSet::GetAll()
 ADORecordSet::GetArray()
 ADORecordSet::GetArrayLimit()
 ADORecordSet::GetAssoc()
 ADORecordSet::GetAssocKeys()
 ADORecordSet::GetMenu()
 ADORecordSet::GetMenu2()
 ADORecordSet::GetMenu3()
 ADORecordSet::GetRowAssoc()
 ADORecordSet::GetRows()
 ADORecordSet::Init()
 ADORecordSet::LastPageNo()
 ADORecordSet::MaxRecordCount()
 ADORecordSet::MetaType()
 ADORecordSet::Move()
 ADORecordSet::MoveFirst()
 ADORecordSet::MoveLast()
 ADORecordSet::MoveNext()
 ADORecordSet::NextRecordSet()
 ADORecordSet::NumCols()
 ADORecordSet::NumRows()
 ADORecordSet::PO_RecordCount()
 ADORecordSet::RecordCount()
 ADORecordSet::RowCount()
 ADORecordSet::UnixDate()
 ADORecordSet::UnixTimeStamp()
 ADORecordSet::UserDate()
 ADORecordSet::UserTimeStamp()
 ADORecordSet::_close()

Documentation generated on Wed, 23 Jan 2008 19:34:37 -0500 by phpDocumentor 1.4.0