ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilSessionMembershipRegistrationSettingsGUI Class Reference

Registration settings. More...

+ Inheritance diagram for ilSessionMembershipRegistrationSettingsGUI:
+ Collaboration diagram for ilSessionMembershipRegistrationSettingsGUI:

Public Member Functions

 __construct (ilObjectGUI $gui_object, ilObject $object, array $a_options)
 
 setFormValues (ilPropertyFormGUI $form)
 Set form values. More...
 
- Public Member Functions inherited from ilMembershipRegistrationSettingsGUI
 __construct (ilObjectGUI $gui_object, ilObject $object, array $a_options)
 
 setFormValues (ilPropertyFormGUI $form)
 Set form values. More...
 
 getCurrentObject ()
 
 getCurrentGUI ()
 
 getOptions ()
 
 addMembershipFormElements (ilPropertyFormGUI $form, string $a_parent_post='')
 

Additional Inherited Members

- Protected Member Functions inherited from ilMembershipRegistrationSettingsGUI
 txt (string $a_lang_key)
 Translate type specific. More...
 
- Protected Attributes inherited from ilMembershipRegistrationSettingsGUI
ilLanguage $lng
 

Detailed Description

Registration settings.

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

Definition at line 30 of file class.ilSessionMembershipRegistrationSettingsGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilSessionMembershipRegistrationSettingsGUI::__construct ( ilObjectGUI  $gui_object,
ilObject  $object,
array  $a_options 
)

Member Function Documentation

◆ setFormValues()

ilSessionMembershipRegistrationSettingsGUI::setFormValues ( ilPropertyFormGUI  $form)

Set form values.

Reimplemented from ilMembershipRegistrationSettingsGUI.

Definition at line 38 of file class.ilSessionMembershipRegistrationSettingsGUI.php.

38 : void
39 {
40 $form->getItemByPostVar('registration_type')->setValue((string) $this->getCurrentObject()->getRegistrationType());
41
42 if ($this->getCurrentObject()->isCannotParticipateOptionEnabled()) {
43 $form->getItemByPostVar('show_cannot_participate_direct')->setChecked(true);
44 $form->getItemByPostVar('show_cannot_participate_request')->setChecked(true);
45 }
46 $form->getItemByPostVar('registration_membership_limited')->setChecked((bool) $this->getCurrentObject()->isRegistrationUserLimitEnabled());
47
48 $notificationCheckBox = $form->getItemByPostVar('registration_notification');
49 $notificationCheckBox->setChecked($this->getCurrentObject()->isRegistrationNotificationEnabled());
50
51 $notificationOption = $form->getItemByPostVar('notification_option');
52 $notificationOption->setValue($this->getCurrentObject()->getRegistrationNotificationOption());
53 $form->getItemByPostVar('registration_max_members')->setValue(
54 $this->getCurrentObject()->getRegistrationMaxUsers() > 0 ?
55 (string) $this->getCurrentObject()->getRegistrationMaxUsers() : ""
56 );
57
58 $wait = 0;
59 if ($this->getCurrentObject()->hasWaitingListAutoFill()) {
60 $wait = 2;
61 } elseif ($this->getCurrentObject()->isRegistrationWaitingListEnabled()) {
62 $wait = 1;
63 }
64 $form->getItemByPostVar('waiting_list')->setValue((string) $wait);
65 }
getItemByPostVar(string $a_post_var)

References ilMembershipRegistrationSettingsGUI\getCurrentObject(), and ilPropertyFormGUI\getItemByPostVar().

+ Here is the call graph for this function:

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