Differential D20372 Diff 48638 src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php
Show All 15 Lines | final class PhabricatorDashboardQueryPanelType | ||||
} | } | ||||
public function getPanelTypeDescription() { | public function getPanelTypeDescription() { | ||||
return pht( | return pht( | ||||
'Show results of a search query, like the most recently filed tasks or '. | 'Show results of a search query, like the most recently filed tasks or '. | ||||
'revisions you need to review.'); | 'revisions you need to review.'); | ||||
} | } | ||||
public function getFieldSpecifications() { | protected function newEditEngineFields(PhabricatorDashboardPanel $panel) { | ||||
return array( | // TODO: Restore this using EditEngine instead of CustomField. | ||||
'class' => array( | return array(); | ||||
'name' => pht('Search For'), | |||||
'type' => 'search.application', | |||||
), | |||||
'key' => array( | |||||
'name' => pht('Query'), | |||||
'type' => 'search.query', | |||||
'control.application' => 'class', | |||||
), | |||||
'limit' => array( | |||||
'name' => pht('Limit'), | |||||
'caption' => pht('Leave this blank for the default number of items.'), | |||||
'type' => 'text', | |||||
), | |||||
); | |||||
} | } | ||||
public function initializeFieldsFromRequest( | public function initializeFieldsFromRequest( | ||||
PhabricatorDashboardPanel $panel, | PhabricatorDashboardPanel $panel, | ||||
PhabricatorCustomFieldList $field_list, | PhabricatorCustomFieldList $field_list, | ||||
AphrontRequest $request) { | AphrontRequest $request) { | ||||
$map = array(); | $map = array(); | ||||
▲ Show 20 Lines • Show All 176 Lines • Show Last 20 Lines |