Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82899329
PhabricatorPeopleExternalPHIDType.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, Sep 14, 02:30
Size
843 B
Mime Type
text/x-php
Expires
Mon, Sep 16, 02:30 (2 d)
Engine
blob
Format
Raw Data
Handle
20771492
Attached To
rPH Phabricator
PhabricatorPeopleExternalPHIDType.php
View Options
<?php
final
class
PhabricatorPeopleExternalPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'XUSR'
;
public
function
getTypeName
()
{
return
pht
(
'External Account'
);
}
public
function
newObject
()
{
return
new
PhabricatorExternalAccount
();
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorPeopleApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhabricatorExternalAccountQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$account
=
$objects
[
$phid
];
$display_name
=
$account
->
getDisplayName
();
$handle
->
setName
(
$display_name
);
}
}
}
Event Timeline
Log In to Comment