Ejemplo n.º 1
0
 /**
  * Update default template db values with form values (non-localized)
  *
  * @return $this;
  */
 protected function updateDefaultTemplateSettings($form)
 {
     if (null !== ($newValue = $form->getValue('informationobject'))) {
         $setting = QubitSetting::findAndSave('informationobject', $newValue, array('scope' => 'default_template', 'createNew' => true, 'sourceCulture' => true));
     }
     if (null !== ($newValue = $form->getValue('actor'))) {
         $setting = QubitSetting::findAndSave('actor', $newValue, array('scope' => 'default_template', 'createNew' => true, 'sourceCulture' => true));
     }
     if (null !== ($newValue = $form->getValue('repository'))) {
         $setting = QubitSetting::findAndSave('repository', $newValue, array('scope' => 'default_template', 'createNew' => true, 'sourceCulture' => true));
     }
     return $this;
 }