Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/guides/controller/PhabricatorGuideController.php
12242 views
1
<?php
2
3
abstract class PhabricatorGuideController extends PhabricatorController {
4
5
public function buildSideNavView($filter = null, $for_app = false) {
6
7
$nav = new AphrontSideNavFilterView();
8
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
9
$nav->addLabel(pht('Guides'));
10
11
$modules = PhabricatorGuideModule::getEnabledModules();
12
foreach ($modules as $key => $module) {
13
$nav->addFilter($key.'/', $module->getModuleName());
14
}
15
16
return $nav;
17
}
18
19
public function buildApplicationMenu() {
20
return $this->buildSideNavView(null, true)->getMenu();
21
}
22
23
}
24
25