Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/query/HarbormasterBuildableQuery.php
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | public function needTargets($need) { | ||||
$this->needTargets = $need; | $this->needTargets = $need; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new HarbormasterBuildable(); | return new HarbormasterBuildable(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function willFilterPage(array $page) { | protected function willFilterPage(array $page) { | ||||
$buildables = array(); | $buildables = array(); | ||||
$buildable_phids = array_filter(mpull($page, 'getBuildablePHID')); | $buildable_phids = array_filter(mpull($page, 'getBuildablePHID')); | ||||
if ($buildable_phids) { | if ($buildable_phids) { | ||||
$buildables = id(new PhabricatorObjectQuery()) | $buildables = id(new PhabricatorObjectQuery()) | ||||
->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
->withPHIDs($buildable_phids) | ->withPHIDs($buildable_phids) | ||||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |