Файл: concrete5.7.5.6/concrete/controllers/dialog/page/search.php
Строк: 33
<?php
namespace ConcreteControllerDialogPage;
use ConcreteControllerBackendUserInterface as BackendInterfaceController;
use Loader;
class Search extends BackendInterfaceController {
protected $viewPath = '/dialogs/page/search';
protected function canAccess() {
$sh = Loader::helper('concrete/dashboard/sitemap');
return $sh->canRead();
}
public function view() {
$this->set('timestamp', time());
$cnt = new ConcreteControllerSearchPages();
$cnt->search();
$result = Loader::helper('json')->encode($cnt->getSearchResultObject()->getJSONObject());
$this->set('result', $result);
$this->set('searchController', $cnt);
}
}