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);
83 $pass->setInfo($this->
txt(
'reg_password_info'));
84 #$pass->setValue($this->object->getPassword()); 86 $pass->setMaxLength(32);
87 $opt_pass->addSubItem(
$pass);
88 $reg_type->addOption($opt_pass);
93 $reg_type->addOption($opt_req);
97 $reg_type->addOption($opt_deact);
105 $lim =
new ilCheckboxInputGUI($this->
txt(
'reg_max_members_short'),
'registration_membership_limited');
107 #$lim->setOptionTitle($this->lng->txt('reg_grp_max_members')); 108 #$lim->setChecked($this->object->isMembershipLimited()); 118 $max =
new ilTextInputGUI($this->
txt(
'reg_max_members'),
'registration_max_members');
119 #$max->setValue($this->object->getMaxMembers() ? $this->object->getMaxMembers() : ''); 122 $max->setMaxLength(4);
123 $max->setInfo($this->
txt(
'reg_max_members_info'));
124 $lim->addSubItem($max);
138 $wait->addOption($option);
141 $option->setInfo($this->
txt(
'reg_waiting_list_no_autofill_info'));
142 $wait->addOption($option);
145 $option->setInfo($this->
txt(
'reg_waiting_list_autofill_info'));
146 $wait->addOption($option);
148 $lim->addSubItem($wait);
159 protected function txt($a_lang_key)
162 return $GLOBALS[
'lng']->txt($prefix .
'_' . $a_lang_key);
This class represents an option in a radio group.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
txt($a_lang_key)
Translate type specific.
if(isset($_POST['submit'])) $form
getCurrentObject()
Get current object.
Class ilObjectGUI Basic methods of all Output classes.
This class represents a text property in a property form.
const REGISTRATION_LIMITED_USERS
Create styles array
The data for the language used.
getCurrentGUI()
Get gui object.
__construct(ilObjectGUI $gui_object, ilObject $object, $a_options)
Constructor.
addMembershipFormElements(ilPropertyFormGUI $form, $a_parent_post='')
Add membership form elements.
setFormValues(ilPropertyFormGUI $form)
Set form values.