Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97255997
PhabricatorGuideController.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
Fri, Jan 3, 20:14
Size
599 B
Mime Type
text/x-php
Expires
Sun, Jan 5, 20:14 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23366415
Attached To
rPH Phabricator
PhabricatorGuideController.php
View Options
<?php
abstract
class
PhabricatorGuideController
extends
PhabricatorController
{
public
function
buildSideNavView
(
$filter
=
null
,
$for_app
=
false
)
{
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
$nav
->
addLabel
(
pht
(
'Guides'
));
$modules
=
PhabricatorGuideModule
::
getEnabledModules
();
foreach
(
$modules
as
$key
=>
$module
)
{
$nav
->
addFilter
(
$key
.
'/'
,
$module
->
getModuleName
());
}
return
$nav
;
}
public
function
buildApplicationMenu
()
{
return
$this
->
buildSideNavView
(
null
,
true
)->
getMenu
();
}
}
Event Timeline
Log In to Comment