Page MenuHomePhorge

DoorkeeperExternalObjectQuery.php
No OneTemporary

DoorkeeperExternalObjectQuery.php

<?php
final class DoorkeeperExternalObjectQuery
extends PhabricatorCursorPagedPolicyAwareQuery {
protected $phids;
protected $objectKeys;
public function withPHIDs(array $phids) {
$this->phids = $phids;
return $this;
}
public function withObjectKeys(array $keys) {
$this->objectKeys = $keys;
return $this;
}
public function newResultObject() {
return new DoorkeeperExternalObject();
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);
if ($this->phids !== null) {
$where[] = qsprintf(
$conn,
'phid IN (%Ls)',
$this->phids);
}
if ($this->objectKeys !== null) {
$where[] = qsprintf(
$conn,
'objectKey IN (%Ls)',
$this->objectKeys);
}
return $where;
}
public function getQueryApplicationClass() {
return PhabricatorDoorkeeperApplication::class;
}
}

File Metadata

Mime Type
text/x-php
Expires
Jan 19 2025, 16:46 (7 w, 21 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1126615
Default Alt Text
DoorkeeperExternalObjectQuery.php (964 B)

Event Timeline