Path: blob/master/src/applications/doorkeeper/query/DoorkeeperExternalObjectQuery.php
12256 views
<?php12final class DoorkeeperExternalObjectQuery3extends PhabricatorCursorPagedPolicyAwareQuery {45protected $phids;6protected $objectKeys;78public function withPHIDs(array $phids) {9$this->phids = $phids;10return $this;11}1213public function withObjectKeys(array $keys) {14$this->objectKeys = $keys;15return $this;16}1718public function newResultObject() {19return new DoorkeeperExternalObject();20}2122protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {23$where = parent::buildWhereClauseParts($conn);2425if ($this->phids !== null) {26$where[] = qsprintf(27$conn,28'phid IN (%Ls)',29$this->phids);30}3132if ($this->objectKeys !== null) {33$where[] = qsprintf(34$conn,35'objectKey IN (%Ls)',36$this->objectKeys);37}3839return $where;40}4142public function getQueryApplicationClass() {43return 'PhabricatorDoorkeeperApplication';44}4546}474849