Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/query/DrydockAuthorizationQuery.php
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | public function withObjectStates(array $states) { | ||||
$this->objectStates = $states; | $this->objectStates = $states; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new DrydockAuthorization(); | return new DrydockAuthorization(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function willFilterPage(array $authorizations) { | protected function willFilterPage(array $authorizations) { | ||||
$blueprint_phids = mpull($authorizations, 'getBlueprintPHID'); | $blueprint_phids = mpull($authorizations, 'getBlueprintPHID'); | ||||
if ($blueprint_phids) { | if ($blueprint_phids) { | ||||
$blueprints = id(new DrydockBlueprintQuery()) | $blueprints = id(new DrydockBlueprintQuery()) | ||||
->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
->setParentQuery($this) | ->setParentQuery($this) | ||||
->withPHIDs($blueprint_phids) | ->withPHIDs($blueprint_phids) | ||||
->execute(); | ->execute(); | ||||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |