Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F113081745
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
Wed, May 14, 19:41
Size
1 KB
Mime Type
text/x-php
Expires
Fri, May 16, 19:41 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
26178597
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
withNameNgrams
(
$ngrams
)
{
return
$this
->
withNgramsConstraint
(
new
PhabricatorPackagesPublisherNameNgrams
(),
$ngrams
);
}
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
,
'u.id IN (%Ld)'
,
$this
->
ids
);
}
if
(
$this
->
phids
!==
null
)
{
$where
[]
=
qsprintf
(
$conn
,
'u.phid IN (%Ls)'
,
$this
->
phids
);
}
if
(
$this
->
publisherKeys
!==
null
)
{
$where
[]
=
qsprintf
(
$conn
,
'u.publisherKey IN (%Ls)'
,
$this
->
publisherKeys
);
}
return
$where
;
}
protected
function
getPrimaryTableAlias
()
{
return
'u'
;
}
}
Event Timeline
Log In to Comment