2013-09-10 19:04:26 +02:00
|
|
|
<?php
|
|
|
|
|
2013-09-13 18:50:46 +02:00
|
|
|
final class ManiphestTaskListController
|
2014-05-16 04:17:38 +02:00
|
|
|
extends ManiphestController {
|
2013-09-10 19:04:26 +02:00
|
|
|
|
|
|
|
private $queryKey;
|
|
|
|
|
|
|
|
public function shouldAllowPublic() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function willProcessRequest(array $data) {
|
|
|
|
$this->queryKey = idx($data, 'queryKey');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function processRequest() {
|
|
|
|
$request = $this->getRequest();
|
|
|
|
$controller = id(new PhabricatorApplicationSearchController($request))
|
|
|
|
->setQueryKey($this->queryKey)
|
2014-05-16 04:17:38 +02:00
|
|
|
->setSearchEngine(
|
|
|
|
id(new ManiphestTaskSearchEngine())
|
|
|
|
->setShowBatchControls(true))
|
2013-09-10 19:04:26 +02:00
|
|
|
->setNavigation($this->buildSideNavView());
|
|
|
|
|
|
|
|
return $this->delegateToController($controller);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|