コード例 #1
0
 function showGeneralSettingsObject($form = null)
 {
     require_once 'Services/Notifications/classes/class.ilNotificationAdminSettingsForm.php';
     if ($form == null) {
         $form = ilNotificationAdminSettingsForm::getGeneralSettingsForm();
         $settings = new ilSetting('notifications');
         /**
          * @todo dirty...
          * 
          * push all notifiation settings to the form to enable custom
          * settings per channel
          */
         $form->setValuesByArray(array_merge($settings->getAll(), $form->restored_values));
     }
     $form->setFormAction($this->ctrl->getFormAction($this, 'saveGeneralSettings'));
     $form->addCommandButton('saveGeneralSettings', 'save');
     $form->addCommandButton('showGeneralSettings', 'cancel');
     $this->tpl->setContent($form->getHtml());
 }
コード例 #2
0
 /**
  * read all values from settings table
  * @access	public
  * @return	array	keyword/value pairs
  */
 function getAllSettings()
 {
     include_once './Services/Administration/classes/class.ilSetting.php';
     $set = new ilSetting("common", true);
     return $set->getAll();
 }
コード例 #3
0
 public function apacheAuthSettingsObject($form = false)
 {
     global $ilDB, $tpl;
     $this->tabs_gui->setTabActive("apache_auth_settings");
     //$this->setSubTabs("authSettings");
     //$this->tabs_gui->setSubTabActive("apache_auth_settings");
     if (!$form) {
         $form = $this->getApacheAuthSettingsForm();
         $settings = new ilSetting('apache_auth');
         $settingsMap = $settings->getAll();
         $path = ILIAS_DATA_DIR . '/' . CLIENT_ID . '/apache_auth_allowed_domains.txt';
         if (file_exists($path) && is_readable($path)) {
             $settingsMap['apache_auth_domains'] = file_get_contents($path);
         }
         $form->setValuesByArray($settingsMap);
     }
     $tpl->setVariable('ADM_CONTENT', $form->getHtml());
 }