3 declare(strict_types=1);
38 $this->
lng = $DIC->language();
41 $this->options = $a_options;
72 $this->
txt(
'reg_direct'),
75 $opt_dir->setInfo($this->
txt(
'reg_direct_info'));
76 $reg_type->addOption($opt_dir);
80 $this->
txt(
'reg_cannot_participate'),
81 'show_cannot_participate_direct' 83 $cannot_participate->setInfo($this->
txt(
'reg_cannot_participate_info'));
84 $cannot_participate->setValue(
"1");
85 $opt_dir->addSubItem($cannot_participate);
89 $this->
txt(
'reg_pass'),
93 $pass->setInfo($this->
txt(
'reg_password_info'));
94 #$pass->setValue($this->object->getPassword()); 96 $pass->setMaxLength(32);
97 $opt_pass->addSubItem($pass);
98 $reg_type->addOption($opt_pass);
103 $this->
txt(
'reg_request'),
105 $this->
txt(
'reg_request_info')
107 $reg_type->addOption($opt_req);
111 $this->
txt(
'reg_cannot_participate'),
112 'show_cannot_participate_request' 114 $cannot_participate->setInfo($this->
txt(
'reg_cannot_participate_info'));
115 $cannot_participate->setValue(
"1");
116 $opt_req->addSubItem($cannot_participate);
120 $this->
txt(
'reg_tutor'),
122 $this->
txt(
'reg_tutor_info')
124 $reg_type->addOption($opt_tutor);
128 $this->
txt(
'reg_disabled'),
130 $this->
txt(
'reg_disabled_info')
132 $reg_type->addOption($opt_deact);
140 $lim =
new ilCheckboxInputGUI($this->
txt(
'reg_max_members_short'),
'registration_membership_limited');
143 $max =
new ilTextInputGUI($this->
txt(
'reg_max_members'),
'registration_max_members');
144 #$max->setValue($this->object->getMaxMembers() ? $this->object->getMaxMembers() : ''); 147 $max->setMaxLength(4);
148 $max->setInfo($this->
txt(
'reg_max_members_info'));
149 $lim->addSubItem($max);
154 $wait->addOption($option);
156 $option =
new ilRadioOption($this->
txt(
'reg_waiting_list_no_autofill'),
"1");
157 $option->setInfo($this->
txt(
'reg_waiting_list_no_autofill_info'));
158 $wait->addOption($option);
161 $option->setInfo($this->
txt(
'reg_waiting_list_autofill_info'));
162 $wait->addOption($option);
164 $lim->addSubItem($wait);
170 $this->
txt(
'registration_notification'),
171 'registration_notification' 173 $notificationCheckbox->setInfo($this->
txt(
'registration_notification_info'));
176 $notificationOption->setRequired(
true);
182 $inheritOption->setInfo($this->
txt(
'notification_option_inherit_info'));
183 $notificationOption->addOption($inheritOption);
189 $manualOption->setInfo($this->
txt(
'notification_option_manual_info'));
190 $notificationOption->addOption($manualOption);
192 $notificationCheckbox->addSubItem($notificationOption);
193 $form->
addItem($notificationCheckbox);
201 protected function txt(
string $a_lang_key): string
204 return $this->
lng->txt($prefix .
'_' . $a_lang_key);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const NOTIFICATION_INHERIT_OPTION
__construct(ilObjectGUI $gui_object, ilObject $object, array $a_options)
addMembershipFormElements(ilPropertyFormGUI $form, string $a_parent_post='')
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilObjectGUI Basic methods of all Output classes.
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
const REGISTRATION_LIMITED_USERS
txt(string $a_lang_key)
Translate type specific.
const NOTIFICATION_MANUAL_OPTION
setFormValues(ilPropertyFormGUI $form)
Set form values.