Changeset View
Changeset View
Standalone View
Standalone View
src/applications/packages/query/PhabricatorPackagesPackageQuery.php
Show All 38 Lines | return $this->withNgramsConstraint( | ||||
new PhabricatorPackagesPackageNameNgrams(), | new PhabricatorPackagesPackageNameNgrams(), | ||||
$ngrams); | $ngrams); | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new PhabricatorPackagesPackage(); | return new PhabricatorPackagesPackage(); | ||||
} | } | ||||
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, | ||||
'p.id IN (%Ld)', | 'p.id IN (%Ld)', | ||||
$this->ids); | $this->ids); | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |