Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/query/HarbormasterBuildPlanQuery.php
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { | ||||
if ($this->statuses !== null) { | if ($this->statuses !== null) { | ||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
$conn, | $conn, | ||||
'plan.planStatus IN (%Ls)', | 'plan.planStatus IN (%Ls)', | ||||
$this->statuses); | $this->statuses); | ||||
} | } | ||||
if (strlen($this->datasourceQuery)) { | if (!phutil_nonempty_string($this->datasourceQuery)) { | ||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
$conn, | $conn, | ||||
'plan.name LIKE %>', | 'plan.name LIKE %>', | ||||
$this->datasourceQuery); | $this->datasourceQuery); | ||||
} | } | ||||
if ($this->planAutoKeys !== null) { | if ($this->planAutoKeys !== null) { | ||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |