Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96465856
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
Fri, Dec 27, 00:30
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Dec 29, 00:30 (1 d, 8 h)
Engine
blob
Format
Raw Data
Handle
23188283
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