Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/query/DifferentialDiffQuery.php
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | public function needProperties($need_properties) { | ||||
$this->needProperties = $need_properties; | $this->needProperties = $need_properties; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new DifferentialDiff(); | return new DifferentialDiff(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function willFilterPage(array $diffs) { | protected function willFilterPage(array $diffs) { | ||||
$revision_ids = array_filter(mpull($diffs, 'getRevisionID')); | $revision_ids = array_filter(mpull($diffs, 'getRevisionID')); | ||||
$revisions = array(); | $revisions = array(); | ||||
if ($revision_ids) { | if ($revision_ids) { | ||||
$revisions = id(new DifferentialRevisionQuery()) | $revisions = id(new DifferentialRevisionQuery()) | ||||
->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
->withIDs($revision_ids) | ->withIDs($revision_ids) | ||||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |