Differential D21838 Diff 52051 src/applications/repository/query/PhabricatorRepositoryIdentityQuery.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/query/PhabricatorRepositoryIdentityQuery.php
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | final class PhabricatorRepositoryIdentityQuery | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new PhabricatorRepositoryIdentity(); | return new PhabricatorRepositoryIdentity(); | ||||
} | } | ||||
protected function getPrimaryTableAlias() { | protected function getPrimaryTableAlias() { | ||||
return 'identity'; | return 'identity'; | ||||
} | } | ||||
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, | ||||
'identity.id IN (%Ld)', | 'identity.id IN (%Ld)', | ||||
$this->ids); | $this->ids); | ||||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |