Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F123538924
ConduitAPI_token_query_Method.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
Mon, Jul 28, 03:44
Size
589 B
Mime Type
text/x-php
Expires
Wed, Jul 30, 03:44 (2 d)
Engine
blob
Format
Raw Data
Handle
27679373
Attached To
rPH Phabricator
ConduitAPI_token_query_Method.php
View Options
<?php
final
class
ConduitAPI_token_query_Method
extends
ConduitAPI_token_Method
{
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