Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/storage/PhabricatorDashboardPanel.php
| <?php | <?php | ||||
| /** | /** | ||||
| * An individual dashboard panel. | * An individual dashboard panel. | ||||
| */ | */ | ||||
| final class PhabricatorDashboardPanel | final class PhabricatorDashboardPanel | ||||
| extends PhabricatorDashboardDAO | extends PhabricatorDashboardDAO | ||||
| implements | implements | ||||
| PhabricatorApplicationTransactionInterface, | PhabricatorApplicationTransactionInterface, | ||||
| PhabricatorPolicyInterface, | PhabricatorPolicyInterface, | ||||
| PhabricatorFlaggableInterface, | PhabricatorFlaggableInterface, | ||||
| PhabricatorDestructibleInterface, | PhabricatorDestructibleInterface, | ||||
| PhabricatorNgramsInterface { | PhabricatorNgramsInterface, | ||||
| PhabricatorDashboardPanelContainerInterface { | |||||
| protected $name; | protected $name; | ||||
| protected $panelType; | protected $panelType; | ||||
| protected $viewPolicy; | protected $viewPolicy; | ||||
| protected $editPolicy; | protected $editPolicy; | ||||
| protected $authorPHID; | protected $authorPHID; | ||||
| protected $isArchived = 0; | protected $isArchived = 0; | ||||
| protected $properties = array(); | protected $properties = array(); | ||||
| ▲ Show 20 Lines • Show All 138 Lines • ▼ Show 20 Lines | /* -( PhabricatorNgramInterface )------------------------------------------ */ | ||||
| public function newNgrams() { | public function newNgrams() { | ||||
| return array( | return array( | ||||
| id(new PhabricatorDashboardPanelNgrams()) | id(new PhabricatorDashboardPanelNgrams()) | ||||
| ->setValue($this->getName()), | ->setValue($this->getName()), | ||||
| ); | ); | ||||
| } | } | ||||
| /* -( PhabricatorDashboardPanelContainerInterface )------------------------ */ | |||||
| public function getDashboardPanelContainerPanelPHIDs() { | |||||
| return $this->requireImplementation()->getSubpanelPHIDs($this); | |||||
| } | |||||
| } | } | ||||