Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103285992
ManiphestQueryStatusesConduitAPIMethod.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
Fri, Feb 28, 21:03
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Mar 2, 21:03 (2 d)
Engine
blob
Format
Raw Data
Handle
24535457
Attached To
rPH Phabricator
ManiphestQueryStatusesConduitAPIMethod.php
View Options
<?php
final
class
ManiphestQueryStatusesConduitAPIMethod
extends
ManiphestConduitAPIMethod
{
public
function
getAPIMethodName
()
{
return
'maniphest.querystatuses'
;
}
public
function
getMethodDescription
()
{
return
pht
(
'Retrieve information about possible Maniphest task status values.'
);
}
protected
function
defineParamTypes
()
{
return
array
();
}
protected
function
defineReturnType
()
{
return
'nonempty dict<string, wild>'
;
}
protected
function
execute
(
ConduitAPIRequest
$request
)
{
$results
=
array
(
'defaultStatus'
=>
ManiphestTaskStatus
::
getDefaultStatus
(),
'defaultClosedStatus'
=>
ManiphestTaskStatus
::
getDefaultClosedStatus
(),
'duplicateStatus'
=>
ManiphestTaskStatus
::
getDuplicateStatus
(),
'openStatuses'
=>
ManiphestTaskStatus
::
getOpenStatusConstants
(),
'closedStatuses'
=>
ManiphestTaskStatus
::
getClosedStatusConstants
(),
'allStatuses'
=>
array_keys
(
ManiphestTaskStatus
::
getTaskStatusMap
()),
'statusMap'
=>
ManiphestTaskStatus
::
getTaskStatusMap
(),
);
return
$results
;
}
}
Event Timeline
Log In to Comment