27 public function __construct($a_parent_gui, $a_obj_id, $a_modes)
29 $this->gui = $a_parent_gui;
30 $this->modes = $a_modes;
31 $this->obj_id = $a_obj_id;
44 $next_class = $ilCtrl->getNextClass($this);
45 $cmd = $ilCtrl->getCmd(
'editSettings');
64 if(in_array(self::CALENDAR_VISIBILITY, $services))
66 include_once
'./Services/Calendar/classes/class.ilObjCalendarSettings.php';
72 include_once
'./Services/Calendar/classes/class.ilObjCalendarSettings.php';
74 $cal->setOptionTitle(
$GLOBALS[
'lng']->txt(
'obj_tool_setting_calendar'));
78 if(in_array(self::NEWS_VISIBILITY, $services))
80 if($ilSetting->get(
'block_activated_news'))
87 self::NEWS_VISIBILITY,
88 $ilSetting->get(
'block_activated_news',
true)
90 $news->setOptionTitle(
$GLOBALS[
'lng']->txt(
'obj_tool_setting_news'));
106 if(in_array(self::CALENDAR_VISIBILITY, $services))
108 include_once
'./Services/Calendar/classes/class.ilCalendarSettings.php';
111 include_once
'./Services/Container/classes/class.ilContainer.php';
115 if(in_array(self::NEWS_VISIBILITY, $services))
117 include_once
'./Services/Container/classes/class.ilContainer.php';
145 $GLOBALS[
'ilCtrl']->returnToParent($this);
156 $form = $this->initSettingsForm();
158 $GLOBALS[
'tpl']->setContent($form->getHTML());
167 $form = $this->initSettingsForm();
168 if($form->checkInput())
170 include_once
'./Services/Calendar/classes/class.ilCalendarSettings.php';
179 $GLOBALS[
'ilCtrl']->redirect($this);
183 $form->setValuesByPost();
194 return in_array($a_mode, $this->
getModes());