ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


arraychanges

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
arraychanges [2022/01/11 03:17] – created mnewnhamarraychanges [2022/01/12 02:38] (current) mnewnham
Line 5: Line 5:
   * Where the query is retrieved from a cached recordset.   * Where the query is retrieved from a cached recordset.
  
 +===== Order Of Instantiation =====
 +  - A Connection to the database is held in an ADOConnection object
 +  - A Query is issued and depending on the type of query, the result is held either:
 +     - ADORecordset_<driver> if the query is a select and returns 1 or more records
 +     - ADOrecordset_empty if the query is not a select
 +     - ADOrecordset_array_<driver> if the resultset is returned from the cache or no recordcount can be obtained.
  
 ===== Problems ===== ===== Problems =====
-When the class is invoked, it replaces the driver recordset completely. This means that any class methods in the class are destroyed. The  class extension path is from ADOrecordset_array to the driver specific class. The driver+The ADOrecordset_<driver> class is the repository of all of the driver specific recordset methods, for example ``metaColumns()''. If the query response is held in an object other than this, these methods are unavailable to the class. This is because the ADORecordset_array_<driver> class extenss ADORecordset_array, rather than ADORecordset_driver. 
 +  
 +When the class is invoked, it replaces the driver recordset completely. This means that any class methods in the class are destroyed. The class extension path is from ADOrecordset_array to the driver specific class. The driver
  
arraychanges.1641867426.txt.gz · Last modified: by mnewnham