Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F112523683
TokenQueryConduitAPIMethod.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, May 11, 04:47
Size
654 B
Mime Type
text/x-php
Expires
Tue, May 13, 04:47 (2 d)
Engine
blob
Format
Raw Data
Handle
26091394
Attached To
rPH Phabricator
TokenQueryConduitAPIMethod.php
View Options
<?php
final
class
TokenQueryConduitAPIMethod
extends
TokenConduitAPIMethod
{
public
function
getAPIMethodName
()
{
return
'token.query'
;
}
public
function
getMethodDescription
()
{
return
pht
(
'Query tokens.'
);
}
public
function
defineParamTypes
()
{
return
array
();
}
public
function
defineReturnType
()
{
return
'list<dict>'
;
}
public
function
defineErrorTypes
()
{
return
array
();
}
public
function
execute
(
ConduitAPIRequest
$request
)
{
$query
=
id
(
new
PhabricatorTokenQuery
())
->
setViewer
(
$request
->
getUser
());
$tokens
=
$query
->
execute
();
return
$this
->
buildTokenDicts
(
$tokens
);
}
}
Event Timeline
Log In to Comment