Пример #1
0
 /**
  * Retorna o valor antigo do registro antes de realizar a atualização
  *
  * @return Monitor_Model_LogServerRequest_Mapper
  */
 public function getValueOld()
 {
     if (!$this->_dataOld instanceof Monitor_Model_LogServerRequest_Mapper) {
         $this->_dataOld = new Monitor_Model_LogServerRequest_Mapper();
         $this->_dataOld->setId($this->getId());
         $this->_dataOld->retrive();
     }
     return $this->_dataOld;
 }
Пример #2
0
 /**
  * 
  */
 public function logAction()
 {
     $postData = Zend_Controller_Front::getInstance()->getRequest()->getParams();
     $url = $postData['url'];
     if ($url == '') {
         $url = 'http://intranet.tanet.com.br/server-status';
     }
     $serverStatus = new Monitor_Model_LogServerRequest_Mapper();
     $this->view->result = $serverStatus->log($url);
 }