Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/query/DrydockLogQuery.php
Show All 31 Lines | public function withOperationPHIDs(array $phids) { | ||||
$this->operationPHIDs = $phids; | $this->operationPHIDs = $phids; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new DrydockLog(); | return new DrydockLog(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function didFilterPage(array $logs) { | protected function didFilterPage(array $logs) { | ||||
$blueprint_phids = array_filter(mpull($logs, 'getBlueprintPHID')); | $blueprint_phids = array_filter(mpull($logs, 'getBlueprintPHID')); | ||||
if ($blueprint_phids) { | if ($blueprint_phids) { | ||||
$blueprints = id(new DrydockBlueprintQuery()) | $blueprints = id(new DrydockBlueprintQuery()) | ||||
->setParentQuery($this) | ->setParentQuery($this) | ||||
->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
->withPHIDs($blueprint_phids) | ->withPHIDs($blueprint_phids) | ||||
->execute(); | ->execute(); | ||||
▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines |