Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/query/PhabricatorConduitLogQuery.php
| <?php | <?php | ||||
| final class PhabricatorConduitLogQuery | final class PhabricatorConduitLogQuery | ||||
| extends PhabricatorCursorPagedPolicyAwareQuery { | extends PhabricatorCursorPagedPolicyAwareQuery { | ||||
| private $ids; | |||||
| private $callerPHIDs; | private $callerPHIDs; | ||||
| private $methods; | private $methods; | ||||
| private $methodStatuses; | private $methodStatuses; | ||||
| private $epochMin; | private $epochMin; | ||||
| private $epochMax; | private $epochMax; | ||||
| public function withIDs(array $ids) { | |||||
| $this->ids = $ids; | |||||
| return $this; | |||||
| } | |||||
| public function withCallerPHIDs(array $phids) { | public function withCallerPHIDs(array $phids) { | ||||
| $this->callerPHIDs = $phids; | $this->callerPHIDs = $phids; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function withMethods(array $methods) { | public function withMethods(array $methods) { | ||||
| $this->methods = $methods; | $this->methods = $methods; | ||||
| return $this; | return $this; | ||||
| Show All 16 Lines | final class PhabricatorConduitLogQuery | ||||
| protected function loadPage() { | protected function loadPage() { | ||||
| return $this->loadStandardPage($this->newResultObject()); | return $this->loadStandardPage($this->newResultObject()); | ||||
| } | } | ||||
| protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { | protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { | ||||
| $where = parent::buildWhereClauseParts($conn); | $where = parent::buildWhereClauseParts($conn); | ||||
| if ($this->ids !== null) { | |||||
| $where[] = qsprintf( | |||||
| $conn, | |||||
| 'id IN (%Ld)', | |||||
| $this->ids); | |||||
| } | |||||
| if ($this->callerPHIDs !== null) { | if ($this->callerPHIDs !== null) { | ||||
| $where[] = qsprintf( | $where[] = qsprintf( | ||||
| $conn, | $conn, | ||||
| 'callerPHID IN (%Ls)', | 'callerPHID IN (%Ls)', | ||||
| $this->callerPHIDs); | $this->callerPHIDs); | ||||
| } | } | ||||
| if ($this->methods !== null) { | if ($this->methods !== null) { | ||||
| ▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines | |||||