Page MenuHomePhorge

ManiphestCreateTaskConduitAPIMethod.php
No OneTemporary

Size
836 B
Referenced Files
None
Subscribers
None

ManiphestCreateTaskConduitAPIMethod.php

<?php
final class ManiphestCreateTaskConduitAPIMethod
extends ManiphestConduitAPIMethod {
public function getAPIMethodName() {
return 'maniphest.createtask';
}
public function getMethodDescription() {
return pht('Create a new Maniphest task.');
}
protected function defineParamTypes() {
return $this->getTaskFields($is_new = true);
}
protected function defineReturnType() {
return 'nonempty dict';
}
protected function defineErrorTypes() {
return array(
'ERR-INVALID-PARAMETER' => pht('Missing or malformed parameter.'),
);
}
protected function execute(ConduitAPIRequest $request) {
$task = ManiphestTask::initializeNewTask($request->getUser());
$task = $this->applyRequest($task, $request, $is_new = true);
return $this->buildTaskInfoDictionary($task);
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Jun 17, 10:04 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
224098
Default Alt Text
ManiphestCreateTaskConduitAPIMethod.php (836 B)

Event Timeline