Page MenuHomePhorge

D25455.1734679606.diff
No OneTemporary

D25455.1734679606.diff

diff --git a/src/applications/tokens/query/PhabricatorTokenGivenQuery.php b/src/applications/tokens/query/PhabricatorTokenGivenQuery.php
--- a/src/applications/tokens/query/PhabricatorTokenGivenQuery.php
+++ b/src/applications/tokens/query/PhabricatorTokenGivenQuery.php
@@ -3,10 +3,16 @@
final class PhabricatorTokenGivenQuery
extends PhabricatorCursorPagedPolicyAwareQuery {
+ private $ids;
private $authorPHIDs;
private $objectPHIDs;
private $tokenPHIDs;
+ public function withIDs(array $ids) {
+ $this->ids = $ids;
+ return $this;
+ }
+
public function withTokenPHIDs(array $token_phids) {
$this->tokenPHIDs = $token_phids;
return $this;
@@ -29,6 +35,13 @@
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);
+ if ($this->ids !== null) {
+ $where[] = qsprintf(
+ $conn,
+ 'id IN (%Ld)',
+ $this->ids);
+ }
+
if ($this->authorPHIDs !== null) {
$where[] = qsprintf(
$conn,

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 07:26 (1 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1016755
Default Alt Text
D25455.1734679606.diff (1 KB)

Event Timeline