3 abstract class ReleephController
extends PhabricatorController
{
5 public function buildSideNavView($for_app = false) {
6 $user = $this->getRequest()->getUser();
8 $nav = new AphrontSideNavFilterView();
9 $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
12 $nav->addFilter('project/create/', pht('Create Product'));
15 id(new ReleephProductSearchEngine())
17 ->addNavigationItems($nav->getMenu());
19 $nav->selectFilter(null);
24 public function buildApplicationMenu() {
25 return $this->buildSideNavView(true)->getMenu();
29 protected function getProductViewURI(ReleephProject
$product) {
30 return $this->getApplicationURI('project/'.$product->getID().'/');
33 protected function getBranchViewURI(ReleephBranch
$branch) {
34 return $this->getApplicationURI('branch/'.$branch->getID().'/');