Differential D20484 Diff 48948 src/applications/dashboard/paneltype/PhabricatorDashboardPanelType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/paneltype/PhabricatorDashboardPanelType.php
| <?php | <?php | ||||
| abstract class PhabricatorDashboardPanelType extends Phobject { | abstract class PhabricatorDashboardPanelType extends Phobject { | ||||
| abstract public function getPanelTypeKey(); | abstract public function getPanelTypeKey(); | ||||
| abstract public function getPanelTypeName(); | abstract public function getPanelTypeName(); | ||||
| abstract public function getPanelTypeDescription(); | abstract public function getPanelTypeDescription(); | ||||
| abstract public function getIcon(); | abstract public function getIcon(); | ||||
| abstract public function renderPanelContent( | abstract public function renderPanelContent( | ||||
| PhabricatorUser $viewer, | PhabricatorUser $viewer, | ||||
| PhabricatorDashboardPanel $panel, | PhabricatorDashboardPanel $panel, | ||||
| PhabricatorDashboardPanelRenderingEngine $engine); | PhabricatorDashboardPanelRenderingEngine $engine); | ||||
| public function initializeFieldsFromRequest( | |||||
| PhabricatorDashboardPanel $panel, | |||||
| PhabricatorCustomFieldList $field_list, | |||||
| AphrontRequest $request) { | |||||
| return; | |||||
| } | |||||
| /** | /** | ||||
| * Should this panel pull content in over AJAX? | * Should this panel pull content in over AJAX? | ||||
| * | * | ||||
| * Normally, panels use AJAX to render their content. This makes the page | * Normally, panels use AJAX to render their content. This makes the page | ||||
| * interactable sooner, allows panels to render in parallel, and prevents one | * interactable sooner, allows panels to render in parallel, and prevents one | ||||
| * slow panel from slowing everything down. | * slow panel from slowing everything down. | ||||
| * | * | ||||
| * However, some panels are very cheap to build (i.e., no expensive service | * However, some panels are very cheap to build (i.e., no expensive service | ||||
| ▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines | |||||