4include_once 
"./Services/Object/classes/class.ilObjectGUI.php" ;
 
    5include_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');
 
   40                $next_class = $this->ctrl->getNextClass($this);
 
   41                $cmd = $this->ctrl->getCmd();
 
   45                if(!$ilAccess->checkAccess(
"read", 
"", $this->object->getRefId()))
 
   47                        $ilErr->raiseError($this->lng->txt(
"no_permission"), 
$ilErr->WARNING);
 
   52                        case 'ilpermissiongui':
 
   53                                $this->tabs_gui->setTabActive(
"perm_settings");
 
   54                                include_once 
"Services/AccessControl/classes/class.ilPermissionGUI.php";
 
   56                                $this->ctrl->forwardCommand($perm_gui);
 
   59                        case 'ilmemberexportsettingsgui':
 
   60                                $this->
setSubTabs(
'settings', self::SUB_TAB_PRINT_VIEW);
 
   61                                include_once 
'./Services/Membership/classes/Export/class.ilMemberExportSettingsGUI.php';
 
   63                                $this->ctrl->forwardCommand($settings_gui);
 
   69                                        $cmd = 
"editSettings";
 
   81                if ($rbacsystem->checkAccess(
"visible,read", $this->object->getRefId()))
 
   83                        $this->tabs_gui->addTarget(
"settings",
 
   84                                $this->ctrl->getLinkTarget($this, 
"editSettings"),
 
   85                                array(
"editSettings", 
"view"));
 
   88                if ($rbacsystem->checkAccess(
"edit_permission", $this->object->getRefId()))
 
   90                        $this->tabs_gui->addTarget(
"perm_settings",
 
   91                                $this->ctrl->getLinkTargetByClass(
"ilpermissiongui", 
"perm"),
 
   92                                array(), 
"ilpermissiongui");
 
   98                $this->
setSubTabs(
'settings', self::SUB_TAB_GENERAL_SETTINGS);
 
   99                $this->tabs_gui->setTabActive(
'settings');      
 
  105                $this->tpl->setContent($a_form->getHTML());
 
  116                if($form->checkInput())
 
  118                        if($this->
save($form))
 
  121                                        (
int)$form->getInput(
'mail_member_notification'));
 
  124                                        (
int)$form->getInput(
'mail_admin_notification'));
 
  127                                $this->ctrl->redirect($this, 
"editSettings");
 
  131                $form->setValuesByPost();
 
  139                include_once 
"Services/Form/classes/class.ilPropertyFormGUI.php";
 
  141                $form->setFormAction($this->ctrl->getFormAction($this, 
"saveSettings"));
 
  142                $form->setTitle($this->lng->txt(
"settings"));
 
  146                $this->lng->loadLanguageModule(
"mail");
 
  156                $sec->setTitle($this->lng->txt(
'mail_notification_membership_section'));
 
  157                $form->addItem($sec);
 
  160                $cn = 
new ilCheckboxInputGUI($this->lng->txt(
'mail_enable_'.$this->getParentObjType().
'_member_notification'), 
'mail_member_notification');
 
  161                $cn->setInfo($this->lng->txt(
'mail_enable_'.$this->getParentObjType().
'_member_notification_info'));
 
  162                $cn->setChecked(
$ilSetting->get(
'mail_'.$this->getParentObjType().
'_member_notification', 
true));
 
  166                $an = 
new ilCheckboxInputGUI($this->lng->txt(
'mail_enable_'.$this->getParentObjType().
'_admin_notification'), 
'mail_admin_notification');
 
  167                $an->setInfo($this->lng->txt(
'mail_enable_'.$this->getParentObjType().
'_admin_notification_info'));
 
  168                $an->setChecked(
$ilSetting->get(
'mail_'.$this->getParentObjType().
'_admin_notification', 
true));
 
  171                if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId()))
 
  173                        $form->addCommandButton(
"saveSettings", $this->lng->txt(
"save"));
 
  174                        $form->addCommandButton(
"view", $this->lng->txt(
"cancel"));
 
  188                                $this->lng->loadLanguageModule(
"mail");
 
  195                                return array(array(
"editSettings", $fields));                   
 
  216                if($a_main_tab == 
'settings')
 
  219                                self::SUB_TAB_GENERAL_SETTINGS,
 
  220                                $GLOBALS[
'lng']->txt(
'mem_settings_tab_'.self::SUB_TAB_GENERAL_SETTINGS),
 
  221                                $GLOBALS[
'ilCtrl']->getLinkTarget($this,
'editSettings')
 
  224                                self::SUB_TAB_PRINT_VIEW,
 
  225                                $GLOBALS[
'lng']->txt(
'mem_settings_tab_'.self::SUB_TAB_PRINT_VIEW),
 
  226                                $GLOBALS[
'ilCtrl']->getLinkTargetByClass(
'ilMemberExportSettingsGUI', 
'printViewSettings')
 
  229                        $GLOBALS[
'ilTabs']->activateTab($a_main_tab);
 
  230                        $GLOBALS[
'ilTabs']->activateSubTab($a_active_tab);
 
An exception for terminatinating execution or to throw for unit testing.
Membership Administration Settings.
addFieldsToForm(ilPropertyFormGUI $a_form)
save(ilPropertyFormGUI $a_form)
executeCommand()
execute command
__construct($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
const SUB_TAB_GENERAL_SETTINGS
getAdminTabs()
administration tabs show only permissions and trash folder
editSettings(ilPropertyFormGUI $a_form=null)
setSubTabs($a_main_tab, $a_active_tab)
Set sub tabs.
getAdministrationFormId()
addToExternalSettingsForm($a_form_id)
Class ilObjectGUI Basic methods of all Output classes.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
prepareOutput($a_show_subobjects=true)
prepare output
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.