Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F568345
ManiphestQueryStatusesConduitAPIMethod.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
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
;
}
public
function
getMethodStatus
()
{
return
self
::
METHOD_STATUS_FROZEN
;
}
public
function
getMethodStatusDescription
()
{
return
pht
(
'This method is frozen and will eventually be deprecated. New code '
.
'should use "maniphest.status.search" instead.'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 13, 1:23 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
104591
Default Alt Text
ManiphestQueryStatusesConduitAPIMethod.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment