Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/query/PhameBlogQuery.php
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | final class PhameBlogQuery extends PhabricatorCursorPagedPolicyAwareQuery { | ||||
} | } | ||||
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { | protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { | ||||
$where = parent::buildWhereClauseParts($conn); | $where = parent::buildWhereClauseParts($conn); | ||||
if ($this->statuses !== null) { | if ($this->statuses !== null) { | ||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
$conn, | $conn, | ||||
'status IN (%Ls)', | 'b.status IN (%Ls)', | ||||
$this->statuses); | $this->statuses); | ||||
} | } | ||||
if ($this->ids !== null) { | if ($this->ids !== null) { | ||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
$conn, | $conn, | ||||
'id IN (%Ls)', | 'b.id IN (%Ls)', | ||||
$this->ids); | $this->ids); | ||||
} | } | ||||
if ($this->phids !== null) { | if ($this->phids !== null) { | ||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
$conn, | $conn, | ||||
'phid IN (%Ls)', | 'b.phid IN (%Ls)', | ||||
$this->phids); | $this->phids); | ||||
} | } | ||||
if ($this->domain !== null) { | if ($this->domain !== null) { | ||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
$conn, | $conn, | ||||
'domain = %s', | 'b.domain = %s', | ||||
$this->domain); | $this->domain); | ||||
} | } | ||||
return $where; | return $where; | ||||
} | } | ||||
protected function didFilterPage(array $blogs) { | protected function didFilterPage(array $blogs) { | ||||
if ($this->needProfileImage) { | if ($this->needProfileImage) { | ||||
▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | protected function didFilterPage(array $blogs) { | ||||
return $blogs; | return $blogs; | ||||
} | } | ||||
public function getQueryApplicationClass() { | public function getQueryApplicationClass() { | ||||
// TODO: Can we set this without breaking public blogs? | // TODO: Can we set this without breaking public blogs? | ||||
return null; | return null; | ||||
} | } | ||||
protected function getPrimaryTableAlias() { | |||||
return 'b'; | |||||
} | |||||
} | } |