Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F72140152
PhabricatorOAuthServerClientPHIDType.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
Sun, Jul 14, 22:45
Size
810 B
Mime Type
text/x-php
Expires
Tue, Jul 16, 22:45 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
19038316
Attached To
rPH Phabricator
PhabricatorOAuthServerClientPHIDType.php
View Options
<?php
final
class
PhabricatorOAuthServerClientPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'OASC'
;
public
function
getTypeName
()
{
return
pht
(
'OAuth Application'
);
}
public
function
newObject
()
{
return
new
PhabricatorOAuthServerClient
();
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorOAuthServerApplication'
;
}
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