Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/query/HarbormasterBuildPlanQuery.php
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | public function needBuildSteps($need) { | ||||
$this->needBuildSteps = $need; | $this->needBuildSteps = $need; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new HarbormasterBuildPlan(); | return new HarbormasterBuildPlan(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function didFilterPage(array $page) { | protected function didFilterPage(array $page) { | ||||
if ($this->needBuildSteps) { | if ($this->needBuildSteps) { | ||||
$plan_phids = mpull($page, 'getPHID'); | $plan_phids = mpull($page, 'getPHID'); | ||||
$steps = id(new HarbormasterBuildStepQuery()) | $steps = id(new HarbormasterBuildStepQuery()) | ||||
->setParentQuery($this) | ->setParentQuery($this) | ||||
->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
->withBuildPlanPHIDs($plan_phids) | ->withBuildPlanPHIDs($plan_phids) | ||||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |