Differential D21838 Diff 52051 src/applications/harbormaster/query/HarbormasterBuildArtifactQuery.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/query/HarbormasterBuildArtifactQuery.php
Show All 34 Lines | public function withIsReleased($released) { | ||||
$this->isReleased = $released; | $this->isReleased = $released; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new HarbormasterBuildArtifact(); | return new HarbormasterBuildArtifact(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function willFilterPage(array $page) { | protected function willFilterPage(array $page) { | ||||
$build_targets = array(); | $build_targets = array(); | ||||
$build_target_phids = array_filter(mpull($page, 'getBuildTargetPHID')); | $build_target_phids = array_filter(mpull($page, 'getBuildTargetPHID')); | ||||
if ($build_target_phids) { | if ($build_target_phids) { | ||||
$build_targets = id(new HarbormasterBuildTargetQuery()) | $build_targets = id(new HarbormasterBuildTargetQuery()) | ||||
->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
->withPHIDs($build_target_phids) | ->withPHIDs($build_target_phids) | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |