public function save()
 {
     global $tpl, $ilCtrl;
     $this->initConfigurationForm();
     if ($this->form->checkInput()) {
         // Save Checkbox Values
         foreach ($this->fields as $key => $item) {
             $this->object->setValue($key, $this->form->getInput($key));
             if (is_array($item["subelements"])) {
                 foreach ($item["subelements"] as $subkey => $subitem) {
                     $this->object->setValue($key . "_" . $subkey, $this->form->getInput($key . "_" . $subkey));
                 }
             }
         }
         $ilCtrl->redirect($this, "configure");
     } else {
         $this->form->setValuesByPost();
         $tpl->setContent($this->form->getHtml());
     }
 }
Ejemplo n.º 2
0
 /**
  * @param $key
  * @param $value
  *
  * @throws ilCloudPluginConfigException
  */
 public function setValue($key, $value)
 {
     unset(self::$value_cache[$key]);
     parent::setValue($key, $value);
     // TODO: Change the autogenerated stub
 }