Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/query/AlmanacInterfaceQuery.php
Show All 32 Lines | public function withAddresses(array $addresses) { | ||||
$this->addresses = $addresses; | $this->addresses = $addresses; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new AlmanacInterface(); | return new AlmanacInterface(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function willFilterPage(array $interfaces) { | protected function willFilterPage(array $interfaces) { | ||||
$network_phids = mpull($interfaces, 'getNetworkPHID'); | $network_phids = mpull($interfaces, 'getNetworkPHID'); | ||||
$device_phids = mpull($interfaces, 'getDevicePHID'); | $device_phids = mpull($interfaces, 'getDevicePHID'); | ||||
$networks = id(new AlmanacNetworkQuery()) | $networks = id(new AlmanacNetworkQuery()) | ||||
->setParentQuery($this) | ->setParentQuery($this) | ||||
->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
->withPHIDs($network_phids) | ->withPHIDs($network_phids) | ||||
▲ Show 20 Lines • Show All 159 Lines • Show Last 20 Lines |