ILIAS  release_8 Revision v8.24
ilSessionMembershipRegistrationSettingsGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Registration settings

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

Definition at line 31 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 39 of file class.ilSessionMembershipRegistrationSettingsGUI.php.

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