Differential D13773 Diff 33266 src/applications/maniphest/controller/ManiphestTaskListController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/controller/ManiphestTaskListController.php
<?php | <?php | ||||
final class ManiphestTaskListController | final class ManiphestTaskListController | ||||
extends ManiphestController { | extends ManiphestController { | ||||
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'); | $querykey = $request->getURIData('queryKey'); | ||||
} | |||||
public function processRequest() { | |||||
$controller = id(new PhabricatorApplicationSearchController()) | $controller = id(new PhabricatorApplicationSearchController()) | ||||
->setQueryKey($this->queryKey) | ->setQueryKey($querykey) | ||||
->setSearchEngine( | ->setSearchEngine( | ||||
id(new ManiphestTaskSearchEngine()) | id(new ManiphestTaskSearchEngine()) | ||||
->setShowBatchControls(true)) | ->setShowBatchControls(true)) | ||||
->setNavigation($this->buildSideNavView()); | ->setNavigation($this->buildSideNavView()); | ||||
return $this->delegateToController($controller); | return $this->delegateToController($controller); | ||||
} | } | ||||
} | } |