Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2892402
DoorkeeperExternalObjectQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
964 B
Referenced Files
None
Subscribers
None
DoorkeeperExternalObjectQuery.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment