3 final class ManiphestPrioritySearchConduitAPIMethod
4 extends ManiphestConduitAPIMethod
{
6 public function getAPIMethodName() {
7 return 'maniphest.priority.search';
10 public function getMethodSummary() {
11 return pht('Read information about task priorities.');
14 public function getMethodDescription() {
16 'Returns information about the possible priorities for Maniphest '.
20 protected function defineParamTypes() {
24 protected function defineReturnType() {
25 return 'map<string, wild>';
28 public function getRequiredScope() {
29 return self
::SCOPE_ALWAYS
;
32 protected function execute(ConduitAPIRequest
$request) {
33 $config = ManiphestTaskPriority
::getConfig();
36 foreach ($config as $code => $priority) {
37 $priority['value'] = $code;
38 $results[] = $priority;
41 return array('data' => $results);