Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95784454
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
Thu, Dec 19, 04:58
Size
599 B
Mime Type
text/x-php
Expires
Sat, Dec 21, 04:58 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
23057369
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.'
);
}
protected
function
defineParamTypes
()
{
return
array
();
}
protected
function
defineReturnType
()
{
return
'list<dict>'
;
}
protected
function
execute
(
ConduitAPIRequest
$request
)
{
$query
=
id
(
new
PhabricatorTokenQuery
())
->
setViewer
(
$request
->
getUser
());
$tokens
=
$query
->
execute
();
return
$this
->
buildTokenDicts
(
$tokens
);
}
}
Event Timeline
Log In to Comment