Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/query/HeraldTranscriptQuery.php
| Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | foreach ($transcripts as $key => $transcript) { | ||||
| $this->didRejectResult($transcript); | $this->didRejectResult($transcript); | ||||
| unset($transcripts[$key]); | unset($transcripts[$key]); | ||||
| } | } | ||||
| } | } | ||||
| return $transcripts; | return $transcripts; | ||||
| } | } | ||||
| protected function buildWhereClause(AphrontDatabaseConnection $conn_r) { | protected function buildWhereClause(AphrontDatabaseConnection $conn) { | ||||
| $where = array(); | $where = array(); | ||||
| if ($this->ids) { | if ($this->ids) { | ||||
| $where[] = qsprintf( | $where[] = qsprintf( | ||||
| $conn_r, | $conn, | ||||
| 'id IN (%Ld)', | 'id IN (%Ld)', | ||||
| $this->ids); | $this->ids); | ||||
| } | } | ||||
| if ($this->phids) { | if ($this->phids) { | ||||
| $where[] = qsprintf( | $where[] = qsprintf( | ||||
| $conn_r, | $conn, | ||||
| 'phid IN (%Ls)', | 'phid IN (%Ls)', | ||||
| $this->phids); | $this->phids); | ||||
| } | } | ||||
| if ($this->objectPHIDs) { | if ($this->objectPHIDs) { | ||||
| $where[] = qsprintf( | $where[] = qsprintf( | ||||
| $conn_r, | $conn, | ||||
| 'objectPHID in (%Ls)', | 'objectPHID in (%Ls)', | ||||
| $this->objectPHIDs); | $this->objectPHIDs); | ||||
| } | } | ||||
| $where[] = $this->buildPagingClause($conn_r); | $where[] = $this->buildPagingClause($conn); | ||||
| return $this->formatWhereClause($where); | return $this->formatWhereClause($conn, $where); | ||||
| } | } | ||||
| public function getQueryApplicationClass() { | public function getQueryApplicationClass() { | ||||
| return 'PhabricatorHeraldApplication'; | return 'PhabricatorHeraldApplication'; | ||||
| } | } | ||||
| } | } | ||||