Page MenuHomec4science

ConpherenceRoomListController.php
No OneTemporary

File Metadata

Created
Fri, Nov 29, 19:36

ConpherenceRoomListController.php

<?php
final class ConpherenceRoomListController extends ConpherenceController {
public function shouldAllowPublic() {
return true;
}
public function handleRequest(AphrontRequest $request) {
$user = $request->getUser();
$controller = id(new PhabricatorApplicationSearchController())
->setQueryKey($request->getURIData('queryKey'))
->setSearchEngine(
new ConpherenceThreadSearchEngine())
->setNavigation($this->buildRoomsSideNavView());
return $this->delegateToController($controller);
}
public function buildApplicationMenu() {
return $this->buildRoomsSideNavView(true)->getMenu();
}
private function buildRoomsSideNavView($for_app = false) {
$user = $this->getRequest()->getUser();
$nav = new AphrontSideNavFilterView();
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
if ($for_app) {
$nav->addFilter('new/', pht('Create Room'));
}
id(new ConpherenceThreadSearchEngine())
->setViewer($user)
->addNavigationItems($nav->getMenu());
$nav->selectFilter(null);
return $nav;
}
}

Event Timeline