Page MenuHomec4science

DivinerAtomListController.php
No OneTemporary

File Metadata

Created
Sun, Nov 17, 15:53

DivinerAtomListController.php

<?php
final class DivinerAtomListController extends DivinerController
implements PhabricatorApplicationSearchResultsControllerInterface {
private $key;
public function shouldAllowPublic() {
return true;
}
public function willProcessRequest(array $data) {
$this->key = idx($data, 'key', 'all');
}
public function processRequest() {
$request = $this->getRequest();
$controller = id(new PhabricatorApplicationSearchController($request))
->setQueryKey($this->key)
->setSearchEngine(new DivinerAtomSearchEngine())
->setNavigation($this->buildSideNavView());
return $this->delegateToController($controller);
}
public function renderResultsList(
array $symbols,
PhabricatorSavedQuery $query) {
return $this->renderAtomList($symbols);
}
}

Event Timeline