Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/query/PhabricatorFileSearchEngine.php
| <?php | <?php | ||||
| final class PhabricatorFileSearchEngine | final class PhabricatorFileSearchEngine | ||||
| extends PhabricatorApplicationSearchEngine { | extends PhabricatorApplicationSearchEngine { | ||||
| public function getResultTypeDescription() { | public function getResultTypeDescription() { | ||||
| return pht('Files'); | return pht('Files'); | ||||
| } | } | ||||
| public function getApplicationClassName() { | public function getApplicationClassName() { | ||||
| return 'PhabricatorFilesApplication'; | return 'PhabricatorFilesApplication'; | ||||
| } | } | ||||
| public function canUseInPanelContext() { | |||||
| return false; | |||||
| } | |||||
| public function newQuery() { | public function newQuery() { | ||||
| return new PhabricatorFileQuery(); | return new PhabricatorFileQuery(); | ||||
| } | } | ||||
| protected function buildCustomSearchFields() { | protected function buildCustomSearchFields() { | ||||
| return array( | return array( | ||||
| id(new PhabricatorUsersSearchField()) | id(new PhabricatorUsersSearchField()) | ||||
| ->setKey('authorPHIDs') | ->setKey('authorPHIDs') | ||||
| ▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines | |||||