Differential D21838 Diff 52051 src/applications/harbormaster/query/HarbormasterBuildMessageQuery.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/query/HarbormasterBuildMessageQuery.php
Show All 20 Lines | public function withConsumed($consumed) { | ||||
$this->consumed = $consumed; | $this->consumed = $consumed; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new HarbormasterBuildMessage(); | return new HarbormasterBuildMessage(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function willFilterPage(array $page) { | protected function willFilterPage(array $page) { | ||||
$receiver_phids = array_filter(mpull($page, 'getReceiverPHID')); | $receiver_phids = array_filter(mpull($page, 'getReceiverPHID')); | ||||
if ($receiver_phids) { | if ($receiver_phids) { | ||||
$receivers = id(new PhabricatorObjectQuery()) | $receivers = id(new PhabricatorObjectQuery()) | ||||
->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
->withPHIDs($receiver_phids) | ->withPHIDs($receiver_phids) | ||||
->setParentQuery($this) | ->setParentQuery($this) | ||||
->execute(); | ->execute(); | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |