Path: blob/master/src/applications/differential/query/DifferentialViewStateQuery.php
12256 views
<?php12final class DifferentialViewStateQuery3extends PhabricatorCursorPagedPolicyAwareQuery {45private $ids;6private $viewerPHIDs;7private $objectPHIDs;89public function withIDs(array $ids) {10$this->ids = $ids;11return $this;12}1314public function withViewerPHIDs(array $phids) {15$this->viewerPHIDs = $phids;16return $this;17}1819public function withObjectPHIDs(array $phids) {20$this->objectPHIDs = $phids;21return $this;22}2324public function newResultObject() {25return new DifferentialViewState();26}2728protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {29$where = parent::buildWhereClauseParts($conn);3031if ($this->ids !== null) {32$where[] = qsprintf(33$conn,34'id IN (%Ld)',35$this->ids);36}3738if ($this->viewerPHIDs !== null) {39$where[] = qsprintf(40$conn,41'viewerPHID IN (%Ls)',42$this->viewerPHIDs);43}4445if ($this->objectPHIDs !== null) {46$where[] = qsprintf(47$conn,48'objectPHID IN (%Ls)',49$this->objectPHIDs);50}5152return $where;53}5455public function getQueryApplicationClass() {56return 'PhabricatorDifferentialApplication';57}5859}606162