Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81506960
PhabricatorAuthAuthProviderPHIDType.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
Fri, Sep 6, 10:49
Size
716 B
Mime Type
text/x-php
Expires
Sun, Sep 8, 10:49 (2 d)
Engine
blob
Format
Raw Data
Handle
20587598
Attached To
rPH Phabricator
PhabricatorAuthAuthProviderPHIDType.php
View Options
<?php
final
class
PhabricatorAuthAuthProviderPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'AUTH'
;
public
function
getTypeName
()
{
return
pht
(
'Auth Provider'
);
}
public
function
newObject
()
{
return
new
PhabricatorAuthProviderConfig
();
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhabricatorAuthProviderConfigQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$provider
=
$objects
[
$phid
];
$handle
->
setName
(
$provider
->
getProviderName
());
}
}
}
Event Timeline
Log In to Comment