1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 02:02:41 +01:00
phorge-phorge/src/applications/conduit/controller/PhabricatorConduitController.php

28 lines
630 B
PHP
Raw Normal View History

2011-01-24 18:00:29 +01:00
<?php
abstract class PhabricatorConduitController extends PhabricatorController {
protected function buildSideNavView() {
$viewer = $this->getRequest()->getUser();
$nav = new AphrontSideNavFilterView();
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
2011-01-24 18:00:29 +01:00
id(new PhabricatorConduitSearchEngine())
->setViewer($viewer)
->addNavigationItems($nav->getMenu());
$nav->addLabel('Logs');
$nav->addFilter('log', pht('Call Logs'));
$nav->selectFilter(null);
return $nav;
}
protected function buildApplicationMenu() {
return $this->buildSideNavView()->getMenu();
}
2011-01-24 18:00:29 +01:00
}