Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/query/AlmanacPropertyQuery.php
Show All 27 Lines | public function withNames(array $names) { | ||||
$this->names = $names; | $this->names = $names; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new AlmanacProperty(); | return new AlmanacProperty(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function willFilterPage(array $properties) { | protected function willFilterPage(array $properties) { | ||||
$object_phids = mpull($properties, 'getObjectPHID'); | $object_phids = mpull($properties, 'getObjectPHID'); | ||||
$object_phids = array_fuse($object_phids); | $object_phids = array_fuse($object_phids); | ||||
if ($this->objects !== null) { | if ($this->objects !== null) { | ||||
$object_phids = array_diff_key($object_phids, $this->objects); | $object_phids = array_diff_key($object_phids, $this->objects); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |