4 include_once
'./Services/Membership/classes/class.ilMembershipRegistrationSettings.php';
30 $this->options = $a_options;
77 $opt_dir->setInfo($this->
txt(
'reg_direct_info'));
78 $reg_type->addOption($opt_dir);
82 $this->
txt(
'reg_cannot_participate'),
83 'show_cannot_participate_direct' 85 $cannot_participate->setInfo($this->
txt(
'reg_cannot_participate_info'));
86 $cannot_participate->setValue(1);
87 $opt_dir->addSubItem($cannot_participate);
92 $pass->setInfo($this->
txt(
'reg_password_info'));
93 #$pass->setValue($this->object->getPassword()); 95 $pass->setMaxLength(32);
96 $opt_pass->addSubItem(
$pass);
97 $reg_type->addOption($opt_pass);
102 $reg_type->addOption($opt_req);
106 $this->
txt(
'reg_cannot_participate'),
107 'show_cannot_participate_request' 109 $cannot_participate->setInfo($this->
txt(
'reg_cannot_participate_info'));
110 $cannot_participate->setValue(1);
111 $opt_req->addSubItem($cannot_participate);
116 $this->
txt(
'reg_tutor'),
118 $this->
txt(
'reg_tutor_info')
120 $reg_type->addOption($opt_tutor);
124 $reg_type->addOption($opt_deact);
132 $lim =
new ilCheckboxInputGUI($this->
txt(
'reg_max_members_short'),
'registration_membership_limited');
134 #$lim->setOptionTitle($this->lng->txt('reg_grp_max_members')); 135 #$lim->setChecked($this->object->isMembershipLimited()); 145 $max =
new ilTextInputGUI($this->
txt(
'reg_max_members'),
'registration_max_members');
146 #$max->setValue($this->object->getMaxMembers() ? $this->object->getMaxMembers() : ''); 149 $max->setMaxLength(4);
150 $max->setInfo($this->
txt(
'reg_max_members_info'));
151 $lim->addSubItem($max);
165 $wait->addOption($option);
168 $option->setInfo($this->
txt(
'reg_waiting_list_no_autofill_info'));
169 $wait->addOption($option);
172 $option->setInfo($this->
txt(
'reg_waiting_list_autofill_info'));
173 $wait->addOption($option);
175 $lim->addSubItem($wait);
180 $notificationCheckbox =
new ilCheckboxInputGUI($this->
txt(
'registration_notification'),
'registration_notification');
181 $notificationCheckbox->setInfo($this->
txt(
'registration_notification_info'));
184 $notificationOption->setRequired(
true);
187 $inheritOption->setInfo($this->
txt(
'notification_option_inherit_info'));
188 $notificationOption->addOption($inheritOption);
191 $manualOption->setInfo($this->
txt(
'notification_option_manual_info'));
192 $notificationOption->addOption($manualOption);
194 $notificationCheckbox->addSubItem($notificationOption);
195 $form->
addItem($notificationCheckbox);
203 protected function txt($a_lang_key)
206 return $GLOBALS[
'DIC'][
'lng']->txt($prefix .
'_' . $a_lang_key);
This class represents an option in a radio group.
const NOTIFICATION_INHERIT_OPTION
txt($a_lang_key)
Translate type specific.
getCurrentObject()
Get current object.
Class ilObjectGUI Basic methods of all Output classes.
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
const REGISTRATION_LIMITED_USERS
getCurrentGUI()
Get gui object.
__construct(ilObjectGUI $gui_object, ilObject $object, $a_options)
Constructor.
const NOTIFICATION_MANUAL_OPTION
addMembershipFormElements(ilPropertyFormGUI $form, $a_parent_post='')
Add membership form elements.
setFormValues(ilPropertyFormGUI $form)
Set form values.