inNamespace( NS_GADGET_DEFINITION ); } protected function getContentClass() { return 'GadgetDefinitionContent'; } public function makeEmptyContent() { $class = $this->getContentClass(); return new $class( FormatJson::encode( $this->getDefaultMetadata(), true ) ); } public function getDefaultMetadata() { return array( 'settings' => array( 'rights' => array(), 'default' => false, 'hidden' => false, 'skins' => array(), 'category' => '' ), 'module' => array( 'scripts' => array(), 'styles' => array(), 'dependencies' => array(), 'messages' => array(), 'position' => 'bottom', ), ); } }