Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90798262
PhabricatorApplicationSettings.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, Nov 4, 20:59
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Nov 6, 20:59 (2 d)
Engine
blob
Format
Raw Data
Handle
22118972
Attached To
rPH Phabricator
PhabricatorApplicationSettings.php
View Options
<?php
final
class
PhabricatorApplicationSettings
extends
PhabricatorApplication
{
public
function
getBaseURI
()
{
return
'/settings/'
;
}
public
function
getShortDescription
()
{
return
pht
(
'User Preferences'
);
}
public
function
getIconName
()
{
return
'settings'
;
}
public
function
canUninstall
()
{
return
false
;
}
public
function
shouldAppearInLaunchView
()
{
return
false
;
}
public
function
getRoutes
()
{
return
array
(
'/settings/'
=>
array
(
'(?:(?P<id>
\d
+)/)?(?:panel/(?P<key>[^/]+)/)?'
=>
'PhabricatorSettingsMainController'
,
'adjust/'
=>
'PhabricatorSettingsAdjustController'
,
),
);
}
public
function
getApplicationGroup
()
{
return
self
::
GROUP_UTILITIES
;
}
public
function
buildMainMenuItems
(
PhabricatorUser
$user
,
PhabricatorController
$controller
=
null
)
{
$items
=
array
();
if
(
$user
->
isLoggedIn
()
&&
$user
->
isUserActivated
())
{
$selected
=
(
$controller
instanceof
PhabricatorSettingsMainController
);
$item
=
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'Settings'
))
->
setIcon
(
'settings-sm'
)
->
addClass
(
'core-menu-item'
)
->
setSelected
(
$selected
)
->
setHref
(
'/settings/'
)
->
setAural
(
pht
(
'Settings'
))
->
setOrder
(
400
);
$items
[]
=
$item
;
}
return
$items
;
}
}
Event Timeline
Log In to Comment