ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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)
 
- 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 
)

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

References ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\lng().

33  {
34  parent::__construct($gui_object, $object, $a_options);
35  $this->lng->loadLanguageModule('sess');
36  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ setFormValues()

ilSessionMembershipRegistrationSettingsGUI::setFormValues ( ilPropertyFormGUI  $form)

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

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

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)
+ Here is the call graph for this function:

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