Changeset View
Changeset View
Standalone View
Standalone View
src/applications/passphrase/query/PassphraseCredentialQuery.php
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { | ||||
if ($this->allowConduit !== null) { | if ($this->allowConduit !== null) { | ||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
$conn, | $conn, | ||||
'c.allowConduit = %d', | 'c.allowConduit = %d', | ||||
(int)$this->allowConduit); | (int)$this->allowConduit); | ||||
} | } | ||||
if (strlen($this->nameContains)) { | if (phutil_nonempty_string($this->nameContains)) { | ||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
$conn, | $conn, | ||||
'LOWER(c.name) LIKE %~', | 'LOWER(c.name) LIKE %~', | ||||
phutil_utf8_strtolower($this->nameContains)); | phutil_utf8_strtolower($this->nameContains)); | ||||
} | } | ||||
return $where; | return $where; | ||||
} | } | ||||
Show All 10 Lines |