Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2694350
D25455.1734779273.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
D25455.1734779273.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 11:07 (17 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1016755
Default Alt Text
D25455.1734779273.diff (1 KB)
Attached To
Mode
D25455: Fix cursor paging issue in Given Token query call
Attached
Detach File
Event Timeline
Log In to Comment