mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 03:12:41 +01:00
25 lines
606 B
PHP
25 lines
606 B
PHP
|
<?php
|
||
|
|
||
|
abstract class PhabricatorApplicationsController extends PhabricatorController {
|
||
|
|
||
|
public function shouldRequireAdmin() {
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
public function buildSideNavView($filter = null, $for_app = false) {
|
||
|
$user = $this->getRequest()->getUser();
|
||
|
|
||
|
$nav = new AphrontSideNavFilterView();
|
||
|
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
|
||
|
$nav->addLabel(pht('Installed Applications'));
|
||
|
$nav->addFilter('/', pht('Applications'));
|
||
|
|
||
|
return $nav;
|
||
|
}
|
||
|
|
||
|
public function buildApplicationMenu() {
|
||
|
return $this->buildSideNavView(null, true)->getMenu();
|
||
|
}
|
||
|
|
||
|
}
|