Page MenuHomestyx hydra

ConduitAPI_maniphest_createtask_Method.php
No OneTemporary

ConduitAPI_maniphest_createtask_Method.php

<?php
/**
* @group conduit
*/
final class ConduitAPI_maniphest_createtask_Method
extends ConduitAPI_maniphest_Method {
public function getMethodDescription() {
return "Create a new Maniphest task.";
}
public function defineParamTypes() {
return $this->getTaskFields($is_new = true);
}
public function defineReturnType() {
return 'nonempty dict';
}
public function defineErrorTypes() {
return array(
'ERR-INVALID-PARAMETER' => 'Missing or malformed parameter.'
);
}
protected function execute(ConduitAPIRequest $request) {
$task = ManiphestTask::initializeNewTask($request->getUser());
$this->applyRequest($task, $request, $is_new = true);
return $this->buildTaskInfoDictionary($task);
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Feb 24, 11:06 PM (18 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
842182
Default Alt Text
ConduitAPI_maniphest_createtask_Method.php (760 B)

Event Timeline