Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98239659
ManiphestCreateTaskConduitAPIMethod.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jan 11, 09:05
Size
809 B
Mime Type
text/x-php
Expires
Mon, Jan 13, 09:05 (2 d)
Engine
blob
Format
Raw Data
Handle
23538269
Attached To
rPH Phabricator
ManiphestCreateTaskConduitAPIMethod.php
View Options
<?php
final
class
ManiphestCreateTaskConduitAPIMethod
extends
ManiphestConduitAPIMethod
{
public
function
getAPIMethodName
()
{
return
'maniphest.createtask'
;
}
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
);
}
}
Event Timeline
Log In to Comment