3 final class ConpherenceRoomListController
extends ConpherenceController
{
5 public function shouldAllowPublic() {
9 public function handleRequest(AphrontRequest
$request) {
10 $user = $request->getUser();
12 $controller = id(new PhabricatorApplicationSearchController())
13 ->setQueryKey($request->getURIData('queryKey'))
15 new ConpherenceThreadSearchEngine())
16 ->setNavigation($this->buildRoomsSideNavView());
18 return $this->delegateToController($controller);
21 public function buildApplicationMenu() {
22 return $this->buildRoomsSideNavView(true)->getMenu();
25 private function buildRoomsSideNavView($for_app = false) {
26 $user = $this->getRequest()->getUser();
28 $nav = new AphrontSideNavFilterView();
29 $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
32 $nav->addFilter('new/', pht('Create Room'));
35 id(new ConpherenceThreadSearchEngine())
37 ->addNavigationItems($nav->getMenu());
39 $nav->selectFilter(null);