ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilMembershipRegistrationSettingsGUI Class Reference

Registration settings. More...

+ Inheritance diagram for ilMembershipRegistrationSettingsGUI:
+ Collaboration diagram for ilMembershipRegistrationSettingsGUI:

Public Member Functions

 __construct (ilObjectGUI $gui_object, ilObject $object, $a_options)
 Constructor.
 setFormValues (ilPropertyFormGUI $form)
 Set form values.
 getCurrentObject ()
 Get current object.
 getCurrentGUI ()
 Get gui object.
 getOptions ()
 Get options.
 addMembershipFormElements (ilPropertyFormGUI $form, $a_parent_post= '')
 Add membership form elements.

Protected Member Functions

 txt ($a_lang_key)
 Translate type specific.

Private Attributes

 $object = null
 $gui_object = null
 $options = array()

Detailed Description

Registration settings.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 15 of file class.ilMembershipRegistrationSettingsGUI.php.

Constructor & Destructor Documentation

ilMembershipRegistrationSettingsGUI::__construct ( ilObjectGUI  $gui_object,
ilObject  $object,
  $a_options 
)

Constructor.

Parameters
ilObjectGUI$gui_object
ilObject$object

Reimplemented in ilSessionMembershipRegistrationSettingsGUI.

Definition at line 26 of file class.ilMembershipRegistrationSettingsGUI.php.

References $gui_object, and $object.

{
$this->gui_object = $gui_object;
$this->object = $object;
$this->options = $a_options;
}

Member Function Documentation

ilMembershipRegistrationSettingsGUI::addMembershipFormElements ( ilPropertyFormGUI  $form,
  $a_parent_post = '' 
)
final

Add membership form elements.

Parameters
ilPropertyFormGUI$form

Definition at line 69 of file class.ilMembershipRegistrationSettingsGUI.php.

References $GLOBALS, $pass, ilPropertyFormGUI\addItem(), getOptions(), ilMembershipRegistrationSettings\REGISTRATION_LIMITED_USERS, setFormValues(), txt(), ilMembershipRegistrationSettings\TYPE_DIRECT, ilMembershipRegistrationSettings\TYPE_NONE, ilMembershipRegistrationSettings\TYPE_PASSWORD, and ilMembershipRegistrationSettings\TYPE_REQUEST.

{
// Registration type
$reg_type = new ilRadioGroupInputGUI($this->txt('reg_type'),'registration_type');
//$reg_type->setValue($this->object->getRegistrationType());
{
$opt_dir = new ilRadioOption($this->txt('reg_direct'), ilMembershipRegistrationSettings::TYPE_DIRECT);#$this->lng->txt('grp_reg_direct_info'));
$reg_type->addOption($opt_dir);
}
{
$pass = new ilTextInputGUI($GLOBALS['lng']->txt("password"),'password');
$pass->setInfo($this->txt('reg_password_info'));
#$pass->setValue($this->object->getPassword());
$pass->setSize(10);
$pass->setMaxLength(32);
$opt_pass->addSubItem($pass);
$reg_type->addOption($opt_pass);
}
{
$opt_req = new ilRadioOption($this->txt('reg_request'), ilMembershipRegistrationSettings::TYPE_REQUEST,$this->txt('reg_request_info'));
$reg_type->addOption($opt_req);
}
{
$opt_deact = new ilRadioOption($this->txt('reg_disabled'),ilMembershipRegistrationSettings::TYPE_NONE,$this->txt('reg_disabled_info'));
$reg_type->addOption($opt_deact);
}
// Add to form
$form->addItem($reg_type);
{
// max member
$lim = new ilCheckboxInputGUI($this->txt('reg_max_members_short'),'registration_membership_limited');
$lim->setValue(1);
#$lim->setOptionTitle($this->lng->txt('reg_grp_max_members'));
#$lim->setChecked($this->object->isMembershipLimited());
$max = new ilTextInputGUI($this->txt('reg_max_members'),'registration_max_members');
#$max->setValue($this->object->getMaxMembers() ? $this->object->getMaxMembers() : '');
//$max->setTitle($this->lng->txt('members'));
$max->setSize(3);
$max->setMaxLength(4);
$max->setInfo($this->txt('reg_max_members_info'));
$lim->addSubItem($max);
$wait = new ilCheckboxInputGUI($this->txt('reg_waiting_list'),'waiting_list');
$wait->setValue(1);
//$wait->setOptionTitle($this->lng->txt('grp_waiting_list'));
$wait->setInfo($this->txt('reg_waiting_list_info'));
#$wait->setChecked($this->object->isWaitingListEnabled() ? true : false);
$lim->addSubItem($wait);
$form->addItem($lim);
}
$this->setFormValues($form);
}

+ Here is the call graph for this function:

ilMembershipRegistrationSettingsGUI::getCurrentGUI ( )

Get gui object.

Returns
ilObjectGUI

Definition at line 51 of file class.ilMembershipRegistrationSettingsGUI.php.

References $gui_object.

{
}
ilMembershipRegistrationSettingsGUI::getCurrentObject ( )

Get current object.

Returns
ilObject

Definition at line 42 of file class.ilMembershipRegistrationSettingsGUI.php.

References $object.

Referenced by ilSessionMembershipRegistrationSettingsGUI\setFormValues(), and txt().

{
return $this->object;
}

+ Here is the caller graph for this function:

ilMembershipRegistrationSettingsGUI::getOptions ( )

Get options.

Returns
array

Definition at line 60 of file class.ilMembershipRegistrationSettingsGUI.php.

References $options.

Referenced by addMembershipFormElements().

{
}

+ Here is the caller graph for this function:

ilMembershipRegistrationSettingsGUI::setFormValues ( ilPropertyFormGUI  $form)
abstract

Set form values.

Reimplemented in ilSessionMembershipRegistrationSettingsGUI.

Referenced by addMembershipFormElements().

+ Here is the caller graph for this function:

ilMembershipRegistrationSettingsGUI::txt (   $a_lang_key)
protected

Translate type specific.

Definition at line 138 of file class.ilMembershipRegistrationSettingsGUI.php.

References $GLOBALS, and getCurrentObject().

Referenced by addMembershipFormElements().

{
$prefix = $this->getCurrentObject()->getType();
return $GLOBALS['lng']->txt($prefix.'_'.$a_lang_key);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

ilMembershipRegistrationSettingsGUI::$gui_object = null
private

Definition at line 18 of file class.ilMembershipRegistrationSettingsGUI.php.

Referenced by __construct(), and getCurrentGUI().

ilMembershipRegistrationSettingsGUI::$object = null
private

Definition at line 17 of file class.ilMembershipRegistrationSettingsGUI.php.

Referenced by __construct(), and getCurrentObject().

ilMembershipRegistrationSettingsGUI::$options = array()
private

Definition at line 19 of file class.ilMembershipRegistrationSettingsGUI.php.

Referenced by getOptions().


The documentation for this class was generated from the following file: