Class for SQL table interface.
Located in /Db/Table/Abstract.php (line 43)
Class | Description |
---|---|
![]() |
Class for SQL table interface. |
Default Zend_Db_Adapter_Abstract object.
Default cache for information provided by the adapter's describeTable() method.
The table column names derived from Zend_Db_Adapter_Abstract::describeTable().
Zend_Db_Adapter_Abstract object.
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.
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.
Information provided by the adapter's describeTable() method.
Cache for information provided by the adapter's describeTable() method.
The table name.
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.
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:
Classname for row
Classname for rowset
The schema name (default null means current schema)
Define the logic for new values in the primary key.
May be a string, boolean true, or boolean false.
Gets the default Zend_Db_Adapter_Abstract for all Zend_Db_Table objects.
Gets the default metadata cache for information returned by Zend_Db_Adapter_Abstract::describeTable().
Sets the default Zend_Db_Adapter_Abstract for all Zend_Db_Table objects.
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.
Fetches a new blank row (not from the database).
Deletes existing rows.
Constructor.
Supported params for $config are:
Fetches all rows.
Honors the Zend_Db_Adapter fetch mode.
Fetches a new blank row (not from the database).
Fetches one row in an object of type Zend_Db_Table_Row_Abstract, or returns Boolean false if no row matches the specified criteria.
Fetches rows by primary key.
The arguments specify the primary key values. If the table has a multi-column primary key, you must pass as many arguments as the count of column in the primary key.
To find multiple rows by primary key, the argument should be an array. If the table has a multi-column primary key, all arguments must be arrays with the same number of elements.
The find() method always returns a Rowset object, even if only one row was found.
Gets the Zend_Db_Adapter_Abstract for this particular Zend_Db_Table object.
Gets the metadata cache for information returned by Zend_Db_Adapter_Abstract::describeTable().
Returns table information.
Inserts a new row.
Updates existing rows.
Called by parent table's class during delete() method.
Called by a row object for the parent table's class during save() method.
Support method for fetching rows.
Returns a normalized version of the reference map
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.
Sets the sequence member, which defines the behavior for generating primary key values in new rows.
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.
Initialize database adapter.
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.
Initialize primary key from metadata.
If $_primary is not defined, discover primary keys from the information returned by describeTable().
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.
Documentation generated on Sun, 27 May 2007 23:20:10 -0700 by phpDocumentor 1.3.2