Differential D17341 Diff 41828 src/applications/packages/query/PhabricatorPackagesVersionSearchEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/packages/query/PhabricatorPackagesVersionSearchEngine.php
| Show All 9 Lines | final class PhabricatorPackagesVersionSearchEngine | ||||
| public function getApplicationClassName() { | public function getApplicationClassName() { | ||||
| return 'PhabricatorPackagesApplication'; | return 'PhabricatorPackagesApplication'; | ||||
| } | } | ||||
| public function newQuery() { | public function newQuery() { | ||||
| return id(new PhabricatorPackagesVersionQuery()); | return id(new PhabricatorPackagesVersionQuery()); | ||||
| } | } | ||||
| 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['packagePHIDs']) { | if ($map['packagePHIDs']) { | ||||
| ▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines | |||||