Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/query/HarbormasterBuildLogQuery.php
Show All 21 Lines | public function withBuildTargetPHIDs(array $build_target_phids) { | ||||
$this->buildTargetPHIDs = $build_target_phids; | $this->buildTargetPHIDs = $build_target_phids; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new HarbormasterBuildLog(); | return new HarbormasterBuildLog(); | ||||
} | } | ||||
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 49 Lines • Show Last 20 Lines |