Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/query/AlmanacDeviceQuery.php
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | public function withIsClusterDevice($is_cluster_device) { | ||||
$this->isClusterDevice = $is_cluster_device; | $this->isClusterDevice = $is_cluster_device; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new AlmanacDevice(); | return new AlmanacDevice(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { | protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { | ||||
$where = parent::buildWhereClauseParts($conn); | $where = parent::buildWhereClauseParts($conn); | ||||
if ($this->ids !== null) { | if ($this->ids !== null) { | ||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
$conn, | $conn, | ||||
'device.id IN (%Ld)', | 'device.id IN (%Ld)', | ||||
$this->ids); | $this->ids); | ||||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |