Differential D10585 Diff 25583 src/applications/differential/conduit/DifferentialCreateInlineConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/conduit/DifferentialCreateInlineConduitAPIMethod.php
Show All 27 Lines | final class DifferentialCreateInlineConduitAPIMethod | ||||
} | } | ||||
public function defineErrorTypes() { | public function defineErrorTypes() { | ||||
return array( | return array( | ||||
'ERR-BAD-REVISION' => 'Bad revision ID.', | 'ERR-BAD-REVISION' => 'Bad revision ID.', | ||||
'ERR-BAD-DIFF' => 'Bad diff ID, or diff does not belong to revision.', | 'ERR-BAD-DIFF' => 'Bad diff ID, or diff does not belong to revision.', | ||||
'ERR-NEED-DIFF' => 'Neither revision ID nor diff ID was provided.', | 'ERR-NEED-DIFF' => 'Neither revision ID nor diff ID was provided.', | ||||
'ERR-NEED-FILE' => 'A file path was not provided.', | 'ERR-NEED-FILE' => 'A file path was not provided.', | ||||
'ERR-BAD-FILE' => "Requested file doesn't exist in this revision." | 'ERR-BAD-FILE' => "Requested file doesn't exist in this revision.", | ||||
); | ); | ||||
} | } | ||||
protected function execute(ConduitAPIRequest $request) { | protected function execute(ConduitAPIRequest $request) { | ||||
$rid = $request->getValue('revisionID'); | $rid = $request->getValue('revisionID'); | ||||
$did = $request->getValue('diffID'); | $did = $request->getValue('diffID'); | ||||
if ($rid) { | if ($rid) { | ||||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |