Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4852549
ManiphestCreateTaskConduitAPIMethod.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
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.'
)
;
}
public
function
getMethodStatus
(
)
{
return
self
::
METHOD_STATUS_FROZEN
;
}
public
function
getMethodStatusDescription
(
)
{
return
pht
(
'This method is frozen and will eventually be deprecated. New code '
.
'should use "maniphest.edit" instead.'
)
;
}
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
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 9, 06:39 (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1765377
Default Alt Text
ManiphestCreateTaskConduitAPIMethod.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment