[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class ManiphestCreateTaskConduitAPIMethod 4 extends ManiphestConduitAPIMethod { 5 6 public function getAPIMethodName() { 7 return 'maniphest.createtask'; 8 } 9 10 public function getMethodDescription() { 11 return 'Create a new Maniphest task.'; 12 } 13 14 public function defineParamTypes() { 15 return $this->getTaskFields($is_new = true); 16 } 17 18 public function defineReturnType() { 19 return 'nonempty dict'; 20 } 21 22 public function defineErrorTypes() { 23 return array( 24 'ERR-INVALID-PARAMETER' => 'Missing or malformed parameter.', 25 ); 26 } 27 28 protected function execute(ConduitAPIRequest $request) { 29 $task = ManiphestTask::initializeNewTask($request->getUser()); 30 31 $this->applyRequest($task, $request, $is_new = true); 32 33 return $this->buildTaskInfoDictionary($task); 34 } 35 36 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |