3 abstract class LegalpadController
extends PhabricatorController
{
5 public function buildSideNav($for_app = false) {
6 $user = $this->getRequest()->getUser();
8 $nav = new AphrontSideNavFilterView();
9 $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
12 $nav->addFilter('edit/', pht('Create Document'));
15 id(new LegalpadDocumentSearchEngine())
17 ->addNavigationItems($nav->getMenu());
19 $nav->addLabel(pht('Signatures'));
20 $nav->addFilter('signatures/', pht('Find Signatures'));
25 public function buildApplicationMenu() {
26 return $this->buildSideNav(true)->getMenu();