Changeset View
Changeset View
Standalone View
Standalone View
src/applications/chatlog/query/PhabricatorChatLogQuery.php
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | foreach ($events as $key => $event) { | ||||
} | } | ||||
$event->attachChannel($channel); | $event->attachChannel($channel); | ||||
} | } | ||||
return $events; | return $events; | ||||
} | } | ||||
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) { | protected function buildWhereClause(AphrontDatabaseConnection $conn) { | ||||
$where = array(); | $where = array(); | ||||
$where[] = $this->buildPagingClause($conn_r); | $where[] = $this->buildPagingClause($conn); | ||||
if ($this->maximumEpoch) { | if ($this->maximumEpoch !== null) { | ||||
amckinley: "nul" | |||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
$conn_r, | $conn, | ||||
'epoch <= %d', | 'epoch <= %d', | ||||
$this->maximumEpoch); | $this->maximumEpoch); | ||||
} | } | ||||
if ($this->channelIDs) { | if ($this->channelIDs !== null) { | ||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
$conn_r, | $conn, | ||||
'channelID IN (%Ld)', | 'channelID IN (%Ld)', | ||||
$this->channelIDs); | $this->channelIDs); | ||||
} | } | ||||
return $this->formatWhereClause($where); | return $this->formatWhereClause($conn, $where); | ||||
} | } | ||||
public function getQueryApplicationClass() { | public function getQueryApplicationClass() { | ||||
return 'PhabricatorChatLogApplication'; | return 'PhabricatorChatLogApplication'; | ||||
} | } | ||||
} | } |
"nul"