Differential D12380 Diff 29771 src/applications/differential/conduit/DifferentialGetRawDiffConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/conduit/DifferentialGetRawDiffConduitAPIMethod.php
<?php | <?php | ||||
final class DifferentialGetRawDiffConduitAPIMethod | final class DifferentialGetRawDiffConduitAPIMethod | ||||
extends DifferentialConduitAPIMethod { | extends DifferentialConduitAPIMethod { | ||||
public function getAPIMethodName() { | public function getAPIMethodName() { | ||||
return 'differential.getrawdiff'; | return 'differential.getrawdiff'; | ||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return pht('Retrieve a raw diff'); | return pht('Retrieve a raw diff'); | ||||
} | } | ||||
public function defineParamTypes() { | protected function defineParamTypes() { | ||||
return array( | return array( | ||||
'diffID' => 'required diffID', | 'diffID' => 'required diffID', | ||||
); | ); | ||||
} | } | ||||
public function defineReturnType() { | protected function defineReturnType() { | ||||
return 'nonempty string'; | return 'nonempty string'; | ||||
} | } | ||||
public function defineErrorTypes() { | protected function defineErrorTypes() { | ||||
return array( | return array( | ||||
'ERR_NOT_FOUND' => pht('Diff not found.'), | 'ERR_NOT_FOUND' => pht('Diff not found.'), | ||||
); | ); | ||||
} | } | ||||
protected function execute(ConduitAPIRequest $request) { | protected function execute(ConduitAPIRequest $request) { | ||||
$diff_id = $request->getValue('diffID'); | $diff_id = $request->getValue('diffID'); | ||||
Show All 21 Lines |