Class: DB_Table_Base
Source Location: /DB_Table-1.5.6/DB/Table/Base.php
Base class for DB_Table and DB_Table_Database
Author(s):
Version:
|
|
|
Child classes:
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
$backend = null
[line 93]
The backend type, which must be 'db' or 'mdb2'
$db = null
[line 85]
The PEAR DB/MDB2 object that connects to the database.
$error = null
[line 111]
If there is an error on instantiation, this captures that error. This property is used only for errors encountered in the constructor at instantiation time. To check if there was an instantiation error... $obj =& new DB_Table_*();
// ... error handling code here ...
}
$fetchmode = null
[line 140]
Format of rows in sets returned by the select() method This should be one of the DB/MDB2_FETCHMODE_* constant values, such as MDB2_FETCHMODE_ASSOC, MDB2_FETCHMODE_ORDERED, or MDB2_FETCHMODE_OBJECT. It determines whether select() returns represents individual rows as associative arrays with column name keys, ordered/sequential arrays, or objects with column names mapped to properties. Use corresponding DB_FETCHMODE_* constants for use with the DB backend. It has no effect upon the return value of selectResult(). If a 'fetchmode' element is set for a specific query array, the query fetchmode will override this DB_Table or DB_Table_Database property. If no value is set for the query or the DB_Table_Base object, the value or default set in the underlying DB/MDB2 object will be used.
$fetchmode_object_class = null
[line 154]
Class of objects to use for rows returned as objects by select() When fetchmode is DB/MDB2_FETCHMODE_OBJECT, use this class for each returned row in rsults of select(). May be overridden by value of 'fetchmode_object_class'. If no class name is set in the query or the DB_Table_Base, defaults to that set in the DB/MDB2 object, or to default of StdObject.
$sql = array()
[line 119]
Baseline SELECT maps for buildSQL() and select*() methods.
Method Detail
Documentation generated on Mon, 11 Mar 2019 15:28:00 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|