Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102240311
DoorkeeperExternalObjectQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Feb 18, 15:42
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Feb 20, 15:42 (2 d)
Engine
blob
Format
Raw Data
Handle
24313819
Attached To
rPH Phabricator
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
loadPage
()
{
return
$this
->
loadStandardPage
(
$this
->
newResultObject
());
}
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'
;
}
}
Event Timeline
Log In to Comment