Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93226219
NuanceItemCommandQuery.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
Wed, Nov 27, 04:15
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Nov 29, 04:15 (2 d)
Engine
blob
Format
Raw Data
Handle
22599250
Attached To
rPH Phabricator
NuanceItemCommandQuery.php
View Options
<?php
final
class
NuanceItemCommandQuery
extends
NuanceQuery
{
private
$ids
;
private
$itemPHIDs
;
private
$statuses
;
public
function
withIDs
(
array
$ids
)
{
$this
->
ids
=
$ids
;
return
$this
;
}
public
function
withItemPHIDs
(
array
$item_phids
)
{
$this
->
itemPHIDs
=
$item_phids
;
return
$this
;
}
public
function
withStatuses
(
array
$statuses
)
{
$this
->
statuses
=
$statuses
;
return
$this
;
}
public
function
newResultObject
()
{
return
new
NuanceItemCommand
();
}
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
->
itemPHIDs
!==
null
)
{
$where
[]
=
qsprintf
(
$conn
,
'itemPHID IN (%Ls)'
,
$this
->
itemPHIDs
);
}
if
(
$this
->
statuses
!==
null
)
{
$where
[]
=
qsprintf
(
$conn
,
'status IN (%Ls)'
,
$this
->
statuses
);
}
return
$where
;
}
}
Event Timeline
Log In to Comment