Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
array $_cleanData = 'array'This is set to a copy of $_data when the data is fetched from a database, specified as a new tuple in the constructor, or when dirty data is posted to the database with save().
Detailsboolean $_connected = 'true'Connected is true if we have a reference to a live Zend_Db_Table_Abstract object.
This is false after the Rowset has been deserialized.
Detailsarray $_data = 'array'The data for each column in the row (column_name => value).
The keys must match the physical names of columns in the table for which this row is defined.
Detailsarray $_modifiedFields = 'array'Tracks columns where data has been updated. Allows more specific insert and update operations.
Detailsarray $_primary = ''Primary row key(s).
Detailsboolean $_readOnly = 'false'A row is marked read only if it contains columns that are not physically represented within the database schema (e.g. evaluated columns/Zend_Db_Expr columns). This can also be passed as a run-time config options as a means of protecting row data.
DetailsZend_Db_Table_Abstract $_table = 'null'Zend_Db_Table_Abstract parent class or instance.
Detailsstring $_tableClass = 'null'Name of the class of the Zend_Db_Table_Abstract object.
Details__call(
string $method, array $args
)
:
Zend_Db_Table_Row_Abstract|Zend_Db_Table_Rowset_AbstractTurn magic function calls into non-magic function calls to the above methods.
Details__construct(
array $config
=
array
)
:
voidConstructor.
Supported params for $config are:- - table = class name or object of type Zend_Db_Table_Abstract - data = values of columns in this row.
Details__get(
string $columnName
)
:
stringRetrieve row field value
Details__isset(
string $columnName
)
:
booleanTest existence of row field
Details__set(
string $columnName, mixed $value
)
:
voidSet row field value
Details__sleep(
)
:
arrayStore table, primary key and data in serialized object
Details__unset(
string $columnName
)
:
Zend_Db_Table_Row_AbstractUnset row field value
Details__wakeup(
)
:
voidSetup to do on wakeup.
A de-serialized Row should not be assumed to have access to a live database connection, so set _connected = false.
Details_delete(
)
:
voidAllows pre-delete logic to be applied to row.
Subclasses may override this method.
Details_doInsert(
)
:
mixed
Details_doUpdate(
)
:
mixed
Details_getPrimaryKey(
bool $useDirty
=
true
)
:
arrayRetrieves an associative array of primary keys.
Details_getTable(
)
:
Zend_Db_Table_AbstractRetrieves an instance of the parent table.
Details_getTableFromString(
string $tableName
)
:
Zend_Db_Table_Abstract_getTableFromString
Details_getWhereQuery(
bool $useDirty
=
true
)
:
arrayConstructs where statement for retrieving row(s).
Details_insert(
)
:
voidAllows pre-insert logic to be applied to row.
Subclasses may override this method.
Details_postDelete(
)
:
voidAllows post-delete logic to be applied to row.
Subclasses may override this method.
Details_postInsert(
)
:
voidAllows post-insert logic to be applied to row.
Subclasses may override this method.
Details_postUpdate(
)
:
voidAllows post-update logic to be applied to row.
Subclasses may override this method.
Details_prepareReference(
Zend_Db_Table_Abstract $dependentTable, Zend_Db_Table_Abstract $parentTable, string $ruleKey
)
:
arrayPrepares a table reference for lookup.
Ensures all reference keys are set and properly formatted.
Details_refresh(
)
:
voidRefreshes properties from the database.
Details_transformColumn(
string $columnName
)
:
stringTransform a column name from the user-specified form to the physical form used in the database.
You can override this method in a custom Row class to implement column name mappings, for example inflection.
Details_update(
)
:
voidAllows pre-update logic to be applied to row.
Subclasses may override this method.
Detailsdelete(
)
:
intDeletes existing rows.
DetailsfindDependentRowset(
string|Zend_Db_Table_Abstract $dependentTable, string $ruleKey
=
null, Zend_Db_Table_Select $select
=
null
)
:
Zend_Db_Table_Rowset_AbstractQuery a dependent table to retrieve rows matching the current row.
DetailsfindManyToManyRowset(
string|Zend_Db_Table_Abstract $matchTable, string|Zend_Db_Table_Abstract $intersectionTable, string $callerRefRule
=
null, string $matchRefRule
=
null, Zend_Db_Table_Select $select
=
null
)
:
Zend_Db_Table_Rowset_Abstract
DetailsfindParentRow(
string|Zend_Db_Table_Abstract $parentTable, string $ruleKey
=
null, Zend_Db_Table_Select $select
=
null
)
:
Zend_Db_Table_Row_AbstractQuery a parent table to retrieve the single row matching the current row.
DetailsgetIterator(
)
:
DetailsgetTable(
)
:
Zend_Db_Table_Abstract|nullReturns the table object, or null if this is disconnected row
DetailsgetTableClass(
)
:
stringQuery the class name of the Table object for which this Row was created.
Detailsinit(
)
:
voidInitialize object
Called from {@link __construct()} as final step of object instantiation.
DetailsisConnected(
)
:
booleanTest the connected status of the row.
DetailsisReadOnly(
)
:
booleanTest the read-only status of the row.
DetailsoffsetExists(
string $offset
)
:
booleanProxy to __isset Required by the ArrayAccess implementation
DetailsoffsetGet(
string $offset
)
:
stringProxy to __get Required by the ArrayAccess implementation
DetailsoffsetSet(
string $offset, mixed $value
)
:
Proxy to __set Required by the ArrayAccess implementation
DetailsoffsetUnset(
string $offset
)
:
Proxy to __unset Required by the ArrayAccess implementation
Detailsrefresh(
)
:
voidRefreshes properties from the database.
Detailssave(
)
:
mixedSaves the properties to the database.
This performs an intelligent insert/update, and reloads the properties with fresh data from the table on success.
Detailsselect(
)
:
Zend_Db_Table_SelectReturns an instance of the parent table's Zend_Db_Table_Select object.
DetailssetFromArray(
array $data
)
:
Zend_Db_Table_Row_AbstractSets all data in the row from an array.
DetailssetReadOnly(
boolean $flag
)
:
booleanSet the read-only status of the row.
DetailssetTable(
Zend_Db_Table_Abstract $table
=
null
)
:
booleanSet the table object, to re-establish a live connection to the database for a Row that has been de-serialized.
DetailstoArray(
)
:
arrayReturns the column/value data as an array.
Details