Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/query/ConpherenceThreadQuery.php
Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Lines | final class ConpherenceThreadQuery | ||||
private function buildGroupClause($conn_r) { | private function buildGroupClause($conn_r) { | ||||
if ($this->participantPHIDs !== null) { | if ($this->participantPHIDs !== null) { | ||||
return 'GROUP BY conpherence_thread.id'; | return 'GROUP BY conpherence_thread.id'; | ||||
} else { | } else { | ||||
return $this->buildApplicationSearchGroupClause($conn_r); | return $this->buildApplicationSearchGroupClause($conn_r); | ||||
} | } | ||||
} | } | ||||
private function buildJoinClause($conn_r) { | protected function buildJoinClause(AphrontDatabaseConnection $conn_r) { | ||||
$joins = array(); | $joins = array(); | ||||
if ($this->participantPHIDs !== null) { | if ($this->participantPHIDs !== null) { | ||||
$joins[] = qsprintf( | $joins[] = qsprintf( | ||||
$conn_r, | $conn_r, | ||||
'JOIN %T p ON p.conpherencePHID = conpherence_thread.phid', | 'JOIN %T p ON p.conpherencePHID = conpherence_thread.phid', | ||||
id(new ConpherenceParticipant())->getTableName()); | id(new ConpherenceParticipant())->getTableName()); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 243 Lines • Show Last 20 Lines |