Remove product literal strings in "pht()", part 6
[phabricator.git] / src / applications / phurl / controller / PhabricatorPhurlURLListController.php
blob4572c304d93a60dfde2caf46b8d6381e442c1ad6
1 <?php
3 final class PhabricatorPhurlURLListController
4 extends PhabricatorPhurlController {
6 public function shouldAllowPublic() {
7 return true;
10 public function handleRequest(AphrontRequest $request) {
11 $engine = new PhabricatorPhurlURLSearchEngine();
12 $controller = id(new PhabricatorApplicationSearchController())
13 ->setQueryKey($request->getURIData('queryKey'))
14 ->setSearchEngine($engine)
15 ->setNavigation($this->buildSideNav());
16 return $this->delegateToController($controller);
19 public function buildSideNav() {
20 $user = $this->getRequest()->getUser();
22 $nav = new AphrontSideNavFilterView();
23 $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
25 id(new PhabricatorPhurlURLSearchEngine())
26 ->setViewer($user)
27 ->addNavigationItems($nav->getMenu());
29 $nav->selectFilter(null);
31 return $nav;