Differential D17341 Diff 41828 src/applications/dashboard/query/PhabricatorDashboardSearchEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/query/PhabricatorDashboardSearchEngine.php
| Show All 10 Lines | public function getApplicationClassName() { | ||||
| return 'PhabricatorDashboardApplication'; | return 'PhabricatorDashboardApplication'; | ||||
| } | } | ||||
| public function newQuery() { | public function newQuery() { | ||||
| return id(new PhabricatorDashboardQuery()) | return id(new PhabricatorDashboardQuery()) | ||||
| ->needPanels(true); | ->needPanels(true); | ||||
| } | } | ||||
| public function canUseInPanelContext() { | |||||
| return false; | |||||
| } | |||||
| protected function buildCustomSearchFields() { | protected function buildCustomSearchFields() { | ||||
| return array( | return array( | ||||
| id(new PhabricatorSearchTextField()) | id(new PhabricatorSearchTextField()) | ||||
| ->setLabel(pht('Name Contains')) | ->setLabel(pht('Name Contains')) | ||||
| ->setKey('name') | ->setKey('name') | ||||
| ->setDescription(pht('Search for dashboards by name substring.')), | ->setDescription(pht('Search for dashboards by name substring.')), | ||||
| id(new PhabricatorSearchDatasourceField()) | id(new PhabricatorSearchDatasourceField()) | ||||
| ->setLabel(pht('Authored By')) | ->setLabel(pht('Authored By')) | ||||
| ▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines | |||||