コード例 #1
0
ファイル: search.php プロジェクト: masteramuk/concrete5
 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');
 }
コード例 #2
0
ファイル: groups.php プロジェクト: yakamoz-fang/concrete
 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());
 }