示例#1
0
文件: Mapper.php 项目: rtsantos/mais
 /**
  * Retorna o valor antigo do registro antes de realizar a atualização
  *
  * @return Log_Model_LogEvento_Mapper
  */
 public function getValueOld()
 {
     if (!$this->_dataOld instanceof Log_Model_LogEvento_Mapper) {
         $this->_dataOld = new Log_Model_LogEvento_Mapper();
         $this->_dataOld->setId($this->getId());
         $this->_dataOld->retrive();
     }
     return $this->_dataOld;
 }
示例#2
0
文件: Mapper.php 项目: rtsantos/mais
 protected function _afterSave()
 {
     if ($this->_logger) {
         $_logEvento = new Log_Model_LogEvento_Mapper();
         $_logEvento->save($this->getModel()->getTableName(), $this->_action, $this->_data['id']->getValueToDb(), $this->_loggerNote);
     }
 }