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 { | PhabricatorNgramsInterface, | ||||
| 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; | ||||
| protected $layoutConfig = array(); | protected $layoutConfig = array(); | ||||
| ▲ Show 20 Lines • Show All 164 Lines • ▼ Show 20 Lines | /* -( PhabricatorNgramInterface )------------------------------------------ */ | ||||
| public function newNgrams() { | public function newNgrams() { | ||||
| return array( | return array( | ||||
| id(new PhabricatorDashboardNgrams()) | id(new PhabricatorDashboardNgrams()) | ||||
| ->setValue($this->getName()), | ->setValue($this->getName()), | ||||
| ); | ); | ||||
| } | } | ||||
| /* -( PhabricatorDashboardPanelContainerInterface )------------------------ */ | |||||
| public function getDashboardPanelContainerPanelPHIDs() { | |||||
| return PhabricatorEdgeQuery::loadDestinationPHIDs( | |||||
| $this->getPHID(), | |||||
| PhabricatorDashboardDashboardHasPanelEdgeType::EDGECONST); | |||||
| } | |||||
| } | } | ||||