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

32 lines
657 B
PHP
Raw Normal View History

2011-01-24 18:00:29 +01:00
<?php
2011-07-04 21:03:36 +02:00
/**
* @group conduit
*/
2011-01-24 18:00:29 +01:00
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
}