Differential D21838 Diff 52051 src/applications/packages/query/PhabricatorPackagesPublisherQuery.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/packages/query/PhabricatorPackagesPublisherQuery.php
Show All 26 Lines | return $this->withNgramsConstraint( | ||||
new PhabricatorPackagesPublisherNameNgrams(), | new PhabricatorPackagesPublisherNameNgrams(), | ||||
$ngrams); | $ngrams); | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new PhabricatorPackagesPublisher(); | return new PhabricatorPackagesPublisher(); | ||||
} | } | ||||
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, | ||||
'u.id IN (%Ld)', | 'u.id IN (%Ld)', | ||||
$this->ids); | $this->ids); | ||||
Show All 24 Lines |