/** Update system for a treasure action * @param array $data * @return boolean */ public function updateTreasure($data) { if (!isset($data['updated']) || $data['updated'] instanceof Zend_Db_Expr) { $data['updated'] = $this->_time; } $where = parent::getAdapter()->quoteInto('treasureID = ?', $this->_treasureID); $data['updatedBy'] = $this->_auth->getIdentity()->id; return parent::update($data, $where); }
/** Update system for a treasure action * @access public * @param array $data * @return integer */ public function updateTreasure(array $data) { if (!isset($data['updated']) || $data['updated'] instanceof Zend_Db_Expr) { $data['updated'] = $this->timeCreation(); } $where = parent::getAdapter()->quoteInto('treasureID = ?', $this->getTreasureID()); $data['updatedBy'] = $this->getUserNumber(); return parent::update($data, $where); }