Page MenuHomePhorge

LegalpadController.php
No OneTemporary

LegalpadController.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('edit/', 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();
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Jan 19, 19:36 (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128035
Default Alt Text
LegalpadController.php (697 B)

Event Timeline