Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/query/DifferentialRevisionQuery.php
Show First 20 Lines • Show All 689 Lines • ▼ Show 20 Lines | if ($this->updatedEpochMax !== null) { | ||||
'r.dateModified <= %d', | 'r.dateModified <= %d', | ||||
$this->updatedEpochMax); | $this->updatedEpochMax); | ||||
} | } | ||||
if ($this->statuses !== null) { | if ($this->statuses !== null) { | ||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
$conn_r, | $conn_r, | ||||
'r.status in (%Ls)', | 'r.status in (%Ls)', | ||||
DifferentialLegacyQuery::getLegacyValues($this->statuses)); | $this->statuses); | ||||
} | } | ||||
if ($this->isOpen !== null) { | if ($this->isOpen !== null) { | ||||
if ($this->isOpen) { | if ($this->isOpen) { | ||||
$statuses = DifferentialLegacyQuery::getModernValues( | $statuses = DifferentialLegacyQuery::getModernValues( | ||||
DifferentialLegacyQuery::STATUS_OPEN); | DifferentialLegacyQuery::STATUS_OPEN); | ||||
} else { | } else { | ||||
$statuses = DifferentialLegacyQuery::getModernValues( | $statuses = DifferentialLegacyQuery::getModernValues( | ||||
DifferentialLegacyQuery::STATUS_CLOSED); | DifferentialLegacyQuery::STATUS_CLOSED); | ||||
} | } | ||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
$conn_r, | $conn_r, | ||||
'r.status in (%Ls)', | 'r.status in (%Ls)', | ||||
DifferentialLegacyQuery::getLegacyValues($statuses)); | $statuses); | ||||
} | } | ||||
$where[] = $this->buildWhereClauseParts($conn_r); | $where[] = $this->buildWhereClauseParts($conn_r); | ||||
return $this->formatWhereClause($where); | return $this->formatWhereClause($where); | ||||
} | } | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 284 Lines • Show Last 20 Lines |