Exemplo n.º 1
0
 public function enableAction()
 {
     $this->_helper->layout()->disableLayout();
     $this->_helper->viewRenderer->setNoRender(true);
     if ($this->request->getParam('listid') != null) {
         $listid = explode(",", $this->request->getParam('listid'));
         $mapper = $this->request->getParam('mapper');
         $dbTable = $this->{$mapper}->getDbTable();
         Cloud_Model_Utli_CloudUtli::setEnable($dbTable, $listid);
     } else {
         echo 'error';
     }
 }
Exemplo n.º 2
0
 public function enableAction()
 {
     $flag = false;
     foreach ($this->privileges as $privilege) {
         if ($privilege['id'] == 38) {
             $flag = true;
         }
     }
     if (!$flag) {
         $this->_redirect('admin/index/error');
     }
     $this->_helper->layout()->disableLayout();
     $this->_helper->viewRenderer->setNoRender(true);
     if ($this->request->getParam('listid') != null) {
         $listid = explode(",", $this->request->getParam('listid'));
         $mapper = $this->request->getParam('mapper');
         $dbTable = $this->{$mapper}->getDbTable();
         Cloud_Model_Utli_CloudUtli::setEnable($dbTable, $listid);
     } else {
         echo 'error';
     }
 }