Esempio n. 1
0
 public function view()
 {
     $cnt = new SearchGroupsController();
     $cnt->search();
     $result = Loader::helper('json')->encode($cnt->getSearchResultObject()->getJSONObject());
     $this->set('result', $result);
     $this->set('searchController', $cnt);
     $this->set('tree', GroupTree::get());
     $this->requireAsset('core/groups');
 }
Esempio n. 2
0
 public function view()
 {
     $tree = GroupTree::get();
     $this->set('tree', $tree);
     $this->requireAsset('core/groups');
     $cnt = new SearchGroupsController();
     $cnt->search();
     $this->set('searchController', $cnt);
     $c = Page::getByPath('/dashboard/users/add_group');
     $cp = new Permissions($c);
     $this->set('canAddGroup', $cp->canViewPage());
 }