Class Zend_Db_Table_Row

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

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


	
			
Variable Summary
Method Summary
 Zend_Db_Table_Row __construct ([array $config = array()])
 integer save ()
 void setFromArray (array $data)
 array toArray ()
 void _refresh ()
 string __get (string $camel)
 void __set (string $camel, mixed $value)
Variables
array $_data = array() (line 41)

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

  • access: protected
Zend_Db_Adapter_Abstract $_db (line 48)

Zend_Db_Adapter_Abstract object from the table interface.

  • access: protected
array $_info = array() (line 62)

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

  • access: protected
Zend_Db_Table $_table (line 55)

Zend_Db_Table interface (the row "parent").

  • access: protected
Methods
Constructor __construct (line 69)

Constructor.

  • access: public
Zend_Db_Table_Row __construct ([array $config = array()])
  • array $config: OPTIONAL
save (line 129)

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
integer save ()
setFromArray (line 186)

Sets all data in the row from an array.

  • access: public
void setFromArray (array $data)
  • array $data
toArray (line 176)

Returns the column/value data as an array.

  • access: public
array toArray ()
_refresh (line 200)

Refreshes properties from the database.

  • access: protected
void _refresh ()
__get (line 91)

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 109)

Setter for camelCaps properties mapped to underscore_word columns.

  • access: public
  • throws: Zend_Db_Table_Row_Exception
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 Wed, 21 Feb 2007 11:59:03 -0800 by phpDocumentor 1.3.1