Файл: concrete5.7.5.6/concrete/controllers/dialog/group/search.php
Строк: 38
<?php
namespace ConcreteControllerDialogGroup;
use ConcreteControllerBackendUserInterface as BackendInterfaceController;
use ConcreteControllerSearchGroups as SearchGroupsController;
use ConcreteCoreTreeTypeGroup as GroupTree;
use TaskPermission;
use Loader;
class Search extends BackendInterfaceController {
protected $viewPath = '/dialogs/group/search';
protected function canAccess() {
$tp = new TaskPermission();
return $tp->canAccessGroupSearch();
}
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');
}
}