3 final class PhabricatorMetaMTAMailListController
4 extends PhabricatorMetaMTAController
{
6 public function handleRequest(AphrontRequest
$request) {
7 $controller = id(new PhabricatorApplicationSearchController())
8 ->setQueryKey($request->getURIData('queryKey'))
9 ->setSearchEngine(new PhabricatorMetaMTAMailSearchEngine())
10 ->setNavigation($this->buildSideNav());
12 return $this->delegateToController($controller);
15 public function buildSideNav() {
16 $user = $this->getRequest()->getUser();
18 $nav = new AphrontSideNavFilterView();
19 $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
21 id(new PhabricatorMetaMTAMailSearchEngine())
23 ->addNavigationItems($nav->getMenu());
25 $nav->selectFilter(null);
30 public function buildApplicationMenu() {
31 return $this->buildSideNav()->getMenu();