Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98417517
PhabricatorPackagesPublisherQuery.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
Mon, Jan 13, 00:35
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Jan 15, 00:35 (2 d)
Engine
blob
Format
Raw Data
Handle
23575542
Attached To
rPH Phabricator
PhabricatorPackagesPublisherQuery.php
View Options
<?php
final
class
PhabricatorPackagesPublisherQuery
extends
PhabricatorPackagesQuery
{
private
$ids
;
private
$phids
;
private
$publisherKeys
;
public
function
withIDs
(
array
$ids
)
{
$this
->
ids
=
$ids
;
return
$this
;
}
public
function
withPHIDs
(
array
$phids
)
{
$this
->
phids
=
$phids
;
return
$this
;
}
public
function
withPublisherKeys
(
array
$keys
)
{
$this
->
publisherKeys
=
$keys
;
return
$this
;
}
public
function
newResultObject
()
{
return
new
PhabricatorPackagesPublisher
();
}
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
);
}
if
(
$this
->
publisherKeys
!==
null
)
{
$where
[]
=
qsprintf
(
$conn
,
'publisherKey IN (%Ls)'
,
$this
->
publisherKeys
);
}
return
$where
;
}
}
Event Timeline
Log In to Comment