Initial Commit
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
|
||||
class Application_ControllerSection_Admin_Index_Emailtemplate extends App_Controller_Sections_AbstractSection
|
||||
{
|
||||
|
||||
public function __construct(App_Controller_Sections_Section $controller){
|
||||
$this->_resourceName = 'EmailTemplate';
|
||||
|
||||
//Usato per abilitare la sezione filtri
|
||||
$this->_enableModalFilter = true;
|
||||
|
||||
//Disable new insert of element
|
||||
//$this->_enableNewInsert = false;
|
||||
|
||||
parent::__construct($controller);
|
||||
}
|
||||
|
||||
public function lista(){
|
||||
parent::lista();
|
||||
|
||||
$this->_controller->_MENUITEM = "emailtemplate";
|
||||
$this->_controller->_EVENTLOADER = $this->_controller->getRequest()->getActionName();
|
||||
$this->_controller->_PAGETITLE = 'Elenco Template Email';
|
||||
$this->_controller->_ICONTITLE = 'fa-envelope';
|
||||
|
||||
$this->_controller->view->popover_default_param_content = $this->_controller->getDefaultParamsPopoverTemplate();
|
||||
}
|
||||
|
||||
//Personalizzazione della funzione di delete Elemento singolo
|
||||
/*protected function deleteElement($id){
|
||||
$this->_model->delete($this->_resourceName,$id);
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
|
||||
class Application_ControllerSection_Admin_Index_Generic extends App_Controller_Sections_AbstractSection
|
||||
{
|
||||
|
||||
public function __construct(App_Controller_Sections_Section $controller){
|
||||
$this->_moduleName = 'admin';
|
||||
$this->_resourceName = 'NomeDellaRisorsa';
|
||||
|
||||
//Usato per abilitare la sezione filtri
|
||||
$this->_enableModalFilter = true;
|
||||
|
||||
//Disable new insert of element
|
||||
//$this->_enableNewInsert = false;
|
||||
|
||||
parent::__construct($controller);
|
||||
}
|
||||
|
||||
public function lista(){
|
||||
parent::lista();
|
||||
|
||||
$this->_controller->_MENUITEM = "nodellarisorsa";
|
||||
$this->_controller->_EVENTLOADER = $this->_controller->getRequest()->getActionName();
|
||||
$this->_controller->_PAGETITLE = 'Elenco Template ...';
|
||||
$this->_controller->_ICONTITLE = 'fa-';
|
||||
|
||||
}
|
||||
|
||||
//Personalizzazione della funzione di delete Elemento singolo
|
||||
/*protected function deleteElement($id){
|
||||
$this->_model->delete($this->_resourceName,$id);
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
class Application_ControllerSection_Monitoring_Index_Accesslog extends App_Controller_Sections_AbstractSection
|
||||
{
|
||||
|
||||
public function __construct(App_Controller_Sections_Section $controller){
|
||||
$this->_resourceName = 'Accesslog';
|
||||
|
||||
//Usato per abilitare la sezione filtri
|
||||
$this->_enableModalFilter = false;
|
||||
|
||||
//Disable new insert of element
|
||||
$this->_enableNewInsert = false;
|
||||
|
||||
//Disable new insert of element
|
||||
//$this->_enableModalDetail = false;
|
||||
|
||||
parent::__construct($controller);
|
||||
}
|
||||
|
||||
public function lista(){
|
||||
parent::lista();
|
||||
|
||||
$this->_controller->_EVENTLOADER = $this->_controller->getRequest()->getActionName();
|
||||
$this->_controller->_MENUITEM = "accesslog";
|
||||
$this->_controller->_PAGETITLE = 'Log Accessi al sito';
|
||||
$this->_controller->_ICONTITLE = 'fa-sign-in-alt';
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Questa funzione se dichiarata effettua la manipolazione sui dati prima di restiutirli nella get
|
||||
*
|
||||
* @param $data
|
||||
* @return mixed
|
||||
*/
|
||||
protected function getElement($data){
|
||||
|
||||
$data['Data'] = $this->_helper->ExtractData($data['Data']);
|
||||
$data['Descrizione'] = stripcslashes($data['Descrizione']);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
//Personalizzazione della funzione di delete Elemento singolo
|
||||
/*protected function deleteElement($id){
|
||||
$this->_model->delete($this->_resourceName,$id);
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
class Application_ControllerSection_Monitoring_Index_Errorlog extends App_Controller_Sections_AbstractSection
|
||||
{
|
||||
|
||||
public function __construct(App_Controller_Sections_Section $controller)
|
||||
{
|
||||
$this->_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);
|
||||
}*/
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user