3 final class PhamePostListController
extends PhamePostController
{
5 public function shouldAllowPublic() {
9 public function handleRequest(AphrontRequest
$request) {
10 $query_key = $request->getURIData('queryKey');
11 $controller = id(new PhabricatorApplicationSearchController())
12 ->setQueryKey($query_key)
13 ->setSearchEngine(new PhamePostSearchEngine())
14 ->setNavigation($this->buildSideNavView());
16 return $this->delegateToController($controller);
19 public function buildSideNavView() {
20 $viewer = $this->getRequest()->getUser();
22 $nav = new AphrontSideNavFilterView();
23 $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
25 id(new PhamePostSearchEngine())
27 ->addNavigationItems($nav->getMenu());
29 $nav->addLabel(pht('Blogs'));
30 $nav->addFilter('blog/', pht('Manage Blogs'));
32 $nav->selectFilter(null);