Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/query/PhabricatorPeopleLogQuery.php
| <?php | <?php | ||||
| final class PhabricatorPeopleLogQuery | final class PhabricatorPeopleLogQuery | ||||
| extends PhabricatorCursorPagedPolicyAwareQuery { | extends PhabricatorCursorPagedPolicyAwareQuery { | ||||
| private $ids; | |||||
| private $actorPHIDs; | private $actorPHIDs; | ||||
| private $userPHIDs; | private $userPHIDs; | ||||
| private $relatedPHIDs; | private $relatedPHIDs; | ||||
| private $sessionKeys; | private $sessionKeys; | ||||
| private $actions; | private $actions; | ||||
| private $remoteAddressPrefix; | private $remoteAddressPrefix; | ||||
| private $dateCreatedMin; | private $dateCreatedMin; | ||||
| private $dateCreatedMax; | private $dateCreatedMax; | ||||
| public function withIDs(array $ids) { | |||||
| $this->ids = $ids; | |||||
| return $this; | |||||
| } | |||||
| public function withActorPHIDs(array $actor_phids) { | public function withActorPHIDs(array $actor_phids) { | ||||
| $this->actorPHIDs = $actor_phids; | $this->actorPHIDs = $actor_phids; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function withUserPHIDs(array $user_phids) { | public function withUserPHIDs(array $user_phids) { | ||||
| $this->userPHIDs = $user_phids; | $this->userPHIDs = $user_phids; | ||||
| return $this; | return $this; | ||||
| Show All 31 Lines | final class PhabricatorPeopleLogQuery | ||||
| 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->actorPHIDs !== null) { | if ($this->actorPHIDs !== null) { | ||||
| $where[] = qsprintf( | $where[] = qsprintf( | ||||
| $conn, | $conn, | ||||
| 'actorPHID IN (%Ls)', | 'actorPHID IN (%Ls)', | ||||
| $this->actorPHIDs); | $this->actorPHIDs); | ||||
| } | } | ||||
| if ($this->userPHIDs !== null) { | if ($this->userPHIDs !== null) { | ||||
| ▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines | |||||