Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92762583
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, Nov 23, 12:38
Size
836 B
Mime Type
text/x-php
Expires
Mon, Nov 25, 12:38 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22508127
Attached To
rPH Phabricator
ManiphestCreateTaskConduitAPIMethod.php
View Options
<?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
);
}
}
Event Timeline
Log In to Comment