Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F116582630
PhabricatorConfigController.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
Sat, Jun 7, 19:06
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Jun 9, 19:06 (2 d)
Engine
blob
Format
Raw Data
Handle
26649832
Attached To
rPH Phabricator
PhabricatorConfigController.php
View Options
<?php
abstract
class
PhabricatorConfigController
extends
PhabricatorController
{
public
function
shouldRequireAdmin
()
{
return
true
;
}
public
function
buildSideNavView
(
$filter
=
null
,
$for_app
=
false
)
{
$user
=
$this
->
getRequest
()->
getUser
();
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
$nav
->
addLabel
(
pht
(
'Configuration'
));
$nav
->
addFilter
(
'/'
,
pht
(
'Browse Settings'
));
$nav
->
addFilter
(
'all/'
,
pht
(
'All Settings'
));
$nav
->
addFilter
(
'history/'
,
pht
(
'Settings History'
));
$nav
->
addLabel
(
pht
(
'Setup'
));
$nav
->
addFilter
(
'issue/'
,
pht
(
'Setup Issues'
));
$nav
->
addLabel
(
pht
(
'Database'
));
$nav
->
addFilter
(
'database/'
,
pht
(
'Database Status'
));
$nav
->
addFilter
(
'dbissue/'
,
pht
(
'Database Issues'
));
$nav
->
addLabel
(
pht
(
'Cache'
));
$nav
->
addFilter
(
'cache/'
,
pht
(
'Cache Status'
));
$nav
->
addLabel
(
pht
(
'Cluster'
));
$nav
->
addFilter
(
'cluster/databases/'
,
pht
(
'Database Servers'
));
$nav
->
addFilter
(
'cluster/notifications/'
,
pht
(
'Notification Servers'
));
$nav
->
addLabel
(
pht
(
'Welcome'
));
$nav
->
addFilter
(
'welcome/'
,
pht
(
'Welcome Screen'
));
$nav
->
addLabel
(
pht
(
'Modules'
));
$modules
=
PhabricatorConfigModule
::
getAllModules
();
foreach
(
$modules
as
$key
=>
$module
)
{
$nav
->
addFilter
(
'module/'
.
$key
.
'/'
,
$module
->
getModuleName
());
}
return
$nav
;
}
public
function
buildApplicationMenu
()
{
return
$this
->
buildSideNavView
(
null
,
true
)->
getMenu
();
}
}
Event Timeline
Log In to Comment