_resourceName = 'Errorlog'; //Usato per abilitare la sezione filtri $this->_enableModalFilter = false; //Disable new insert of element $this->_enableNewInsert = false; parent::__construct($controller); } public function lista() { parent::lista(); $this->_controller->_EVENTLOADER = $this->_controller->getRequest()->getActionName(); $this->_controller->_MENUITEM = "errorlog"; $this->_controller->_PAGETITLE = 'Elenco Errori'; $this->_controller->_ICONTITLE = 'fa-hashtag'; } /** * Questa funzione se dichiarata effettua la manipolazione sui dati prima di restiutirli nella get * * @param $data * @return mixed */ protected function getElement($data) { $data['params'] = Zend_Json::decode($data['params']); $data['trace'] = Zend_Json::decode($data['trace']); $data['baseUrl'] = $this->_controller->getRequest()->getScheme() . '://' . $this->_controller->getRequest()->getHttpHost(); $this->_controller->view->assign($data); Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer')->setScriptAction(strtolower($this->_resourceName) . '/get'); $this->_controller->render(); $data['text'] = $this->_controller->getResponse()->getBody(); return $data; } //Personalizzazione della funzione di delete Elemento singolo /*protected function deleteElement($id){ $this->_model->delete($this->_resourceName,$id); }*/ }