4 include_once
'./Services/Membership/classes/class.ilMembershipRegistrationSettings.php';
30 $this->options = $a_options;
78 $opt_dir->setInfo($this->
txt(
'reg_direct_info'));
79 $reg_type->addOption($opt_dir);
85 $pass->setInfo($this->
txt(
'reg_password_info'));
86 #$pass->setValue($this->object->getPassword()); 88 $pass->setMaxLength(32);
89 $opt_pass->addSubItem(
$pass);
90 $reg_type->addOption($opt_pass);
96 $reg_type->addOption($opt_req);
101 $reg_type->addOption($opt_deact);
110 $lim =
new ilCheckboxInputGUI($this->
txt(
'reg_max_members_short'),
'registration_membership_limited');
112 #$lim->setOptionTitle($this->lng->txt('reg_grp_max_members')); 113 #$lim->setChecked($this->object->isMembershipLimited()); 123 $max =
new ilTextInputGUI($this->
txt(
'reg_max_members'),
'registration_max_members');
124 #$max->setValue($this->object->getMaxMembers() ? $this->object->getMaxMembers() : ''); 127 $max->setMaxLength(4);
128 $max->setInfo($this->
txt(
'reg_max_members_info'));
129 $lim->addSubItem($max);
143 $wait->addOption($option);
146 $option->setInfo($this->
txt(
'reg_waiting_list_no_autofill_info'));
147 $wait->addOption($option);
150 $option->setInfo($this->
txt(
'reg_waiting_list_autofill_info'));
151 $wait->addOption($option);
153 $lim->addSubItem($wait);
164 protected function txt($a_lang_key)
167 return $GLOBALS[
'lng']->txt($prefix.
'_'.$a_lang_key);
This class represents an option in a radio group.
Class ilObject Basic functions for all objects.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
txt($a_lang_key)
Translate type specific.
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.