Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78380565
PhabricatorOAuthServerPHIDTypeClient.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
Tue, Aug 20, 11:31
Size
780 B
Mime Type
text/x-php
Expires
Thu, Aug 22, 11:31 (2 d)
Engine
blob
Format
Raw Data
Handle
20036332
Attached To
rPH Phabricator
PhabricatorOAuthServerPHIDTypeClient.php
View Options
<?php
final
class
PhabricatorOAuthServerPHIDTypeClient
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'OASC'
;
public
function
getTypeConstant
()
{
return
self
::
TYPECONST
;
}
public
function
getTypeName
()
{
return
pht
(
'OAuth Application'
);
}
public
function
newObject
()
{
return
new
PhabricatorOAuthServerClient
();
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhabricatorOAuthServerClientQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$client
=
$objects
[
$phid
];
$handle
->
setName
(
$client
->
getName
());
}
}
}
Event Timeline
Log In to Comment