Zend_Db_Table_AbstractClass for SQL table interface.
Located in /Db/Table/Abstract.php (line 47)
| Class | Description |
|---|---|
Zend_Db_Table
|
Class for SQL table interface. |
Zend_Session_SaveHandler_DbTable
|
Zend_Session_SaveHandler_DbTable |
Zend_Queue_Adapter_Db_Queue
|
|
Zend_Queue_Adapter_Db_Message
|
Zend_Db_Table_Abstract
addReference
(string $ruleKey, string|array $columns, string $refTableClass, string|array $refColumns, [string $onDelete = null], [string $onUpdate = null])
Zend_Db_Table_Rowset_Abstract
fetchAll
([string|array|Zend_Db_Table_Select $where = null], [string|array $order = null], [int $count = null], [int $offset = null])
Zend_Db_Table_Row_Abstract|null
fetchRow
([string|array|Zend_Db_Table_Select $where = null], [string|array $order = null])
static Zend_Db_Adapter_Abstract
$_defaultDb
(line 88)
Default Zend_Db_Adapter_Abstract object.
static Zend_Cache_Core
$_defaultMetadataCache
= null (line 109)
Default cache for information provided by the adapter's describeTable() method.
array
$_cols
(line 137)
The table column names derived from Zend_Db_Adapter_Abstract::describeTable().
Zend_Db_Adapter_Abstract
$_db
(line 116)
Zend_Db_Adapter_Abstract object.
mixed
$_defaultSource
= self::DEFAULT_NONE (line 234)
mixed
$_defaultValues
= array() (line 235)
unknown_type
$_definition
= null (line 95)
Optional Zend_Db_Table_Definition object
string
$_definitionConfigName
= null (line 102)
Optional definition config name used in concrete implementation
array
$_dependentTables
= array() (line 231)
Simple array of class names of tables that are "children" of the current table, in other words tables that contain a foreign key to this one.
Array elements are not table names; they are class names of classes that extend Zend_Db_Table_Abstract.
integer
$_identity
= 1 (line 159)
If your primary key is a compound key, and one of the columns uses an auto-increment or sequence-generated value, set _identity to the ordinal index in the $_primary array for that column.
Note this index is the position of the column in the primary key, not the position of the column in the table. The primary key array is 1-based.
array
$_metadata
= array() (line 174)
Information provided by the adapter's describeTable() method.
Zend_Cache_Core
$_metadataCache
= null (line 181)
Cache for information provided by the adapter's describeTable() method.
bool
$_metadataCacheInClass
= true (line 187)
Flag: whether or not to cache metadata in the class
string
$_name
= null (line 130)
The table name.
mixed
$_primary
= null (line 147)
The primary key column or columns.
A compound key should be declared as an array. You may declare a single-column primary key as a string.
array
$_referenceMap
= array() (line 221)
Associative array map of declarative referential integrity rules.
This array has one entry per foreign key in the current table. Each key is a mnemonic name for one reference rule.
Each value is also an associative array, with the following keys:
string
$_rowClass
= 'Zend_Db_Table_Row' (line 194)
Classname for row
string
$_rowsetClass
= 'Zend_Db_Table_Rowset' (line 201)
Classname for rowset
array
$_schema
= null (line 123)
The schema name (default null means current schema)
mixed
$_sequence
= true (line 167)
Define the logic for new values in the primary key.
May be a string, boolean true, or boolean false.
static getDefaultAdapter (line 570)
Gets the default Zend_Db_Adapter_Abstract for all Zend_Db_Table objects.
static getDefaultMetadataCache (line 634)
Gets the default metadata cache for information returned by Zend_Db_Adapter_Abstract::describeTable().
static setDefaultAdapter (line 560)
Sets the default Zend_Db_Adapter_Abstract for all Zend_Db_Table objects.
static setDefaultMetadataCache (line 624)
Sets the default metadata cache for information returned by Zend_Db_Adapter_Abstract::describeTable().
If $defaultMetadataCache is null, then no metadata cache is used by default.
static _setupAdapter (line 600)
static _setupMetadataCache (line 695)
addReference (line 423)
Add a reference to the reference map
createRow (line 1406)
Fetches a new blank row (not from the database).
delete (line 1158)
Deletes existing rows.
fetchAll (line 1300)
Fetches all rows.
Honors the Zend_Db_Adapter fetch mode.
fetchNew (line 1394)
Fetches a new blank row (not from the database).
fetchRow (line 1348)
Fetches one row in an object of type Zend_Db_Table_Row_Abstract, or returns null if no row matches the specified criteria.
find (line 1217)
Fetches rows by primary key. The argument specifies one or more primary key value(s). To find multiple rows by primary key, the argument must be an array.
This method accepts a variable number of arguments. If the table has a multi-column primary key, the number of arguments must be the same as the number of columns in the primary key. To find multiple rows in a table with a multi-column primary key, each argument must be an array with the same number of elements.
The find() method always returns a Rowset object, even if only one row was found.
getAdapter (line 590)
Gets the Zend_Db_Adapter_Abstract for this particular Zend_Db_Table object.
getDefaultSource (line 527)
returns the default source flag that determines where defaultSources come from
getDefaultValues (line 548)
getDefinitionConfigName (line 369)
getDefinitionConfigName()
getDependentTables (line 501)
getMetadataCache (line 661)
Gets the metadata cache for information returned by Zend_Db_Adapter_Abstract::describeTable().
getReference (line 460)
getRowClass (line 388)
getRowsetClass (line 407)
info (line 967)
Returns table information.
You can elect to return only a part of this information by supplying its key name, otherwise all information is returned as an array.
init (line 954)
Initialize object
Called from __construct() as final step of object instantiation.
insert (line 1018)
Inserts a new row.
isIdentity (line 1083)
Check if the provided column is an identity of the table
metadataCacheInClass (line 685)
Retrieve flag indicating if metadata should be cached for duration of instance
select (line 1002)
Returns an instance of a Zend_Db_Table_Select object.
Constructor __construct (line 255)
Constructor.
Supported params for $config are:
setDefaultSource (line 512)
set the defaultSource property - this tells the table class where to find default values
setDefaultValues (line 538)
set the default values for the table class
setDefinitionConfigName (line 358)
setDefinitionConfigName()
setDependentTables (line 491)
setMetadataCacheInClass (line 673)
Indicate whether metadata should be cached in the class for the duration of the instance
setRowsetClass (line 397)
update (line 1106)
Updates existing rows.
_cascadeDelete (line 1171)
Called by parent table's class during delete() method.
_cascadeUpdate (line 1120)
Called by a row object for the parent table's class during save() method.
_getCols (line 842)
Retrieve table columns
_getReferenceMapNormalized (line 915)
Returns a normalized version of the reference map
_order (line 1484)
Generate ORDER clause from user-supplied string or array
_setAdapter (line 579)
_setMetadataCache (line 650)
Sets the metadata cache for information returned by Zend_Db_Adapter_Abstract::describeTable().
If $metadataCache is null, then no metadata cache is used. Since there is no opportunity to reload metadata after instantiation, this method need not be public, particularly because that it would have no effect results in unnecessary API complexity. To configure the metadata cache, use the metadataCache configuration option for the class constructor upon instantiation.
_setSequence (line 723)
Sets the sequence member, which defines the behavior for generating primary key values in new rows.
_setup (line 737)
Turnkey for initialization of a table object.
Calls other protected methods for individual tasks, to make it easier for a subclass to override part of the setup logic.
_setupDatabaseAdapter (line 748)
Initialize database adapter.
_setupMetadata (line 788)
Initializes metadata.
If metadata cannot be loaded from cache, adapter's describeTable() method is called to discover metadata information. Returns true if and only if the metadata are loaded from cache.
_setupPrimaryKey (line 859)
Initialize primary key from metadata.
If $_primary is not defined, discover primary keys from the information returned by describeTable().
_setupTableName (line 770)
Initialize table and schema names.
If the table name is not set in the class definition, use the class name itself as the table name.
A schema name provided with the table name (e.g., "schema.table") overrides any existing value for $this->_schema.
_where (line 1459)
Generate WHERE clause from user-supplied string or array
ADAPTER
= 'db'
(line 50)
CASCADE
= 'cascade'
(line 72)
COLS
= 'cols'
(line 56)
COLUMNS
= 'columns'
(line 66)
DEFAULT_CLASS
= 'defaultClass'
(line 77)
DEFAULT_DB
= 'defaultDb'
(line 78)
DEFAULT_NONE
= 'defaultNone'
(line 76)
DEFINITION
= 'definition'
(line 51)
DEFINITION_CONFIG_NAME
= 'definitionConfigName'
(line 52)
DEPENDENT_TABLES
= 'dependentTables'
(line 63)
METADATA
= 'metadata'
(line 57)
METADATA_CACHE
= 'metadataCache'
(line 58)
METADATA_CACHE_IN_CLASS
= 'metadataCacheInClass'
(line 59)
NAME
= 'name'
(line 54)
ON_DELETE
= 'onDelete'
(line 69)
ON_UPDATE
= 'onUpdate'
(line 70)
PRIMARY
= 'primary'
(line 55)
REFERENCE_MAP
= 'referenceMap'
(line 62)
REF_COLUMNS
= 'refColumns'
(line 68)
REF_TABLE_CLASS
= 'refTableClass'
(line 67)
RESTRICT
= 'restrict'
(line 73)
ROWSET_CLASS
= 'rowsetClass'
(line 61)
ROW_CLASS
= 'rowClass'
(line 60)
SCHEMA
= 'schema'
(line 53)
SELECT_WITHOUT_FROM_PART
= false
(line 81)
SELECT_WITH_FROM_PART
= true
(line 80)
SEQUENCE
= 'sequence'
(line 64)
SET_NULL
= 'setNull'
(line 74)
Documentation generated on Mon, 21 Jun 2010 15:05:08 -0400 by phpDocumentor 1.4.3