Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/query/PhabricatorAuthSessionQuery.php
| Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | if ($this->sessionKeys) { | ||||
| } | } | ||||
| $where[] = qsprintf( | $where[] = qsprintf( | ||||
| $conn_r, | $conn_r, | ||||
| 'sessionKey IN (%Ls)', | 'sessionKey IN (%Ls)', | ||||
| $hashes); | $hashes); | ||||
| } | } | ||||
| if ($this->sessionTypes) { | if ($this->sessionTypes) { | ||||
| $clauses = array(); | $where[] = qsprintf( | ||||
| foreach ($this->sessionTypes as $session_type) { | |||||
| $clauses[] = qsprintf( | |||||
| $conn_r, | $conn_r, | ||||
| 'type LIKE %>', | 'type IN (%Ls)', | ||||
| $session_type.'-'); | $this->sessionTypes); | ||||
| } | |||||
| $where[] = '('.implode(') OR (', $clauses).')'; | |||||
| } | } | ||||
| $where[] = $this->buildPagingClause($conn_r); | $where[] = $this->buildPagingClause($conn_r); | ||||
| return $this->formatWhereClause($where); | return $this->formatWhereClause($where); | ||||
| } | } | ||||
| public function getPagingColumn() { | |||||
| return 'sessionKey'; | |||||
| } | |||||
| public function getQueryApplicationClass() { | public function getQueryApplicationClass() { | ||||
| return 'PhabricatorApplicationAuth'; | return 'PhabricatorApplicationAuth'; | ||||
| } | } | ||||
| } | } | ||||