Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/query/AlmanacBindingQuery.php
Show All 38 Lines | public function withIsActive($active) { | ||||
$this->isActive = $active; | $this->isActive = $active; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new AlmanacBinding(); | return new AlmanacBinding(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function willFilterPage(array $bindings) { | protected function willFilterPage(array $bindings) { | ||||
$service_phids = mpull($bindings, 'getServicePHID'); | $service_phids = mpull($bindings, 'getServicePHID'); | ||||
$device_phids = mpull($bindings, 'getDevicePHID'); | $device_phids = mpull($bindings, 'getDevicePHID'); | ||||
$interface_phids = mpull($bindings, 'getInterfacePHID'); | $interface_phids = mpull($bindings, 'getInterfacePHID'); | ||||
$services = id(new AlmanacServiceQuery()) | $services = id(new AlmanacServiceQuery()) | ||||
->setParentQuery($this) | ->setParentQuery($this) | ||||
->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines |