4 include_once
"./Services/Object/classes/class.ilObjectGUI.php" ;
5 include_once
"./Services/Administration/classes/class.ilAdministrationSettingsFormHandler.php" ;
17 public function __construct($a_data, $a_id, $a_call_by_reference =
true, $a_prepare_output =
true)
22 $this->lng->loadLanguageModule(
"grp");
29 $next_class = $this->ctrl->getNextClass($this);
30 $cmd = $this->ctrl->getCmd();
34 if(!$ilAccess->checkAccess(
"read",
"", $this->object->getRefId()))
36 $ilErr->raiseError($this->lng->txt(
"no_permission"), $ilErr->WARNING);
41 case 'ilpermissiongui':
42 $this->tabs_gui->setTabActive(
"perm_settings");
43 include_once
"Services/AccessControl/classes/class.ilPermissionGUI.php";
45 $this->ctrl->forwardCommand($perm_gui);
51 $cmd =
"editSettings";
63 if ($rbacsystem->checkAccess(
"visible,read", $this->object->getRefId()))
65 $this->tabs_gui->addTarget(
"settings",
66 $this->ctrl->getLinkTarget($this,
"editSettings"),
67 array(
"editSettings",
"view"));
70 if ($rbacsystem->checkAccess(
"edit_permission", $this->object->getRefId()))
72 $this->tabs_gui->addTarget(
"perm_settings",
73 $this->ctrl->getLinkTargetByClass(
"ilpermissiongui",
"perm"),
74 array(),
"ilpermissiongui");
80 $this->tabs_gui->setTabActive(
'settings');
86 $this->tpl->setContent($a_form->getHTML());
97 if($form->checkInput())
99 if($this->
save($form))
102 (
int)$form->getInput(
'mail_member_notification'));
105 $this->ctrl->redirect($this,
"editSettings");
109 $form->setValuesByPost();
117 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
119 $form->setFormAction($this->ctrl->getFormAction($this,
"saveSettings"));
120 $form->setTitle($this->lng->txt(
"settings"));
124 $this->lng->loadLanguageModule(
"mail");
127 $cn =
new ilCheckboxInputGUI($this->lng->txt(
'mail_enable_'.$this->getParentObjType().
'_member_notification'),
'mail_member_notification');
128 $cn->
setInfo($this->lng->txt(
'mail_enable_'.$this->getParentObjType().
'_member_notification_info'));
129 $cn->setChecked($ilSetting->get(
'mail_'.$this->getParentObjType().
'_member_notification',
true));
138 $form->addCommandButton(
"saveSettings", $this->lng->txt(
"save"));
139 $form->addCommandButton(
"view", $this->lng->txt(
"cancel"));
152 $this->lng->loadLanguageModule(
"mail");
156 return array(array(
"editSettings", $fields));
170 abstract protected function getType();