Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/query/PhabricatorPeopleQuery.php
Show First 20 Lines • Show All 262 Lines • ▼ Show 20 Lines | protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { | ||||
if ($this->namePrefixes) { | if ($this->namePrefixes) { | ||||
$parts = array(); | $parts = array(); | ||||
foreach ($this->namePrefixes as $name_prefix) { | foreach ($this->namePrefixes as $name_prefix) { | ||||
$parts[] = qsprintf( | $parts[] = qsprintf( | ||||
$conn, | $conn, | ||||
'user.username LIKE %>', | 'user.username LIKE %>', | ||||
$name_prefix); | $name_prefix); | ||||
} | } | ||||
$where[] = '('.implode(' OR ', $parts).')'; | $where[] = qsprintf($conn, '%LO', $parts); | ||||
} | } | ||||
if ($this->emails !== null) { | if ($this->emails !== null) { | ||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
$conn, | $conn, | ||||
'email.address IN (%Ls)', | 'email.address IN (%Ls)', | ||||
$this->emails); | $this->emails); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 363 Lines • Show Last 20 Lines |