Differential D9991 Diff 24151 src/applications/differential/conduit/DifferentialGetAllDiffsConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/conduit/DifferentialGetAllDiffsConduitAPIMethod.php
- This file was moved from src/applications/differential/conduit/ConduitAPI_differential_getalldiffs_Method.php.
| <?php | <?php | ||||
| final class ConduitAPI_differential_getalldiffs_Method | final class DifferentialGetAllDiffsConduitAPIMethod | ||||
| extends ConduitAPI_differential_Method { | extends DifferentialConduitAPIMethod { | ||||
| public function getAPIMethodName() { | |||||
| return 'differential.getalldiffs'; | |||||
| } | |||||
| public function getMethodStatus() { | public function getMethodStatus() { | ||||
| return self::METHOD_STATUS_DEPRECATED; | return self::METHOD_STATUS_DEPRECATED; | ||||
| } | } | ||||
| public function getMethodStatusDescription() { | public function getMethodStatusDescription() { | ||||
| return pht( | return pht( | ||||
| 'This method has been deprecated in favor of differential.querydiffs.'); | 'This method has been deprecated in favor of differential.querydiffs.'); | ||||
| Show All 34 Lines | foreach ($diffs as $diff) { | ||||
| $results[] = array( | $results[] = array( | ||||
| 'revision_id' => $diff->getRevisionID(), | 'revision_id' => $diff->getRevisionID(), | ||||
| 'diff_id' => $diff->getID(), | 'diff_id' => $diff->getID(), | ||||
| ); | ); | ||||
| } | } | ||||
| return $results; | return $results; | ||||
| } | } | ||||
| } | } | ||||