Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/conduit/ManiphestInfoConduitAPIMethod.php
<?php | <?php | ||||
final class ManiphestInfoConduitAPIMethod extends ManiphestConduitAPIMethod { | final class ManiphestInfoConduitAPIMethod extends ManiphestConduitAPIMethod { | ||||
public function getAPIMethodName() { | public function getAPIMethodName() { | ||||
return 'maniphest.info'; | return 'maniphest.info'; | ||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return 'Retrieve information about a Maniphest task, given its id.'; | return 'Retrieve information about a Maniphest task, given its id.'; | ||||
} | } | ||||
public function defineParamTypes() { | protected function defineParamTypes() { | ||||
return array( | return array( | ||||
'task_id' => 'required id', | 'task_id' => 'required id', | ||||
); | ); | ||||
} | } | ||||
public function defineReturnType() { | protected function defineReturnType() { | ||||
return 'nonempty dict'; | return 'nonempty dict'; | ||||
} | } | ||||
public function defineErrorTypes() { | protected function defineErrorTypes() { | ||||
return array( | return array( | ||||
'ERR_BAD_TASK' => 'No such maniphest task exists', | 'ERR_BAD_TASK' => 'No such maniphest task exists', | ||||
); | ); | ||||
} | } | ||||
protected function execute(ConduitAPIRequest $request) { | protected function execute(ConduitAPIRequest $request) { | ||||
$task_id = $request->getValue('task_id'); | $task_id = $request->getValue('task_id'); | ||||
Show All 14 Lines |