Zend Framework
1.12
|
Public Member Functions | |
__construct ($config=array(), $definition=null) | |
__construct() - For concrete implementation of Zend_Db_Table | |
![]() | |
__construct ($config=array()) | |
Constructor. | |
setOptions (Array $options) | |
setOptions() | |
setDefinition (Zend_Db_Table_Definition $definition) | |
setDefinition() | |
getDefinition () | |
getDefinition() | |
setDefinitionConfigName ($definitionConfigName) | |
setDefinitionConfigName() | |
getDefinitionConfigName () | |
getDefinitionConfigName() | |
setRowClass ($classname) | |
getRowClass () | |
setRowsetClass ($classname) | |
getRowsetClass () | |
addReference ($ruleKey, $columns, $refTableClass, $refColumns, $onDelete=null, $onUpdate=null) | |
Add a reference to the reference map. | |
setReferences (array $referenceMap) | |
getReference ($tableClassname, $ruleKey=null) | |
setDependentTables (array $dependentTables) | |
getDependentTables () | |
setDefaultSource ($defaultSource=self::DEFAULT_NONE) | |
set the defaultSource property - this tells the table class where to find default values | |
getDefaultSource () | |
returns the default source flag that determines where defaultSources come from | |
setDefaultValues (Array $defaultValues) | |
set the default values for the table class | |
getDefaultValues () | |
getAdapter () | |
Gets the Zend_Db_Adapter_Abstract for this particular Zend_Db_Table object. | |
getMetadataCache () | |
Gets the metadata cache for information returned by Zend_Db_Adapter_Abstract::describeTable(). | |
setMetadataCacheInClass ($flag) | |
Indicate whether metadata should be cached in the class for the duration of the instance. | |
metadataCacheInClass () | |
Retrieve flag indicating if metadata should be cached for duration of instance. | |
init () | |
Initialize object. | |
info ($key=null) | |
Returns table information. | |
select ($withFromPart=self::SELECT_WITHOUT_FROM_PART) | |
Returns an instance of a Zend_Db_Table_Select object. | |
insert (array $data) | |
Inserts a new row. | |
isIdentity ($column) | |
Check if the provided column is an identity of the table. | |
update (array $data, $where) | |
Updates existing rows. | |
_cascadeUpdate ($parentTableClassname, array $oldPrimaryKey, array $newPrimaryKey) | |
Called by a row object for the parent table's class during save() method. | |
delete ($where) | |
Deletes existing rows. | |
_cascadeDelete ($parentTableClassname, array $primaryKey) | |
Called by parent table's class during delete() method. | |
find () | |
Fetches rows by primary key. | |
fetchAll ($where=null, $order=null, $count=null, $offset=null) | |
Fetches all rows. | |
fetchRow ($where=null, $order=null, $offset=null) | |
Fetches one row in an object of type Zend_Db_Table_Row_Abstract, or returns null if no row matches the specified criteria. | |
fetchNew () | |
Fetches a new blank row (not from the database). | |
createRow (array $data=array(), $defaultSource=null) | |
Fetches a new blank row (not from the database). | |
Additional Inherited Members | |
![]() | |
static | setDefaultAdapter ($db=null) |
Sets the default Zend_Db_Adapter_Abstract for all Zend_Db_Table objects. | |
static | getDefaultAdapter () |
Gets the default Zend_Db_Adapter_Abstract for all Zend_Db_Table objects. | |
static | setDefaultMetadataCache ($metadataCache=null) |
Sets the default metadata cache for information returned by Zend_Db_Adapter_Abstract::describeTable(). | |
static | getDefaultMetadataCache () |
Gets the default metadata cache for information returned by Zend_Db_Adapter_Abstract::describeTable(). | |
static | getTableFromString ($tableName, Zend_Db_Table_Abstract $referenceTable=null) |
![]() | |
const | ADAPTER = 'db' |
const | DEFINITION = 'definition' |
const | DEFINITION_CONFIG_NAME = 'definitionConfigName' |
const | SCHEMA = 'schema' |
const | NAME = 'name' |
const | PRIMARY = 'primary' |
const | COLS = 'cols' |
const | METADATA = 'metadata' |
const | METADATA_CACHE = 'metadataCache' |
const | METADATA_CACHE_IN_CLASS = 'metadataCacheInClass' |
const | ROW_CLASS = 'rowClass' |
const | ROWSET_CLASS = 'rowsetClass' |
const | REFERENCE_MAP = 'referenceMap' |
const | DEPENDENT_TABLES = 'dependentTables' |
const | SEQUENCE = 'sequence' |
const | COLUMNS = 'columns' |
const | REF_TABLE_CLASS = 'refTableClass' |
const | REF_COLUMNS = 'refColumns' |
const | ON_DELETE = 'onDelete' |
const | ON_UPDATE = 'onUpdate' |
const | CASCADE = 'cascade' |
const | CASCADE_RECURSE = 'cascadeRecurse' |
const | RESTRICT = 'restrict' |
const | SET_NULL = 'setNull' |
const | DEFAULT_NONE = 'defaultNone' |
const | DEFAULT_CLASS = 'defaultClass' |
const | DEFAULT_DB = 'defaultDb' |
const | SELECT_WITH_FROM_PART = true |
const | SELECT_WITHOUT_FROM_PART = false |
![]() | |
_setAdapter ($db) | |
_setMetadataCache ($metadataCache) | |
Sets the metadata cache for information returned by Zend_Db_Adapter_Abstract::describeTable(). | |
_setSequence ($sequence) | |
Sets the sequence member, which defines the behavior for generating primary key values in new rows. | |
_setup () | |
Turnkey for initialization of a table object. | |
_setupDatabaseAdapter () | |
Initialize database adapter. | |
_setupTableName () | |
Initialize table and schema names. | |
_setupMetadata () | |
Initializes metadata. | |
_getCols () | |
Retrieve table columns. | |
_setupPrimaryKey () | |
Initialize primary key from metadata. | |
_getReferenceMapNormalized () | |
Returns a normalized version of the reference map. | |
_where (Zend_Db_Table_Select $select, $where) | |
Generate WHERE clause from user-supplied string or array. | |
_order (Zend_Db_Table_Select $select, $order) | |
Generate ORDER clause from user-supplied string or array. | |
_fetch (Zend_Db_Table_Select $select) | |
Support method for fetching rows. | |
![]() | |
static | _setupAdapter ($db) |
static | _setupMetadataCache ($metadataCache) |
![]() | |
$_definition = null | |
$_definitionConfigName = null | |
$_db | |
$_schema = null | |
$_name = null | |
$_cols | |
$_primary = null | |
$_identity = 1 | |
$_sequence = true | |
$_metadata = array() | |
$_metadataCache = null | |
$_metadataCacheInClass = true | |
$_rowClass = 'Zend_Db_Table_Row' | |
$_rowsetClass = 'Zend_Db_Table_Rowset' | |
$_referenceMap = array() | |
$_dependentTables = array() | |
$_defaultSource = self::DEFAULT_NONE | |
$_defaultValues = array() | |
![]() | |
static | $_defaultDb |
static | $_defaultMetadataCache = null |
__construct | ( | $config = array() , |
|
$definition = null |
|||
) |
__construct() - For concrete implementation of Zend_Db_Table
string | array | $config | string can reference a Zend_Registry key for a db adapter OR it can reference the name of a table |
array | Zend_Db_Table_Definition | $definition |