mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 18:52:42 +01:00
c2ac63e9ad
Summary: Ref T6822. This method needs to be `public` because it is called from `PhabricatorApplicationSearchController::buildApplicationMenu()`. Test Plan: I wouldn't expect //increasing// method visibility to break anything. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T6822 Differential Revision: https://secure.phabricator.com/D11416
29 lines
699 B
PHP
29 lines
699 B
PHP
<?php
|
|
|
|
abstract class LegalpadController extends PhabricatorController {
|
|
|
|
public function buildSideNav($for_app = false) {
|
|
$user = $this->getRequest()->getUser();
|
|
|
|
$nav = new AphrontSideNavFilterView();
|
|
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
|
|
|
|
if ($for_app) {
|
|
$nav->addFilter('create/', pht('Create Document'));
|
|
}
|
|
|
|
id(new LegalpadDocumentSearchEngine())
|
|
->setViewer($user)
|
|
->addNavigationItems($nav->getMenu());
|
|
|
|
$nav->addLabel(pht('Signatures'));
|
|
$nav->addFilter('signatures/', pht('Find Signatures'));
|
|
|
|
return $nav;
|
|
}
|
|
|
|
public function buildApplicationMenu() {
|
|
return $this->buildSideNav(true)->getMenu();
|
|
}
|
|
|
|
}
|