Файл: concrete5.7.5.6/concrete/controllers/dialog/user/search.php
Строк: 34
<?php
namespace ConcreteControllerDialogUser;
use ConcreteControllerBackendUserInterface as BackendInterfaceController;
use Loader;
class Search extends BackendInterfaceController {
protected $viewPath = '/dialogs/user/search';
protected function canAccess() {
$tp = Loader::helper('concrete/user');
return $tp->canAccessUserSearchInterface();
}
public function view() {
$cnt = new ConcreteControllerSearchUsers();
$cnt->search();
$result = Loader::helper('json')->encode($cnt->getSearchResultObject()->getJSONObject());
$this->requireAsset('select2');
$this->set('result', $result);
$this->set('searchController', $cnt);
}
}