public function securitylevelsAction() { $id = $this->_helper->IdConvert->hexToStr($this->getRequest()->getParam('id')); $form = new Logic_User_Form_SecurityLevels($id); $id_user = $this->_helper->IdConvert->hexToStr($this->getRequest()->getParam('id_user')); if ($this->getRequest()->isPost() && $form->isValid($this->getRequest()->getParams())) { if ($form->isCancelled($this->getRequest()->getPost())) { $this->_helper->redirector('showprofiles', 'user', null, array('id' => $this->getRequest()->getParam('id_user'))); return; } else { $user = new Logic_User(); $user->setSecurityLevels($form, $id, $id_user); $this->_helper->messenger->success('Zmiana poziomu zabezpieczeń wykonana poprawnie.'); $this->_helper->redirector('showprofiles', 'user', null, array('id' => $this->getRequest()->getParam('id_user'))); return; } } $this->view->form = $form; }