protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { $where = parent::buildWhereClauseParts($conn); if ($this->ids !== null) { $where[] = qsprintf($conn, 'u.id IN (%Ld)', $this->ids); } if ($this->phids !== null) { $where[] = qsprintf($conn, 'u.phid IN (%Ls)', $this->phids); } if ($this->publisherKeys !== null) { $where[] = qsprintf($conn, 'u.publisherKey IN (%Ls)', $this->publisherKeys); } return $where; }
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { $where = parent::buildWhereClauseParts($conn); if ($this->ids !== null) { $where[] = qsprintf($conn, 'p.id IN (%Ld)', $this->ids); } if ($this->phids !== null) { $where[] = qsprintf($conn, 'p.phid IN (%Ls)', $this->phids); } if ($this->publisherPHIDs !== null) { $where[] = qsprintf($conn, 'p.publisherPHID IN (%Ls)', $this->publisherPHIDs); } if ($this->packageKeys !== null) { $where[] = qsprintf($conn, 'p.packageKey IN (%Ls)', $this->packageKeys); } if ($this->fullKeys !== null) { $parts = $this->buildFullKeyClauseParts($conn, $this->fullKeys); $where[] = qsprintf($conn, '%Q', $parts); } return $where; }