Differential D17341 Diff 41828 src/applications/packages/query/PhabricatorPackagesPackageSearchEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/packages/query/PhabricatorPackagesPackageSearchEngine.php
| Show All 9 Lines | final class PhabricatorPackagesPackageSearchEngine | ||||
| public function getApplicationClassName() { | public function getApplicationClassName() { | ||||
| return 'PhabricatorPackagesApplication'; | return 'PhabricatorPackagesApplication'; | ||||
| } | } | ||||
| public function newQuery() { | public function newQuery() { | ||||
| return id(new PhabricatorPackagesPackageQuery()); | return id(new PhabricatorPackagesPackageQuery()); | ||||
| } | } | ||||
| public function canUseInPanelContext() { | |||||
| return false; | |||||
| } | |||||
| protected function buildQueryFromParameters(array $map) { | protected function buildQueryFromParameters(array $map) { | ||||
| $query = $this->newQuery(); | $query = $this->newQuery(); | ||||
| if ($map['match'] !== null) { | if ($map['match'] !== null) { | ||||
| $query->withNameNgrams($map['match']); | $query->withNameNgrams($map['match']); | ||||
| } | } | ||||
| if ($map['publisherPHIDs']) { | if ($map['publisherPHIDs']) { | ||||
| ▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines | |||||