Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/storage/PhabricatorDashboard.php
Show All 37 Lines | return array( | ||||
self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
self::CONFIG_SERIALIZATION => array( | self::CONFIG_SERIALIZATION => array( | ||||
'layoutConfig' => self::SERIALIZATION_JSON), | 'layoutConfig' => self::SERIALIZATION_JSON), | ||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID( | return PhabricatorPHID::generateNewPHID( | ||||
PhabricatorDashboardPHIDTypeDashboard::TYPECONST); | PhabricatorDashboardDashboardPHIDType::TYPECONST); | ||||
} | } | ||||
public function getLayoutConfigObject() { | public function getLayoutConfigObject() { | ||||
return PhabricatorDashboardLayoutConfig::newFromDictionary( | return PhabricatorDashboardLayoutConfig::newFromDictionary( | ||||
$this->getLayoutConfig()); | $this->getLayoutConfig()); | ||||
} | } | ||||
public function setLayoutConfigFromObject( | public function setLayoutConfigFromObject( | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |