19 declare(strict_types=1);
    31     public function __construct($a_data, 
int $a_id, 
bool $a_call_by_reference = 
true, 
bool $a_prepare_output = 
true)
    36         $this->
lng->loadLanguageModule(
"grp");
    37         $this->
lng->loadLanguageModule(
'mem');
    40     abstract protected function getType(): string;
    54         $next_class = $this->
ctrl->getNextClass($this);
    55         $cmd = $this->
ctrl->getCmd();
    59         if (!$this->rbac_system->checkAccess(
"visible,read", $this->object->getRefId())) {
    60             $this->error->raiseError($this->
lng->txt(
"no_permission"), $this->error->WARNING);
    63         switch ($next_class) {
    64             case 'ilpermissiongui':
    65                 $this->tabs_gui->setTabActive(
"perm_settings");
    67                 $this->
ctrl->forwardCommand($perm_gui);
    70             case 'ilmemberexportsettingsgui':
    71                 $this->
setSubTabs(
'settings', self::SUB_TAB_PRINT_VIEW);
    73                 $this->
ctrl->forwardCommand($settings_gui);
    76             case 'iluseractionadmingui':
    80                 $this->
ctrl->forwardCommand($gui);
    84                 if (!$cmd || $cmd === 
"view") {
    85                     $cmd = 
"editSettings";
    94         if ($this->rbac_system->checkAccess(
"visible,read", $this->object->getRefId())) {
    95             $this->tabs_gui->addTarget(
    97                 $this->
ctrl->getLinkTarget($this, 
"editSettings"),
    98                 array(
"editSettings", 
"view")
   102         if ($this->rbac_system->checkAccess(
"edit_permission", $this->object->getRefId())) {
   103             $this->tabs_gui->addTarget(
   105                 $this->
ctrl->getLinkTargetByClass(
"ilpermissiongui", 
"perm"),
   114         $this->
setSubTabs(
'settings', self::SUB_TAB_GENERAL_SETTINGS);
   115         $this->tabs_gui->setTabActive(
'settings');
   117         if ($a_form === null) {
   120         $this->tpl->setContent($a_form->getHTML());
   128             if ($this->
save($form)) {
   131                     (
string) $form->
getInput(
'mail_member_notification')
   136                     (
string) $form->
getInput(
'mail_admin_notification')
   141                 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"settings_saved"), 
true);
   142                 $this->
ctrl->redirect($this, 
"editSettings");
   157         $this->
lng->loadLanguageModule(
"mail");
   166         $sec->setTitle($this->
lng->txt(
'mail_notification_membership_section'));
   171             $this->
lng->txt(
'mail_enable_' . $this->getParentObjType() . 
'_member_notification'),
   172             'mail_member_notification'   174         $cn->setInfo($this->
lng->txt(
'mail_enable_' . $this->getParentObjType() . 
'_member_notification_info'));
   175         $cn->setChecked((
bool) $this->
settings->get(
'mail_' . $this->getParentObjType() . 
'_member_notification', 
'1'));
   180             $this->
lng->txt(
'mail_enable_' . $this->getParentObjType() . 
'_admin_notification'),
   181             'mail_admin_notification'   183         $an->setInfo($this->
lng->txt(
'mail_enable_' . $this->getParentObjType() . 
'_admin_notification_info'));
   184         $an->setChecked((
bool) $this->
settings->get(
'mail_' . $this->getParentObjType() . 
'_admin_notification', 
'1'));
   187         if ($this->
access->checkAccess(
"write", 
"", $this->object->getRefId())) {
   196         switch ($a_form_id) {
   199                 $this->
lng->loadLanguageModule(
"mail");
   202                     'mail_enable_' . $this->
getParentObjType() . 
'_member_notification' => array(
   203                         $this->
settings->get(
'mail_' . $this->getParentObjType() . 
'_member_notification', 
'1'),
   206                     'mail_enable_' . $this->
getParentObjType() . 
'_admin_notification' => array(
   207                         $this->
settings->get(
'mail_' . $this->getParentObjType() . 
'_admin_notification', 
'1'),
   230     protected function setSubTabs(
string $a_main_tab, 
string $a_active_tab): void
   232         if ($a_main_tab === 
'settings') {
   233             $this->tabs_gui->addSubTab(
   234                 self::SUB_TAB_GENERAL_SETTINGS,
   235                 $this->
lng->txt(
'mem_settings_tab_' . self::SUB_TAB_GENERAL_SETTINGS),
   236                 $this->
ctrl->getLinkTarget($this, 
'editSettings')
   238             $this->tabs_gui->addSubTab(
   239                 self::SUB_TAB_PRINT_VIEW,
   240                 $this->
lng->txt(
'mem_settings_tab_' . self::SUB_TAB_PRINT_VIEW),
   241                 $this->
ctrl->getLinkTargetByClass(
'ilMemberExportSettingsGUI', 
'printViewSettings')
   243             $this->tabs_gui->addSubTab(
   245                 $this->
lng->txt(
"mmbr_gallery_user_actions"),
   246                 $this->
ctrl->getLinkTargetByClass(
"iluseractionadmingui")
   249             $this->tabs_gui->activateTab($a_main_tab);
   250             $this->tabs_gui->activateSubTab($a_active_tab);
 
setActionContext(ilUserActionContext $a_val=null)
 
setSubTabs(string $a_main_tab, string $a_active_tab)
 
User action administration GUI class. 
 
prepareOutput(bool $show_sub_objects=true)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
addToExternalSettingsForm(int $a_form_id)
 
addChildContentsTo(ilPropertyFormGUI $form)
 
save(ilPropertyFormGUI $a_form)
 
Class ilObjectGUI Basic methods of all Output classes. 
 
getAdministrationFormId()
 
__construct(Container $dic, ilPlugin $plugin)
 
getChildSettingsInfo(int $a_form_id)
 
Membership Administration Settings. 
 
const SUB_TAB_GENERAL_SETTINGS
 
addFieldsToForm(ilPropertyFormGUI $a_form)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
__construct($a_data, int $a_id, bool $a_call_by_reference=true, bool $a_prepare_output=true)
 
editSettings(?ilPropertyFormGUI $a_form=null)
 
saveChildSettings(ilPropertyFormGUI $form)