Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95807332
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, 11:17
Size
599 B
Mime Type
text/x-php
Expires
Sat, Dec 21, 11:17 (1 d, 21 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