/**
  * Save settings.
  */
 function saveSettings()
 {
     global $ilCtrl, $ilUser;
     $this->initSettingsForm();
     if ($this->settings_form->checkInput()) {
         $news_set = new ilSetting("news");
         $enable_internal_rss = $news_set->get("enable_rss_for_internal");
         if ($enable_internal_rss) {
             ilBlockSetting::_write($this->getBlockType(), "public_notifications", $_POST["notifications_public"], 0, $this->block_id);
             ilBlockSetting::_write($this->getBlockType(), "public_feed", $_POST["notifications_public_feed"], 0, $this->block_id);
             ilBlockSetting::_write($this->getBlockType(), "default_visibility", $_POST["default_visibility"], 0, $this->block_id);
         }
         if ($this->getProperty("hide_news_block_option")) {
             ilBlockSetting::_write($this->getBlockType(), "hide_news_block", $_POST["hide_news_block"], 0, $this->block_id);
             ilBlockSetting::_write($this->getBlockType(), "hide_news_per_date", $_POST["hide_news_per_date"], 0, $this->block_id);
             // hide date
             $hd = $this->settings_form->getInput("hide_news_date");
             $hide_date = new ilDateTime($hd["date"] . " " . $hd["time"], IL_CAL_DATETIME, $ilUser->getTimeZone());
             ilBlockSetting::_write($this->getBlockType(), "hide_news_date", $hide_date->get(IL_CAL_DATETIME), 0, $this->block_id);
         }
         include_once "./Services/News/classes/class.ilNewsCache.php";
         $cache = new ilNewsCache();
         $cache->deleteEntry($ilUser->getId() . ":" . $_GET["ref_id"]);
         $ilCtrl->returnToParent($this);
     } else {
         $this->settings_form->setValuesByPost();
         return $this->settings_form->getHtml();
     }
 }
 /**
  * Save settings.
  */
 function saveSettings()
 {
     global $ilCtrl, $ilUser;
     $news_set = new ilSetting("news");
     $enable_internal_rss = $news_set->get("enable_rss_for_internal");
     ilBlockSetting::_write($this->getBlockType(), "news_pd_period", $_POST["news_pd_period"], $ilUser->getId(), $this->block_id);
     include_once "./Services/News/classes/class.ilNewsCache.php";
     $cache = new ilNewsCache();
     $cache->deleteEntry($ilUser->getId() . ":0");
     $ilCtrl->returnToParent($this);
 }