ArininAV

->update()

->update() -- Update objects variables into database

Synopsis

int $DB_DataObject->update ([dataobject $original])

Описание

Updates current objects variables into the database. if you supply it with a dataObject, as an argument, it will only update the differences between the new and old.

Параметр

Возвращаемое значение

int number of rows affected or FALSE on failure

Throws

Таблица 32-1. Возможные значения PEAR_Error

Error codeError messageMeaningSolution
DB_DATAOBJECT_ERROR_INVALIDCONFIG"update:No table definition for $table"  
DB_DATAOBJECT_ERROR_NODATA"update: No Data specifed for query $settings"  

Заметка

Эта функция не должна вызываться статически.

Пример