Differential D9991 Diff 24151 src/applications/differential/conduit/DifferentialQueryDiffsConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/conduit/DifferentialQueryDiffsConduitAPIMethod.php
- This file was moved from src/applications/differential/conduit/ConduitAPI_differential_querydiffs_Method.php.
| <?php | <?php | ||||
| final class ConduitAPI_differential_querydiffs_Method | final class DifferentialQueryDiffsConduitAPIMethod | ||||
| extends ConduitAPI_differential_Method { | extends DifferentialConduitAPIMethod { | ||||
| public function getAPIMethodName() { | |||||
| return 'differential.querydiffs'; | |||||
| } | |||||
| public function getMethodDescription() { | public function getMethodDescription() { | ||||
| return pht('Query differential diffs which match certain criteria.'); | return pht('Query differential diffs which match certain criteria.'); | ||||
| } | } | ||||
| public function defineParamTypes() { | public function defineParamTypes() { | ||||
| return array( | return array( | ||||
| 'ids' => 'optional list<uint>', | 'ids' => 'optional list<uint>', | ||||
| Show All 21 Lines | if ($ids || $revision_ids) { | ||||
| ->withRevisionIDs($revision_ids) | ->withRevisionIDs($revision_ids) | ||||
| ->needChangesets(true) | ->needChangesets(true) | ||||
| ->needArcanistProjects(true) | ->needArcanistProjects(true) | ||||
| ->execute(); | ->execute(); | ||||
| } | } | ||||
| return mpull($diffs, 'getDiffDict', 'getID'); | return mpull($diffs, 'getDiffDict', 'getID'); | ||||
| } | } | ||||
| } | } | ||||