Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93853162
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, Dec 2, 00:51
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Dec 4, 00:51 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22714643
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