Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96121436
PhabricatorXHProfSampleQuery.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
Sun, Dec 22, 21:03
Size
1006 B
Mime Type
text/x-php
Expires
Tue, Dec 24, 21:03 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23126419
Attached To
rPH Phabricator
PhabricatorXHProfSampleQuery.php
View Options
<?php
final
class
PhabricatorXHProfSampleQuery
extends
PhabricatorCursorPagedPolicyAwareQuery
{
private
$ids
;
private
$phids
;
public
function
withIDs
(
array
$ids
)
{
$this
->
ids
=
$ids
;
return
$this
;
}
public
function
withPHIDs
(
array
$phids
)
{
$this
->
phids
=
$phids
;
return
$this
;
}
public
function
newResultObject
()
{
return
new
PhabricatorXHProfSample
();
}
protected
function
loadPage
()
{
return
$this
->
loadStandardPage
(
$this
->
newResultObject
());
}
protected
function
buildWhereClauseParts
(
AphrontDatabaseConnection
$conn
)
{
$where
=
parent
::
buildWhereClauseParts
(
$conn
);
if
(
$this
->
ids
!==
null
)
{
$where
[]
=
qsprintf
(
$conn
,
'id IN (%Ld)'
,
$this
->
ids
);
}
if
(
$this
->
phids
!==
null
)
{
$where
[]
=
qsprintf
(
$conn
,
'phid IN (%Ls)'
,
$this
->
phids
);
}
return
$where
;
}
public
function
getQueryApplicationClass
()
{
return
'PhabricatorXHProfApplication'
;
}
}
Event Timeline
Log In to Comment