category | Zend |
---|---|
package | Zend_Db |
subpackage | Table |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
__call(string $method, array $args) : \Zend_Db_Table_Row_Abstract | \Zend_Db_Table_Rowset_Abstract
string
array
OPTIONAL Zend_Db_Table_Select query modifier
\Zend_Db_Table_Row_Exception |
If an invalid method is called. |
---|
\Zend_Db_Table_Row_Abstract
\Zend_Db_Table_Rowset_Abstract
__construct(array $config = array()
) : void
Supported params for $config are:-
array
OPTIONAL Array of user-specified config options.
\Zend_Db_Table_Row_Exception |
---|
__get(string $columnName) : string
string
The user-specified column name.
\Zend_Db_Table_Row_Exception |
if the $columnName is not a column in the row. |
---|
string
The corresponding column value.__isset(string $columnName) : boolean
string
The column key.
boolean
__set(string $columnName, mixed $value) : void
string
The column key.
mixed
The value for the property.
\Zend_Db_Table_Row_Exception |
---|
__sleep() : array
array
__unset(string $columnName) : \Zend_Db_Table_Row_Abstract
string
The column key.
\Zend_Db_Table_Row_Exception |
---|
\Zend_Db_Table_Row_Abstract
__wakeup() : void
A de-serialized Row should not be assumed to have access to a live database connection, so set _connected = false.
delete() : integer
integer
The number of rows deleted.findDependentRowset(string|\Zend_Db_Table_Abstract $dependentTable, $ruleKey= null
, \Zend_Db_Table_Select $select= null
) : \Zend_Db_Table_Rowset_Abstract
string
\Zend_Db_Table_Abstract
\Zend_Db_Table_Row_Exception |
If $dependentTable is not a table or is not loadable. |
---|
\Zend_Db_Table_Rowset_Abstract
Query result from $dependentTablefindManyToManyRowset(string|\Zend_Db_Table_Abstract $matchTable, string|\Zend_Db_Table_Abstract $intersectionTable, $callerRefRule= null
, $matchRefRule= null
, \Zend_Db_Table_Select $select= null
) : \Zend_Db_Table_Rowset_Abstract
string
\Zend_Db_Table_Abstract
string
\Zend_Db_Table_Abstract
\Zend_Db_Table_Row_Exception |
If $matchTable or $intersectionTable is not a table class or is not loadable. |
---|
\Zend_Db_Table_Rowset_Abstract
Query result from $matchTablefindParentRow(string|\Zend_Db_Table_Abstract $parentTable, $ruleKey= null
, \Zend_Db_Table_Select $select= null
) : \Zend_Db_Table_Row_Abstract
string
\Zend_Db_Table_Abstract
\Zend_Db_Table_Row_Exception |
If $parentTable is not a table or is not loadable. |
---|
\Zend_Db_Table_Row_Abstract
Query result from $parentTablegetIterator()
getPrimaryKey(boolean $useDirty = true
) : array
boolean
array
getTable() : \Zend_Db_Table_Abstract | null
\Zend_Db_Table_Abstract
null
getTableClass() : string
string
init() : void
Called from __construct() as final step of object instantiation.
isConnected() : boolean
boolean
isReadOnly() : boolean
boolean
offsetExists(string $offset) : boolean
string
boolean
offsetGet(string $offset) : string
string
string
offsetSet(string $offset, mixed $value)
string
mixed
offsetUnset(string $offset)
string
refresh() : void
save() : mixed
This performs an intelligent insert/update, and reloads the properties with fresh data from the table on success.
mixed
The primary key value(s), as an associative array if the
key is compound, or a scalar if the key is single-column.select() : \Zend_Db_Table_Select
\Zend_Db_Table_Select
setFromArray(array $data) : \Zend_Db_Table_Row_Abstract
array
\Zend_Db_Table_Row_Abstract
Provides a fluent interfacesetReadOnly(boolean $flag) : boolean
boolean
boolean
setTable(\Zend_Db_Table_Abstract $table = null
) : boolean
\Zend_Db_Table_Abstract
\Zend_Db_Table_Row_Exception |
---|
boolean
toArray() : array
array
_delete() : void
Subclasses may override this method.
_doInsert() : mixed
mixed
The primary key value(s), as an associative array if the
key is compound, or a scalar if the key is single-column._doUpdate() : mixed
mixed
The primary key value(s), as an associative array if the
key is compound, or a scalar if the key is single-column._getPrimaryKey(boolean $useDirty = true
) : array
boolean
array
_getTable() : \Zend_Db_Table_Abstract
\Zend_Db_Table_Abstract
_getTableFromString(string $tableName) : \Zend_Db_Table_Abstract
string
\Zend_Db_Table_Abstract
_getWhereQuery(boolean $useDirty = true
) : array
boolean
array
_insert() : void
Subclasses may override this method.
_postDelete() : void
Subclasses may override this method.
_postInsert() : void
Subclasses may override this method.
_postUpdate() : void
Subclasses may override this method.
_prepareReference(\Zend_Db_Table_Abstract $dependentTable, \Zend_Db_Table_Abstract $parentTable, string $ruleKey) : array
Ensures all reference keys are set and properly formatted.
\Zend_Db_Table_Abstract
\Zend_Db_Table_Abstract
string
array
_refresh() : void
_transformColumn(string $columnName) : string
You can override this method in a custom Row class to implement column name mappings, for example inflection.
string
Column name given.
\Zend_Db_Table_Row_Exception |
if the $columnName is not a string. |
---|
string
The column name after transformation applied (none by default)._update() : void
Subclasses may override this method.
$_cleanData : array
array()
$_connected : boolean
true
This is false after the Rowset has been deserialized.
$_data : array
array()
The keys must match the physical names of columns in the table for which this row is defined.
$_modifiedFields : array
array()
$_primary : array
$_readOnly : boolean
false
$_table : \Zend_Db_Table_Abstract
null
$_tableClass : string
null