Differential D17158 Diff 41267 src/applications/maniphest/conduit/ManiphestUpdateConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/conduit/ManiphestUpdateConduitAPIMethod.php
<?php | <?php | ||||
final class ManiphestUpdateConduitAPIMethod extends ManiphestConduitAPIMethod { | final class ManiphestUpdateConduitAPIMethod extends ManiphestConduitAPIMethod { | ||||
public function getAPIMethodName() { | public function getAPIMethodName() { | ||||
return 'maniphest.update'; | return 'maniphest.update'; | ||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return pht('Update an existing Maniphest task.'); | return pht('Update an existing 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 defineErrorTypes() { | protected function defineErrorTypes() { | ||||
return array( | return array( | ||||
'ERR-BAD-TASK' => pht('No such Maniphest task exists.'), | 'ERR-BAD-TASK' => pht('No such Maniphest task exists.'), | ||||
'ERR-INVALID-PARAMETER' => pht('Missing or malformed parameter.'), | 'ERR-INVALID-PARAMETER' => pht('Missing or malformed parameter.'), | ||||
'ERR-NO-EFFECT' => pht('Update has no effect.'), | 'ERR-NO-EFFECT' => pht('Update has no effect.'), | ||||
); | ); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |