Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F477050
TokenQueryConduitAPIMethod.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
654 B
Referenced Files
None
Subscribers
None
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
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, May 7, 6:34 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
87142
Default Alt Text
TokenQueryConduitAPIMethod.php (654 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment