Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/query/ConpherenceParticipantQuery.php
| Show All 32 Lines | protected function buildWhereClause(AphrontDatabaseConnection $conn) { | ||||
| if ($this->participantPHIDs !== null) { | if ($this->participantPHIDs !== null) { | ||||
| $where[] = qsprintf( | $where[] = qsprintf( | ||||
| $conn, | $conn, | ||||
| 'participantPHID IN (%Ls)', | 'participantPHID IN (%Ls)', | ||||
| $this->participantPHIDs); | $this->participantPHIDs); | ||||
| } | } | ||||
| return $this->formatWhereClause($where); | return $this->formatWhereClause($conn, $where); | ||||
| } | } | ||||
| private function buildOrderClause(AphrontDatabaseConnection $conn) { | private function buildOrderClause(AphrontDatabaseConnection $conn) { | ||||
| return qsprintf( | return qsprintf( | ||||
| $conn, | $conn, | ||||
| 'ORDER BY thread.dateModified DESC, thread.id DESC, participant.id DESC'); | 'ORDER BY thread.dateModified DESC, thread.id DESC, participant.id DESC'); | ||||
| } | } | ||||
| } | } | ||||