Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122154626
PhabricatorUserPreferencesPHIDType.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
Wed, Jul 16, 05:22
Size
854 B
Mime Type
text/x-php
Expires
Fri, Jul 18, 05:22 (2 d)
Engine
blob
Format
Raw Data
Handle
27441834
Attached To
rPH Phabricator
PhabricatorUserPreferencesPHIDType.php
View Options
<?php
final
class
PhabricatorUserPreferencesPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'PSET'
;
public
function
getTypeName
()
{
return
pht
(
'Settings'
);
}
public
function
newObject
()
{
return
new
PhabricatorUserPreferences
();
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorSettingsApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhabricatorUserPreferencesQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
$viewer
=
$query
->
getViewer
();
foreach
(
$handles
as
$phid
=>
$handle
)
{
$preferences
=
$objects
[
$phid
];
$handle
->
setName
(
pht
(
'Settings %d'
,
$preferences
->
getID
()));
}
}
}
Event Timeline
Log In to Comment