4 include_once
"./Services/Object/classes/class.ilObjectGUI.php" ;
5 include_once
"./Services/Administration/classes/class.ilAdministrationSettingsFormHandler.php" ;
21 public function __construct($a_data, $a_id, $a_call_by_reference =
true, $a_prepare_output =
true)
24 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
26 $this->lng->loadLanguageModule(
"grp");
27 $this->lng->loadLanguageModule(
'mem');
30 abstract protected function getType();
40 $ilAccess = $DIC[
'ilAccess'];
43 $next_class = $this->ctrl->getNextClass($this);
44 $cmd = $this->ctrl->getCmd();
48 if (!$ilAccess->checkAccess(
"read",
"", $this->object->getRefId())) {
49 $ilErr->raiseError($this->lng->txt(
"no_permission"),
$ilErr->WARNING);
52 switch ($next_class) {
53 case 'ilpermissiongui':
54 $this->tabs_gui->setTabActive(
"perm_settings");
55 include_once
"Services/AccessControl/classes/class.ilPermissionGUI.php";
57 $this->ctrl->forwardCommand($perm_gui);
60 case 'ilmemberexportsettingsgui':
61 $this->
setSubTabs(
'settings', self::SUB_TAB_PRINT_VIEW);
62 include_once
'./Services/Membership/classes/Export/class.ilMemberExportSettingsGUI.php';
64 $this->ctrl->forwardCommand($settings_gui);
67 case 'iluseractionadmingui':
68 include_once(
"./Services/User/Actions/classes/class.ilUserActionAdminGUI.php");
69 include_once(
"./Services/User/Gallery/classes/class.ilGalleryUserActionContext.php");
73 $this->ctrl->forwardCommand($gui);
77 if (!$cmd || $cmd ==
"view") {
78 $cmd =
"editSettings";
90 $rbacsystem = $DIC[
'rbacsystem'];
92 if ($rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
93 $this->tabs_gui->addTarget(
95 $this->ctrl->getLinkTarget($this,
"editSettings"),
96 array(
"editSettings",
"view")
100 if ($rbacsystem->checkAccess(
"edit_permission", $this->object->getRefId())) {
101 $this->tabs_gui->addTarget(
103 $this->ctrl->getLinkTargetByClass(
"ilpermissiongui",
"perm"),
112 $this->
setSubTabs(
'settings', self::SUB_TAB_GENERAL_SETTINGS);
113 $this->tabs_gui->setTabActive(
'settings');
118 $this->tpl->setContent($a_form->getHTML());
131 if (
$form->checkInput()) {
135 (
int)
$form->getInput(
'mail_member_notification')
140 (
int)
$form->getInput(
'mail_admin_notification')
143 ilUtil::sendSuccess($this->lng->txt(
"settings_saved"),
true);
144 $this->ctrl->redirect($this,
"editSettings");
148 $form->setValuesByPost();
157 $ilAccess = $DIC[
'ilAccess'];
159 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
161 $form->setFormAction($this->ctrl->getFormAction($this,
"saveSettings"));
162 $form->setTitle($this->lng->txt(
"settings"));
166 $this->lng->loadLanguageModule(
"mail");
176 $sec->setTitle($this->lng->txt(
'mail_notification_membership_section'));
177 $form->addItem($sec);
180 $cn =
new ilCheckboxInputGUI($this->lng->txt(
'mail_enable_' . $this->getParentObjType() .
'_member_notification'),
'mail_member_notification');
181 $cn->setInfo($this->lng->txt(
'mail_enable_' . $this->getParentObjType() .
'_member_notification_info'));
182 $cn->setChecked(
$ilSetting->get(
'mail_' . $this->getParentObjType() .
'_member_notification',
true));
186 $an =
new ilCheckboxInputGUI($this->lng->txt(
'mail_enable_' . $this->getParentObjType() .
'_admin_notification'),
'mail_admin_notification');
187 $an->setInfo($this->lng->txt(
'mail_enable_' . $this->getParentObjType() .
'_admin_notification_info'));
188 $an->setChecked(
$ilSetting->get(
'mail_' . $this->getParentObjType() .
'_admin_notification',
true));
191 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId())) {
192 $form->addCommandButton(
"saveSettings", $this->lng->txt(
"save"));
193 $form->addCommandButton(
"view", $this->lng->txt(
"cancel"));
205 switch ($a_form_id) {
208 $this->lng->loadLanguageModule(
"mail");
215 return array(array(
"editSettings", $fields));
235 if ($a_main_tab ==
'settings') {
236 $GLOBALS[
'DIC'][
'ilTabs']->addSubTab(
237 self::SUB_TAB_GENERAL_SETTINGS,
238 $GLOBALS[
'DIC'][
'lng']->txt(
'mem_settings_tab_' . self::SUB_TAB_GENERAL_SETTINGS),
239 $GLOBALS[
'DIC'][
'ilCtrl']->getLinkTarget($this,
'editSettings')
241 $GLOBALS[
'DIC'][
'ilTabs']->addSubTab(
242 self::SUB_TAB_PRINT_VIEW,
243 $GLOBALS[
'DIC'][
'lng']->txt(
'mem_settings_tab_' . self::SUB_TAB_PRINT_VIEW),
244 $GLOBALS[
'DIC'][
'ilCtrl']->getLinkTargetByClass(
'ilMemberExportSettingsGUI',
'printViewSettings')
246 $GLOBALS[
'DIC'][
'ilTabs']->addSubTab(
248 $GLOBALS[
'DIC'][
'lng']->txt(
"mmbr_gallery_user_actions"),
249 $GLOBALS[
'DIC'][
'ilCtrl']->getLinkTargetByClass(
"iluseractionadmingui")
252 $GLOBALS[
'DIC'][
'ilTabs']->activateTab($a_main_tab);
253 $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab($a_active_tab);
setSubTabs($a_main_tab, $a_active_tab)
Set sub tabs.
User action administration GUI class.
Gallery context for user actions.
prepareOutput($a_show_subobjects=true)
prepare output
__construct($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
save(ilPropertyFormGUI $a_form)
if(isset($_POST['submit'])) $form
Class ilObjectGUI Basic methods of all Output classes.
addToExternalSettingsForm($a_form_id)
getAdministrationFormId()
Membership Administration Settings.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
const SUB_TAB_GENERAL_SETTINGS
addFieldsToForm(ilPropertyFormGUI $a_form)
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
editSettings(ilPropertyFormGUI $a_form=null)