31 public function __construct($a_parent_gui, $a_obj_id, $a_modes)
33 $this->gui = $a_parent_gui;
34 $this->modes = $a_modes;
35 $this->obj_id = $a_obj_id;
48 $next_class = $ilCtrl->getNextClass($this);
49 $cmd = $ilCtrl->getCmd(
'editSettings');
69 if(in_array(self::INFO_TAB_VISIBILITY, $services))
75 self::INFO_TAB_VISIBILITY,
79 $info->setInfo(
$GLOBALS[
'lng']->txt(
'obj_tool_setting_info_tab_info'));
84 if(in_array(self::CALENDAR_VISIBILITY, $services))
86 include_once
'./Services/Calendar/classes/class.ilObjCalendarSettings.php';
92 include_once
'./Services/Calendar/classes/class.ilObjCalendarSettings.php';
95 $cal->setInfo(
$GLOBALS[
'lng']->txt(
'obj_tool_setting_calendar_info'));
101 if(in_array(self::NEWS_VISIBILITY, $services))
103 if($ilSetting->get(
'block_activated_news'))
110 self::NEWS_VISIBILITY,
111 $ilSetting->get(
'block_activated_news',
true)
114 $news->setInfo(
$GLOBALS[
'lng']->txt(
'obj_tool_setting_news_info'));
120 if(in_array(self::TAG_CLOUD, $services))
123 if($tags_active->get(
"enable",
false))
126 $tag->setInfo(
$GLOBALS[
'lng']->txt(
'obj_tool_setting_tag_cloud_info'));
138 if(in_array(self::TAXONOMIES, $services))
151 if(in_array(self::AUTO_RATING_NEW_OBJECTS, $services))
153 $GLOBALS[
'lng']->loadLanguageModule(
"rating");
159 $rate->setInfo(
$GLOBALS[
'lng']->txt(
'rating_new_objects_auto_info'));
162 self::AUTO_RATING_NEW_OBJECTS,
180 if(in_array(self::INFO_TAB_VISIBILITY, $services))
182 include_once
'./Services/Container/classes/class.ilContainer.php';
187 if(in_array(self::CALENDAR_VISIBILITY, $services))
189 include_once
'./Services/Calendar/classes/class.ilCalendarSettings.php';
192 include_once
'./Services/Container/classes/class.ilContainer.php';
198 if(in_array(self::NEWS_VISIBILITY, $services))
200 include_once
'./Services/Container/classes/class.ilContainer.php';
205 if(in_array(self::AUTO_RATING_NEW_OBJECTS, $services))
207 include_once
'./Services/Container/classes/class.ilContainer.php';
212 if(in_array(self::TAXONOMIES, $services))
214 include_once
'./Services/Container/classes/class.ilContainer.php';
219 if(in_array(self::TAG_CLOUD, $services))
221 include_once
'./Services/Container/classes/class.ilContainer.php';
249 $GLOBALS[
'ilCtrl']->returnToParent($this);
260 $form = $this->initSettingsForm();
262 $GLOBALS[
'tpl']->setContent($form->getHTML());
271 $form = $this->initSettingsForm();
272 if($form->checkInput())
274 include_once
'./Services/Calendar/classes/class.ilCalendarSettings.php';
283 $GLOBALS[
'ilCtrl']->redirect($this);
287 $form->setValuesByPost();
298 return in_array($a_mode, $this->
getModes());