3 final class PhabricatorPackagesPublisherQuery
4 extends PhabricatorPackagesQuery
{
8 private $publisherKeys;
10 public function withIDs(array $ids) {
15 public function withPHIDs(array $phids) {
16 $this->phids
= $phids;
20 public function withPublisherKeys(array $keys) {
21 $this->publisherKeys
= $keys;
25 public function withNameNgrams($ngrams) {
26 return $this->withNgramsConstraint(
27 new PhabricatorPackagesPublisherNameNgrams(),
31 public function newResultObject() {
32 return new PhabricatorPackagesPublisher();
35 protected function loadPage() {
36 return $this->loadStandardPage($this->newResultObject());
39 protected function buildWhereClauseParts(AphrontDatabaseConnection
$conn) {
40 $where = parent
::buildWhereClauseParts($conn);
42 if ($this->ids
!== null) {
49 if ($this->phids
!== null) {
56 if ($this->publisherKeys
!== null) {
59 'u.publisherKey IN (%Ls)',
60 $this->publisherKeys
);
66 protected function getPrimaryTableAlias() {