Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F548092
DoorkeeperExternalObjectQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
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
Mon, May 12, 1:44 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
122953
Default Alt Text
DoorkeeperExternalObjectQuery.php (964 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment