Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F471622
ConduitAPI_token_Method.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ConduitAPI_token_Method.php
View Options
<?php
abstract
class
ConduitAPI_token_Method
extends
ConduitAPIMethod
{
public
function
getApplication
()
{
return
PhabricatorApplication
::
getByClass
(
'PhabricatorTokensApplication'
);
}
public
function
getMethodStatus
()
{
return
self
::
METHOD_STATUS_UNSTABLE
;
}
public
function
buildTokenDicts
(
array
$tokens
)
{
assert_instances_of
(
$tokens
,
'PhabricatorToken'
);
$list
=
array
();
foreach
(
$tokens
as
$token
)
{
$list
[]
=
array
(
'id'
=>
$token
->
getID
(),
'name'
=>
$token
->
getName
(),
'phid'
=>
$token
->
getPHID
(),
);
}
return
$list
;
}
public
function
buildTokenGivenDicts
(
array
$tokens_given
)
{
assert_instances_of
(
$tokens_given
,
'PhabricatorTokenGiven'
);
$list
=
array
();
foreach
(
$tokens_given
as
$given
)
{
$list
[]
=
array
(
'authorPHID'
=>
$given
->
getAuthorPHID
(),
'objectPHID'
=>
$given
->
getObjectPHID
(),
'tokenPHID'
=>
$given
->
getTokenPHID
(),
'dateCreated'
=>
$given
->
getDateCreated
(),
);
}
return
$list
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 6, 3:07 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
83781
Default Alt Text
ConduitAPI_token_Method.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment