protected function update() { $bind = array(); foreach ($this->databaseControls as $control) { if (!$control instanceof Volcano_Component_Control_Database_ReadOnly) { $bind[$control->getDbField()] = $control->getDbValue(); } } $where = $this->db->quoteIdentifier($this->primaryKeyName) . " = " . $this->db->quote($this->primaryKeyValue); try { $this->db->update($this->tableName, $bind, $where); } catch (Zend_Db_Exception $e) { $this->errors[] = $this->localizer->translate("Database Error: %1\$s", $e->getMessage()); return false; } foreach ($this->databaseControls as $control) { if ($control instanceof Volcano_Component_Control_Database_File || $control instanceof Volcano_Component_Control_File) { if (!$control->move($this->primaryKeyValue)) { return false; } } } return "update"; }