Differential D14001 Diff 33860 src/applications/releeph/controller/product/ReleephProductListController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/releeph/controller/product/ReleephProductListController.php
| <?php | <?php | ||||
| final class ReleephProductListController extends ReleephController { | final class ReleephProductListController extends ReleephController { | ||||
| private $queryKey; | |||||
| public function shouldAllowPublic() { | public function shouldAllowPublic() { | ||||
| return true; | return true; | ||||
| } | } | ||||
| public function willProcessRequest(array $data) { | public function handleRequest(AphrontRequest $request) { | ||||
| $this->queryKey = idx($data, 'queryKey'); | $query_key = $request->getURIData('queryKey'); | ||||
| } | |||||
| public function processRequest() { | |||||
| $controller = id(new PhabricatorApplicationSearchController()) | $controller = id(new PhabricatorApplicationSearchController()) | ||||
| ->setQueryKey($this->queryKey) | ->setQueryKey($query_key) | ||||
| ->setSearchEngine(new ReleephProductSearchEngine()) | ->setSearchEngine(new ReleephProductSearchEngine()) | ||||
| ->setNavigation($this->buildSideNavView()); | ->setNavigation($this->buildSideNavView()); | ||||
| return $this->delegateToController($controller); | return $this->delegateToController($controller); | ||||
| } | } | ||||
| protected function buildApplicationCrumbs() { | protected function buildApplicationCrumbs() { | ||||
| $crumbs = parent::buildApplicationCrumbs(); | $crumbs = parent::buildApplicationCrumbs(); | ||||
| Show All 11 Lines | |||||