Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1096761
TokenQueryConduitAPIMethod.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
657 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
();
}
protected
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
Mon, Jun 30, 11:17 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
273303
Default Alt Text
TokenQueryConduitAPIMethod.php (657 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment