37 public function __construct($a_parent_gui, $a_obj_id, $a_modes)
39 $this->gui = $a_parent_gui;
40 $this->modes = $a_modes;
41 $this->obj_id = $a_obj_id;
54 $next_class = $ilCtrl->getNextClass($this);
55 $cmd = $ilCtrl->getCmd(
'editSettings');
75 if(in_array(self::INFO_TAB_VISIBILITY, $services))
81 self::INFO_TAB_VISIBILITY,
85 $info->setInfo(
$GLOBALS[
'lng']->txt(
'obj_tool_setting_info_tab_info'));
90 if(in_array(self::CALENDAR_VISIBILITY, $services))
92 include_once
'./Services/Calendar/classes/class.ilObjCalendarSettings.php';
98 include_once
'./Services/Calendar/classes/class.ilObjCalendarSettings.php';
101 $cal->setInfo(
$GLOBALS[
'lng']->txt(
'obj_tool_setting_calendar_info'));
107 if(in_array(self::NEWS_VISIBILITY, $services))
109 if($ilSetting->get(
'block_activated_news'))
116 self::NEWS_VISIBILITY,
117 $ilSetting->get(
'block_activated_news',
true)
120 $news->setInfo(
$GLOBALS[
'lng']->txt(
'obj_tool_setting_news_info'));
127 include_once
'Services/Membership/classes/class.ilMembershipNotifications.php';
134 if(in_array(self::CUSTOM_METADATA, $services))
137 $md->setInfo(
$GLOBALS[
'lng']->txt(
'obj_tool_setting_custom_metadata_info'));
141 self::CUSTOM_METADATA,
148 if(in_array(self::TAG_CLOUD, $services))
151 if($tags_active->get(
"enable",
false))
154 $tag->setInfo(
$GLOBALS[
'lng']->txt(
'obj_tool_setting_tag_cloud_info'));
166 if(in_array(self::TAXONOMIES, $services))
179 if(in_array(self::AUTO_RATING_NEW_OBJECTS, $services))
181 $GLOBALS[
'lng']->loadLanguageModule(
"rating");
187 $rate->setInfo(
$GLOBALS[
'lng']->txt(
'rating_new_objects_auto_info'));
190 self::AUTO_RATING_NEW_OBJECTS,
208 if(in_array(self::INFO_TAB_VISIBILITY, $services))
210 include_once
'./Services/Container/classes/class.ilContainer.php';
215 if(in_array(self::CALENDAR_VISIBILITY, $services))
217 include_once
'./Services/Calendar/classes/class.ilCalendarSettings.php';
220 include_once
'./Services/Container/classes/class.ilContainer.php';
226 if(in_array(self::NEWS_VISIBILITY, $services))
228 include_once
'./Services/Container/classes/class.ilContainer.php';
235 include_once
"Services/Membership/classes/class.ilMembershipNotifications.php";
241 if(in_array(self::AUTO_RATING_NEW_OBJECTS, $services))
243 include_once
'./Services/Container/classes/class.ilContainer.php';
248 if(in_array(self::TAXONOMIES, $services))
250 include_once
'./Services/Container/classes/class.ilContainer.php';
255 if(in_array(self::TAG_CLOUD, $services))
257 include_once
'./Services/Container/classes/class.ilContainer.php';
262 if(in_array(self::CUSTOM_METADATA, $services))
264 include_once
'./Services/Container/classes/class.ilContainer.php';
292 $GLOBALS[
'ilCtrl']->returnToParent($this);
303 $form = $this->initSettingsForm();
305 $GLOBALS[
'tpl']->setContent($form->getHTML());
314 $form = $this->initSettingsForm();
315 if($form->checkInput())
317 include_once
'./Services/Calendar/classes/class.ilCalendarSettings.php';
326 $GLOBALS[
'ilCtrl']->redirect($this);
330 $form->setValuesByPost();
341 return in_array($a_mode, $this->
getModes());
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static _getInstance()
get singleton instance
executeCommand()
Control class handling.
const CALENDAR_VISIBILITY
isModeActive($a_mode)
Check if specific mode is active.
static lookupCalendarActivated($a_obj_id)
_writeContainerSetting($a_id, $a_keyword, $a_value)
updateToolSettings()
Update settings.
static _getAllReferences($a_id)
get all reference ids of object
__construct($a_parent_gui, $a_obj_id, $a_modes)
Constructor.
static addToSettingsForm($a_ref_id, ilPropertyFormGUI $a_form=null, ilFormPropertyGUI $a_input=null)
Add notification settings to form.
static updateServiceSettingsForm($a_obj_id, ilPropertyFormGUI $form, $services)
Update service settings.
static _lookupType($a_id, $a_reference=false)
lookup object type
const AUTO_RATING_NEW_OBJECTS
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
_lookupContainerSetting($a_id, $a_keyword, $a_default_value=NULL)
Lookup a container setting.
static initServiceSettingsForm($a_obj_id, ilPropertyFormGUI $form, $services)
Init service settings form.
const INFO_TAB_VISIBILITY
editSettings(ilPropertyFormGUI $form=null)
Edit tool settings (calendar, news, comments, ...)
GUI class for service settings (calendar, notes, comments)
$GLOBALS['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.
static importFromForm($a_ref_id, ilPropertyFormGUI $a_form=null)
Import notification settings from form.
getModes()
Get active modes.