Differential D17341 Diff 41828 src/applications/dashboard/query/PhabricatorDashboardPanelSearchEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/query/PhabricatorDashboardPanelSearchEngine.php
| Show All 9 Lines | final class PhabricatorDashboardPanelSearchEngine | ||||
| public function getApplicationClassName() { | public function getApplicationClassName() { | ||||
| return 'PhabricatorDashboardApplication'; | return 'PhabricatorDashboardApplication'; | ||||
| } | } | ||||
| public function newQuery() { | public function newQuery() { | ||||
| return new PhabricatorDashboardPanelQuery(); | return new PhabricatorDashboardPanelQuery(); | ||||
| } | } | ||||
| public function canUseInPanelContext() { | |||||
| return false; | |||||
| } | |||||
| protected function buildQueryFromParameters(array $map) { | protected function buildQueryFromParameters(array $map) { | ||||
| $query = $this->newQuery(); | $query = $this->newQuery(); | ||||
| if ($map['status']) { | if ($map['status']) { | ||||
| switch ($map['status']) { | switch ($map['status']) { | ||||
| case 'active': | case 'active': | ||||
| $query->withArchived(false); | $query->withArchived(false); | ||||
| break; | break; | ||||
| case 'archived': | case 'archived': | ||||
| ▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines | |||||