Exemplo n.º 1
0
 /** 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);
 }
Exemplo n.º 2
0
 /** 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);
 }