Class for SQL table interface.
Located in /Zend/Db/Table/Abstract.php (line 36)
Class | Description |
---|---|
![]() |
Class for SQL table interface. |
Default Zend_Db_Adapter_Abstract object.
The table column names derived from Zend_Db_Adapter_Abstract::describeTable().
The key is the underscore format, and the value is the camelized format.
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.
Information provided by the adapter's describeTable() method.
The table name derived from the class name (underscore format).
The primary key column (underscore format).
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:
Default classname for row
Default classname for rowset
The schema name (default null means current schema)
Gets the default Zend_Db_Adapter_Abstract for all Zend_Db_Table objects.
Sets the default Zend_Db_Adapter_Abstract for all Zend_Db_Table objects.
Deletes existing rows.
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.
Returns table information.
Inserts a new row.
Constructor.
Supported params for $config are:
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.
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.
Initialize metadata.
Call describeTable() to discover metadata information.
Initialize primary key from metadata.
If $_primary is not defined, discover primary keys from the information returned by describeTable().
Initialize table name.
If the table name is not set in the class definition, use the class name itself as the table name.
Documentation generated on Fri, 06 Apr 2007 18:14:58 -0700 by phpDocumentor 1.3.1