Beispiel #1
0
 public function subGroupAlterAction()
 {
     if (!$this->request['alter']) {
         $model = new GroupsModel();
         $sub_groups = $model->selectSubGroups($this->request['id']);
         $access_create = $model->checkAccessSubGroupCreate($this->request['id']);
         $this->_view->__set("sub_groups", $sub_groups);
         $this->_view->__set("pid", $this->request['id']);
         $this->_view->__set("id", $this->request['id']);
         $alter_subgroup = $model->selectAlterSubGroup($this->request['pid']);
         $this->_view->__set("alter_subgroup", $alter_subgroup);
         $this->_view->__set("access_create", $access_create);
         $this->_view->subGroupView();
         $this->_view->parse();
     } else {
         $model = new GroupsModel();
         $model->alterSubGroup($this->request);
         Project::getResponse()->redirect(Project::getRequest()->createUrl('Groups', 'subGroupView') . '/id:' . $this->request['id']);
     }
 }