Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F118944031
LegalpadController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jun 23, 05:09
Size
726 B
Mime Type
text/x-php
Expires
Wed, Jun 25, 05:09 (2 d)
Engine
blob
Format
Raw Data
Handle
26931822
Attached To
rPH Phabricator
LegalpadController.php
View Options
<?php
/**
* @group legalpad
*/
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
();
}
}
Event Timeline
Log In to Comment