ILIAS  release_7 Revision v7.30-3-g800a261c036
ilSessionMembershipRegistrationSettingsGUI Class Reference

Registration settings. More...

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

Public Member Functions

 __construct (ilObjectGUI $gui_object, ilObject $object, $a_options)
 Overwitten to load language module. More...
 
 setFormValues (ilPropertyFormGUI $form)
 Set form values. More...
 
- Public Member Functions inherited from ilMembershipRegistrationSettingsGUI
 __construct (ilObjectGUI $gui_object, ilObject $object, $a_options)
 Constructor. More...
 
 setFormValues (ilPropertyFormGUI $form)
 Set form values. More...
 
 getCurrentObject ()
 Get current object. More...
 
 getCurrentGUI ()
 Get gui object. More...
 
 getOptions ()
 Get options. More...
 
 addMembershipFormElements (ilPropertyFormGUI $form, $a_parent_post='')
 Add membership form elements. More...
 

Additional Inherited Members

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

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.ilSessionMembershipRegistrationSettingsGUI.php.

Constructor & Destructor Documentation

◆ __construct()

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

Overwitten to load language module.

Parameters
\ilObjectGUI$gui_object
\ilObject$object
type$a_options

Reimplemented from ilMembershipRegistrationSettingsGUI.

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

24 {
26 $GLOBALS['DIC']['lng']->loadLanguageModule('sess');
27 }
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $GLOBALS, ilMembershipRegistrationSettingsGUI\$gui_object, ilMembershipRegistrationSettingsGUI\$object, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ setFormValues()

ilSessionMembershipRegistrationSettingsGUI::setFormValues ( ilPropertyFormGUI  $form)

Set form values.

Reimplemented from ilMembershipRegistrationSettingsGUI.

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

30 {
31 $form->getItemByPostVar('registration_type')->setValue($this->getCurrentObject()->getRegistrationType());
32
33 if ($this->getCurrentObject()->isCannotParticipateOptionEnabled()) {
34 $form->getItemByPostVar('show_cannot_participate_direct')->setChecked(true);
35 $form->getItemByPostVar('show_cannot_participate_request')->setChecked(true);
36 }
37
38
39 $form->getItemByPostVar('registration_membership_limited')->setChecked($this->getCurrentObject()->isRegistrationUserLimitEnabled());
40
41 $notificationCheckBox = $form->getItemByPostVar('registration_notification');
42 $notificationCheckBox->setChecked($this->getCurrentObject()->isRegistrationNotificationEnabled());
43
44 $notificationOption = $form->getItemByPostVar('notification_option');
45 $notificationOption->setValue($this->getCurrentObject()->getRegistrationNotificationOption());
46 /* not supported yet
47 $form->getItemByPostVar('registration_min_members')->setValue(
48 $this->getCurrentObject()->getRegistrationMinUsers() > 0 ?
49 $this->getCurrentObject()->getRegistrationMinUsers() : "");
50 */
51
52 $form->getItemByPostVar('registration_max_members')->setValue(
53 $this->getCurrentObject()->getRegistrationMaxUsers() > 0 ?
54 $this->getCurrentObject()->getRegistrationMaxUsers() : ""
55 );
56
57 $wait = 0;
58 if ($this->getCurrentObject()->hasWaitingListAutoFill()) {
59 $wait = 2;
60 } elseif ($this->getCurrentObject()->isRegistrationWaitingListEnabled()) {
61 $wait = 1;
62 }
63 $form->getItemByPostVar('waiting_list')->setValue($wait);
64 }
getItemByPostVar($a_post_var)
Get Item by POST variable.

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: