Differential D20472 Diff 48872 src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php
| Show All 35 Lines | $query_field = | ||||
| id(new PhabricatorDashboardQueryPanelQueryEditField()) | id(new PhabricatorDashboardQueryPanelQueryEditField()) | ||||
| ->setKey('key') | ->setKey('key') | ||||
| ->setLabel(pht('Query')) | ->setLabel(pht('Query')) | ||||
| ->setApplicationControlID($application_id) | ->setApplicationControlID($application_id) | ||||
| ->setTransactionType( | ->setTransactionType( | ||||
| PhabricatorDashboardQueryPanelQueryTransaction::TRANSACTIONTYPE) | PhabricatorDashboardQueryPanelQueryTransaction::TRANSACTIONTYPE) | ||||
| ->setValue($panel->getProperty('key', '')); | ->setValue($panel->getProperty('key', '')); | ||||
| $limit_field = id(new PhabricatorIntEditField()) | |||||
| ->setKey('limit') | |||||
| ->setLabel(pht('Limit')) | |||||
| ->setTransactionType( | |||||
| PhabricatorDashboardQueryPanelLimitTransaction::TRANSACTIONTYPE) | |||||
| ->setValue($panel->getProperty('limit')); | |||||
| return array( | return array( | ||||
| $application_field, | $application_field, | ||||
| $query_field, | $query_field, | ||||
| $limit_field, | |||||
| ); | ); | ||||
| } | } | ||||
| public function initializeFieldsFromRequest( | public function initializeFieldsFromRequest( | ||||
| PhabricatorDashboardPanel $panel, | PhabricatorDashboardPanel $panel, | ||||
| PhabricatorCustomFieldList $field_list, | PhabricatorCustomFieldList $field_list, | ||||
| AphrontRequest $request) { | AphrontRequest $request) { | ||||
| ▲ Show 20 Lines • Show All 177 Lines • Show Last 20 Lines | |||||