Db/Table/Row/Abstract.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Db
- Subpackage
- Table
- Version
- $Id$
\Zend_Db_Table_Row_Abstract
- Implements
- Children
- \Zend_Db_Table_Row
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

array $_cleanData = array()array()Details- Type
- array

boolean $_connected = truetrueDetails- Type
- boolean

array $_data = array()array()Details- Type
- array

array $_modifiedFields = array()array()Details- Type
- array

boolean $_readOnly = falsefalseDetails- Type
- boolean

\Zend_Db_Table_Abstract $_table = nullnullDetailsMethods

__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.
| Name | Type | Description |
|---|---|---|
| $method | string | |
| $args | array | OPTIONAL Zend_Db_Table_Select query modifier |
| Type | Description |
|---|---|
| \Zend_Db_Table_Row_Abstract | \Zend_Db_Table_Rowset_Abstract |
| Exception | Description |
|---|---|
| \Zend_Db_Table_Row_Exception | If an invalid method is called. |

__construct(array $config = array()) : voidConstructor.
| Name | Type | Description |
|---|---|---|
| $config | array | OPTIONAL Array of user-specified config options. |
| Exception | Description |
|---|---|
| \Zend_Db_Table_Row_Exception |

__get(string $columnName) : stringRetrieve row field value
| Name | Type | Description |
|---|---|---|
| $columnName | string | The user-specified column name. |
| Type | Description |
|---|---|
| string | The corresponding column value. |
| Exception | Description |
|---|---|
| \Zend_Db_Table_Row_Exception | if the $columnName is not a column in the row. |

__isset(string $columnName) : booleanTest existence of row field
| Name | Type | Description |
|---|---|---|
| $columnName | string | The column key. |
| Type | Description |
|---|---|
| boolean |

__set(string $columnName, mixed $value) : voidSet row field value
| Name | Type | Description |
|---|---|---|
| $columnName | string | The column key. |
| $value | mixed | The value for the property. |
| Exception | Description |
|---|---|
| \Zend_Db_Table_Row_Exception |

__unset(string $columnName) : \Zend_Db_Table_Row_AbstractUnset row field value
| Name | Type | Description |
|---|---|---|
| $columnName | string | The column key. |
| Type | Description |
|---|---|
| \Zend_Db_Table_Row_Abstract |
| Exception | Description |
|---|---|
| \Zend_Db_Table_Row_Exception |

__wakeup() : voidSetup to do on wakeup.

_doInsert() : mixed| Type | Description |
|---|---|
| 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| Type | Description |
|---|---|
| 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(bool $useDirty = true) : arrayRetrieves an associative array of primary keys.
| Name | Type | Description |
|---|---|---|
| $useDirty | bool |
| Type | Description |
|---|---|
| array |

_getTable() : \Zend_Db_Table_AbstractRetrieves an instance of the parent table.
| Type | Description |
|---|---|
| \Zend_Db_Table_Abstract |

_getTableFromString(string $tableName) : \Zend_Db_Table_Abstract_getTableFromString
| Name | Type | Description |
|---|---|---|
| $tableName | string |
| Type | Description |
|---|---|
| \Zend_Db_Table_Abstract |

_getWhereQuery(bool $useDirty = true) : arrayConstructs where statement for retrieving row(s).
| Name | Type | Description |
|---|---|---|
| $useDirty | bool |
| Type | Description |
|---|---|
| array |

_postDelete() : voidAllows post-delete logic to be applied to row.

_postInsert() : voidAllows post-insert logic to be applied to row.

_postUpdate() : voidAllows post-update logic to be applied to row.

_prepareReference(\Zend_Db_Table_Abstract $dependentTable, \Zend_Db_Table_Abstract $parentTable, string $ruleKey) : arrayPrepares a table reference for lookup.
| Name | Type | Description |
|---|---|---|
| $dependentTable | \Zend_Db_Table_Abstract | |
| $parentTable | \Zend_Db_Table_Abstract | |
| $ruleKey | string |
| Type | Description |
|---|---|
| array |

_transformColumn(string $columnName) : stringTransform a column name from the user-specified form to the physical form used in the database.
| Name | Type | Description |
|---|---|---|
| $columnName | string | Column name given. |
| Type | Description |
|---|---|
| string | The column name after transformation applied (none by default). |
| Exception | Description |
|---|---|
| \Zend_Db_Table_Row_Exception | if the $columnName is not a string. |

findDependentRowset(string | \Zend_Db_Table_Abstract $dependentTable, $ruleKey = null, $select = null) : \Zend_Db_Table_Rowset_AbstractQuery a dependent table to retrieve rows matching the current row.
| Name | Type | Description |
|---|---|---|
| $dependentTable | string | \Zend_Db_Table_Abstract | |
| $ruleKey | ||
| $select |
| Type | Description |
|---|---|
| \Zend_Db_Table_Rowset_Abstract | Query result from $dependentTable |
| Exception | Description |
|---|---|
| \Zend_Db_Table_Row_Exception | If $dependentTable is not a table or is not loadable. |

findManyToManyRowset(string | \Zend_Db_Table_Abstract $matchTable, string | \Zend_Db_Table_Abstract $intersectionTable, $callerRefRule = null, $matchRefRule = null, $select = null) : \Zend_Db_Table_Rowset_Abstract| Name | Type | Description |
|---|---|---|
| $matchTable | string | \Zend_Db_Table_Abstract | |
| $intersectionTable | string | \Zend_Db_Table_Abstract | |
| $callerRefRule | ||
| $matchRefRule | ||
| $select |
| Type | Description |
|---|---|
| \Zend_Db_Table_Rowset_Abstract | Query result from $matchTable |
| Exception | Description |
|---|---|
| \Zend_Db_Table_Row_Exception | If $matchTable or $intersectionTable is not a table class or is not loadable. |

findParentRow(string | \Zend_Db_Table_Abstract $parentTable, $ruleKey = null, $select = null) : \Zend_Db_Table_Row_AbstractQuery a parent table to retrieve the single row matching the current row.
| Name | Type | Description |
|---|---|---|
| $parentTable | string | \Zend_Db_Table_Abstract | |
| $ruleKey | ||
| $select |
| Type | Description |
|---|---|
| \Zend_Db_Table_Row_Abstract | Query result from $parentTable |
| Exception | Description |
|---|---|
| \Zend_Db_Table_Row_Exception | If $parentTable is not a table or is not loadable. |

getPrimaryKey(bool $useDirty = true) : arrayRetrieves an associative array of primary keys.
| Name | Type | Description |
|---|---|---|
| $useDirty | bool |
| Type | Description |
|---|---|
| array |

getTable() : \Zend_Db_Table_Abstract | nullReturns the table object, or null if this is disconnected row
| Type | Description |
|---|---|
| \Zend_Db_Table_Abstract | null |

getTableClass() : stringQuery the class name of the Table object for which this Row was created.
| Type | Description |
|---|---|
| string |

init() : voidInitialize object

offsetExists(string $offset) : booleanProxy to __isset Required by the ArrayAccess implementation
| Name | Type | Description |
|---|---|---|
| $offset | string |
| Type | Description |
|---|---|
| boolean |

offsetGet(string $offset) : stringProxy to __get Required by the ArrayAccess implementation
| Name | Type | Description |
|---|---|---|
| $offset | string |
| Type | Description |
|---|---|
| string |

offsetSet(string $offset, mixed $value) : voidProxy to __set Required by the ArrayAccess implementation
| Name | Type | Description |
|---|---|---|
| $offset | string | |
| $value | mixed |

offsetUnset(string $offset) : voidProxy to __unset Required by the ArrayAccess implementation
| Name | Type | Description |
|---|---|---|
| $offset | string |

save() : mixedSaves the properties to the database.
| Type | Description |
|---|---|
| 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_SelectReturns an instance of the parent table's Zend_Db_Table_Select object.
| Type | Description |
|---|---|
| \Zend_Db_Table_Select |

setFromArray(array $data) : \Zend_Db_Table_Row_AbstractSets all data in the row from an array.
| Name | Type | Description |
|---|---|---|
| $data | array |
| Type | Description |
|---|---|
| \Zend_Db_Table_Row_Abstract | Provides a fluent interface |

setReadOnly(boolean $flag) : booleanSet the read-only status of the row.
| Name | Type | Description |
|---|---|---|
| $flag | boolean |
| Type | Description |
|---|---|
| boolean |

setTable(\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.
| Name | Type | Description |
|---|---|---|
| $table | \Zend_Db_Table_Abstract |
| Type | Description |
|---|---|
| boolean |
| Exception | Description |
|---|---|
| \Zend_Db_Table_Row_Exception |