/** * Retorna o valor antigo do registro antes de realizar a atualização * * @return Cms_Model_Status_Mapper */ public function getValueOld() { if (!$this->_dataOld instanceof Cms_Model_Status_Mapper) { $this->_dataOld = new Cms_Model_Status_Mapper(); $this->_dataOld->setId($this->getId()); $this->_dataOld->retrive(); } return $this->_dataOld; }
protected function _getIdStatus($value) { if (!is_numeric($value)) { $_status = new Cms_Model_Status_Mapper(); $_status->setDescricao($value)->retrieve(); $value = $_status->getId(); } return $value; }