Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/storage/PhabricatorDashboard.php
| Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | protected function getConfiguration() { | ||||
| ) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
| } | } | ||||
| public function generatePHID() { | public function generatePHID() { | ||||
| return PhabricatorPHID::generateNewPHID( | return PhabricatorPHID::generateNewPHID( | ||||
| PhabricatorDashboardDashboardPHIDType::TYPECONST); | PhabricatorDashboardDashboardPHIDType::TYPECONST); | ||||
| } | } | ||||
| public function getRawLayoutMode() { | |||||
| $config = $this->getRawLayoutConfig(); | |||||
| return idx($config, 'layoutMode'); | |||||
| } | |||||
| public function setRawLayoutMode($mode) { | |||||
| $config = $this->getRawLayoutConfig(); | |||||
| $config['layoutMode'] = $mode; | |||||
| return $this->setLayoutConfig($config); | |||||
| } | |||||
| private function getRawLayoutConfig() { | |||||
| $config = $this->getLayoutConfig(); | |||||
| if (!is_array($config)) { | |||||
| $config = array(); | |||||
| } | |||||
| return $config; | |||||
| } | |||||
| public function getLayoutConfigObject() { | public function getLayoutConfigObject() { | ||||
| return PhabricatorDashboardLayoutConfig::newFromDictionary( | return PhabricatorDashboardLayoutConfig::newFromDictionary( | ||||
| $this->getLayoutConfig()); | $this->getLayoutConfig()); | ||||
| } | } | ||||
| public function setLayoutConfigFromObject( | public function setLayoutConfigFromObject( | ||||
| PhabricatorDashboardLayoutConfig $object) { | PhabricatorDashboardLayoutConfig $object) { | ||||
| ▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines | |||||