Docs For Class Zend_Db_Table_Row

## Class Zend_Db_Table_Row

Description

- license: New BSD License
- copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Db/Table/Row.php (line 36)

Variable Summary
array $_data
Zend_Db_Adapter $_db
array $_info
Zend_Db_Table $_table
Method Summary
Zend_Db_Table_Row __construct ([ $config = array()])
int save ()
void setFromArray (array $data)
array toArray ()
void _refresh ()
string __get (string $camel)
void __set (string $camel, mixed $value)
Variables
array $_data = array() (line 43)

The data for each column in the row (underscore_words => value).

- access: protected

Zend_Db_Adapter $_db (line 50)

Zend_Db_Adapter object from the table interface.

- access: protected

array $_info = array() (line 64)

Zend_Db_Table info (name, cols, primary, etc).

- access: protected

Zend_Db_Table $_table (line 57)

Zend_Db_Table interface (the row "parent").

- access: protected

Methods
Constructor __construct (line 69)

Constructor.

- access: public

Zend_Db_Table_Row __construct ([ $config = array()])

- $config

save (line 130)

Saves the properties to the database.

This performs an intelligent insert/update, and reloads the properties with fresh data from the table on success.

- return: 0 on failure, 1 on success.
- access: public

int save ()
setFromArray (line 187)

Sets all data in the row from an array.

- access: public

void setFromArray (array $data)

- array $data

toArray (line 177)

Returns the column/value data as an array.

- access: public

array toArray ()
_refresh (line 199)

Refreshes properties from the database.

- access: protected

void _refresh ()
__get (line 92)

Getter for camelCaps properties mapped to underscore_word columns.

- return: The mapped column value.
- access: public

string __get (string $camel)

- string $camel: The camelCaps property name; e.g., 'columnName' maps to 'column_name'.

__set (line 110)

Setter for camelCaps properties mapped to underscore_word columns.

- access: public

void __set (string $camel, mixed $value)

- string $camel: The camelCaps property name; e.g., 'columnName' maps to 'column_name'.
- mixed $value: The value for the property.

Documentation generated on Sun, 29 Oct 2006 21:27:30 -0600 by phpDocumentor 1.3.0RC6