Пример #1
0
 /**
  * @param string     $moduleDataDirectory
  * @param string     $fileName
  * @param DataModule $module
  */
 protected function writeModuleDataFile($moduleDataDirectory, $fileName, DataModule $module)
 {
     $moduleData = new \stdClass();
     $moduleData->form = $module->getForm();
     $moduleData->formValues = $module->getFormvalues();
     $this->storeJsonFile($moduleDataDirectory, $fileName, $moduleData);
 }
Пример #2
0
 /**
  * @param $data
  */
 protected function setValuesFromData(Data\Modul $data)
 {
     $this->setId($data->getId());
     $this->setWebsiteid($data->getWebsiteId());
     $this->setName($data->getName());
     $this->setDescription($data->getDescription());
     $this->setVersion($data->getVersion());
     $this->setIcon($data->getIcon());
     $this->setForm($data->getForm());
     $this->setFormvalues($data->getFormvalues());
     $this->setCategory($data->getCategory());
     $this->setModuletype($data->getModuletype());
     $this->setAllowedchildmoduletype($data->getAllowedchildmoduletype());
     $this->setReRenderRequired($data->getRerenderrequired());
     $this->setSourceType($data->getSourceType());
     $this->setOverwritten($data->isOverwritten());
     $this->setGhostContainerMode($data->getGhostContainerMode());
 }