Changeset View
Changeset View
Standalone View
Standalone View
src/applications/nuance/query/NuanceItemQuery.php
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | public function withItemContainerKeys(array $container_keys) { | ||||
$this->containerKeys = $container_keys; | $this->containerKeys = $container_keys; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new NuanceItem(); | return new NuanceItem(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function willFilterPage(array $items) { | protected function willFilterPage(array $items) { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$source_phids = mpull($items, 'getSourcePHID'); | $source_phids = mpull($items, 'getSourcePHID'); | ||||
$sources = id(new NuanceSourceQuery()) | $sources = id(new NuanceSourceQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withPHIDs($source_phids) | ->withPHIDs($source_phids) | ||||
->execute(); | ->execute(); | ||||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |