Differential D17158 Diff 41267 src/applications/differential/conduit/DifferentialUpdateRevisionConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/conduit/DifferentialUpdateRevisionConduitAPIMethod.php
<?php | <?php | ||||
final class DifferentialUpdateRevisionConduitAPIMethod | final class DifferentialUpdateRevisionConduitAPIMethod | ||||
extends DifferentialConduitAPIMethod { | extends DifferentialConduitAPIMethod { | ||||
public function getAPIMethodName() { | public function getAPIMethodName() { | ||||
return 'differential.updaterevision'; | return 'differential.updaterevision'; | ||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return pht('Update a Differential revision.'); | return pht('Update a Differential revision.'); | ||||
} | } | ||||
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 "differential.revision.edit" instead.'); | |||||
} | |||||
protected function defineParamTypes() { | protected function defineParamTypes() { | ||||
return array( | return array( | ||||
'id' => 'required revisionid', | 'id' => 'required revisionid', | ||||
'diffid' => 'required diffid', | 'diffid' => 'required diffid', | ||||
'fields' => 'required dict', | 'fields' => 'required dict', | ||||
'message' => 'required string', | 'message' => 'required string', | ||||
); | ); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |