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 $next_class = $this->ctrl->getNextClass($this);
41 $cmd = $this->ctrl->getCmd();
45 if (!$ilAccess->checkAccess(
"read",
"", $this->object->getRefId())) {
46 $ilErr->raiseError($this->lng->txt(
"no_permission"), $ilErr->WARNING);
49 switch ($next_class) {
50 case 'ilpermissiongui':
51 $this->tabs_gui->setTabActive(
"perm_settings");
52 include_once
"Services/AccessControl/classes/class.ilPermissionGUI.php";
54 $this->ctrl->forwardCommand($perm_gui);
57 case 'ilmemberexportsettingsgui':
58 $this->
setSubTabs(
'settings', self::SUB_TAB_PRINT_VIEW);
59 include_once
'./Services/Membership/classes/Export/class.ilMemberExportSettingsGUI.php';
61 $this->ctrl->forwardCommand($settings_gui);
64 case 'iluseractionadmingui':
65 include_once(
"./Services/User/Actions/classes/class.ilUserActionAdminGUI.php");
66 include_once(
"./Services/User/Gallery/classes/class.ilGalleryUserActionContext.php");
70 $this->ctrl->forwardCommand($gui);
74 if (!$cmd || $cmd ==
"view") {
75 $cmd =
"editSettings";
87 if ($rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
88 $this->tabs_gui->addTarget(
90 $this->ctrl->getLinkTarget($this,
"editSettings"),
91 array(
"editSettings",
"view")
95 if ($rbacsystem->checkAccess(
"edit_permission", $this->object->getRefId())) {
96 $this->tabs_gui->addTarget(
98 $this->ctrl->getLinkTargetByClass(
"ilpermissiongui",
"perm"),
107 $this->
setSubTabs(
'settings', self::SUB_TAB_GENERAL_SETTINGS);
108 $this->tabs_gui->setTabActive(
'settings');
113 $this->tpl->setContent($a_form->getHTML());
124 if (
$form->checkInput()) {
128 (
int)
$form->getInput(
'mail_member_notification')
133 (
int)
$form->getInput(
'mail_admin_notification')
137 $this->ctrl->redirect($this,
"editSettings");
141 $form->setValuesByPost();
149 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
151 $form->setFormAction($this->ctrl->getFormAction($this,
"saveSettings"));
152 $form->setTitle($this->lng->txt(
"settings"));
156 $this->lng->loadLanguageModule(
"mail");
166 $sec->setTitle($this->lng->txt(
'mail_notification_membership_section'));
167 $form->addItem($sec);
170 $cn =
new ilCheckboxInputGUI($this->lng->txt(
'mail_enable_' . $this->getParentObjType() .
'_member_notification'),
'mail_member_notification');
171 $cn->setInfo($this->lng->txt(
'mail_enable_' . $this->getParentObjType() .
'_member_notification_info'));
172 $cn->setChecked($ilSetting->get(
'mail_' . $this->getParentObjType() .
'_member_notification',
true));
176 $an =
new ilCheckboxInputGUI($this->lng->txt(
'mail_enable_' . $this->getParentObjType() .
'_admin_notification'),
'mail_admin_notification');
177 $an->setInfo($this->lng->txt(
'mail_enable_' . $this->getParentObjType() .
'_admin_notification_info'));
178 $an->setChecked($ilSetting->get(
'mail_' . $this->getParentObjType() .
'_admin_notification',
true));
181 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId())) {
182 $form->addCommandButton(
"saveSettings", $this->lng->txt(
"save"));
183 $form->addCommandButton(
"view", $this->lng->txt(
"cancel"));
193 switch ($a_form_id) {
196 $this->lng->loadLanguageModule(
"mail");
223 if ($a_main_tab ==
'settings') {
225 self::SUB_TAB_GENERAL_SETTINGS,
226 $GLOBALS[
'lng']->txt(
'mem_settings_tab_' . self::SUB_TAB_GENERAL_SETTINGS),
227 $GLOBALS[
'ilCtrl']->getLinkTarget($this,
'editSettings')
230 self::SUB_TAB_PRINT_VIEW,
231 $GLOBALS[
'lng']->txt(
'mem_settings_tab_' . self::SUB_TAB_PRINT_VIEW),
232 $GLOBALS[
'ilCtrl']->getLinkTargetByClass(
'ilMemberExportSettingsGUI',
'printViewSettings')
236 $GLOBALS[
'lng']->txt(
"mmbr_gallery_user_actions"),
237 $GLOBALS[
'ilCtrl']->getLinkTargetByClass(
"iluseractionadmingui")
240 $GLOBALS[
'ilTabs']->activateTab($a_main_tab);
241 $GLOBALS[
'ilTabs']->activateSubTab($a_active_tab);
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
setSubTabs($a_main_tab, $a_active_tab)
Set sub tabs.
User action administration GUI class.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
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.
Create styles array
The data for the language used.
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)
editSettings(ilPropertyFormGUI $a_form=null)