Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/storage/PhabricatorDashboard.php
| <?php | <?php | ||||
| /** | /** | ||||
| * A collection of dashboard panels with a specific layout. | * A collection of dashboard panels with a specific layout. | ||||
| */ | */ | ||||
| final class PhabricatorDashboard extends PhabricatorDashboardDAO | final class PhabricatorDashboard extends PhabricatorDashboardDAO | ||||
| implements | implements | ||||
| PhabricatorApplicationTransactionInterface, | PhabricatorApplicationTransactionInterface, | ||||
| PhabricatorPolicyInterface, | PhabricatorPolicyInterface, | ||||
| PhabricatorFlaggableInterface, | PhabricatorFlaggableInterface, | ||||
| PhabricatorDestructibleInterface, | PhabricatorDestructibleInterface, | ||||
| PhabricatorProjectInterface, | PhabricatorProjectInterface, | ||||
| PhabricatorNgramsInterface, | PhabricatorFulltextInterface, | ||||
| PhabricatorFerretInterface, | |||||
| PhabricatorDashboardPanelContainerInterface { | PhabricatorDashboardPanelContainerInterface { | ||||
| protected $name; | protected $name; | ||||
| protected $authorPHID; | protected $authorPHID; | ||||
| protected $viewPolicy; | protected $viewPolicy; | ||||
| protected $editPolicy; | protected $editPolicy; | ||||
| protected $status; | protected $status; | ||||
| protected $icon; | protected $icon; | ||||
| ▲ Show 20 Lines • Show All 148 Lines • ▼ Show 20 Lines | |||||
| /* -( PhabricatorDestructibleInterface )----------------------------------- */ | /* -( PhabricatorDestructibleInterface )----------------------------------- */ | ||||
| public function destroyObjectPermanently( | public function destroyObjectPermanently( | ||||
| PhabricatorDestructionEngine $engine) { | PhabricatorDestructionEngine $engine) { | ||||
| $this->delete(); | $this->delete(); | ||||
| } | } | ||||
| /* -( PhabricatorDashboardPanelContainerInterface )------------------------ */ | |||||
| /* -( PhabricatorNgramInterface )------------------------------------------ */ | public function getDashboardPanelContainerPanelPHIDs() { | ||||
| return $this->getPanelPHIDs(); | |||||
| } | |||||
| /* -( PhabricatorFulltextInterface )--------------------------------------- */ | |||||
| public function newNgrams() { | public function newFulltextEngine() { | ||||
| return array( | return new PhabricatorDashboardFulltextEngine(); | ||||
| id(new PhabricatorDashboardNgrams()) | |||||
| ->setValue($this->getName()), | |||||
| ); | |||||
| } | } | ||||
| /* -( PhabricatorDashboardPanelContainerInterface )------------------------ */ | /* -( PhabricatorFerretInterface )----------------------------------------- */ | ||||
| public function getDashboardPanelContainerPanelPHIDs() { | public function newFerretEngine() { | ||||
| return $this->getPanelPHIDs(); | return new PhabricatorDashboardFerretEngine(); | ||||
| } | } | ||||
| } | } | ||||