Ejemplo n.º 1
0
 public function changeStatusMultiAction()
 {
     $this->setInvokeArg('noViewRenderer', true);
     $action_check = $this->getRequest()->getPost('action_check');
     if ($action_check && is_array($action_check)) {
         foreach ($action_check as $record_id) {
             Model_Pages::changeStatus($record_id);
         }
     }
 }
Ejemplo n.º 2
0
 public function changeStatusMultiAction()
 {
     if (!WM_Users::allow('edit', $this->getRequest()->getController())) {
         $this->session->set('error_permision', $this->translate('You do not have permission to this action'));
         $this->redirect($this->getRequest()->getBaseUrl() . $this->getRequest()->getModule() . '/pages/' . ($this->getRequest()->getQuery('parent_id') ? '?parent_id=' . $this->getRequest()->getQuery('parent_id') : ''));
     }
     $this->noViewRenderer(true);
     $action_check = $this->getRequest()->getPost('action_check');
     if ($action_check && is_array($action_check)) {
         foreach ($action_check as $record_id) {
             Model_Pages::changeStatus($record_id);
         }
     }
 }