Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99231575
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
Wed, Jan 22, 14:50
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Jan 24, 14:50 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23738439
Attached To
rPH Phabricator
ManiphestQueryStatusesConduitAPIMethod.php
View Options
<?php
final
class
ManiphestQueryStatusesConduitAPIMethod
extends
ManiphestConduitAPIMethod
{
public
function
getAPIMethodName
()
{
return
'maniphest.querystatuses'
;
}
public
function
getMethodDescription
()
{
return
'Retrieve information about possible Maniphest Task status values.'
;
}
public
function
defineParamTypes
()
{
return
array
();
}
public
function
defineReturnType
()
{
return
'nonempty dict<string, wild>'
;
}
public
function
defineErrorTypes
()
{
return
array
();
}
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