Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F539893
PhabricatorPinnedApplicationsSetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
712 B
Referenced Files
None
Subscribers
None
PhabricatorPinnedApplicationsSetting.php
View Options
<?php
final
class
PhabricatorPinnedApplicationsSetting
extends
PhabricatorInternalSetting
{
const
SETTINGKEY
=
'app-pinned'
;
public
function
getSettingName
()
{
return
pht
(
'Pinned Applications'
);
}
public
function
getSettingDefaultValue
()
{
$viewer
=
PhabricatorUser
::
getOmnipotentUser
();
$applications
=
id
(
new
PhabricatorApplicationQuery
())
->
setViewer
(
$viewer
)
->
withInstalled
(
true
)
->
withUnlisted
(
false
)
->
withLaunchable
(
true
)
->
execute
();
$pinned
=
array
();
foreach
(
$applications
as
$application
)
{
if
(
$application
->
isPinnedByDefault
(
$viewer
))
{
$pinned
[]
=
get_class
(
$application
);
}
}
return
$pinned
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 9:21 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
101478
Default Alt Text
PhabricatorPinnedApplicationsSetting.php (712 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment