ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 $form->getItemByPostVar('registration_membership_limited')->setChecked($this->getCurrentObject()->isRegistrationUserLimitEnabled());
33
34 $notificationCheckBox = $form->getItemByPostVar('registration_notification');
35 $notificationCheckBox->setChecked($this->getCurrentObject()->isRegistrationNotificationEnabled());
36
37 $notificationOption = $form->getItemByPostVar('notification_option');
38 $notificationOption->setValue($this->getCurrentObject()->getRegistrationNotificationOption());
39 /* not supported yet
40 $form->getItemByPostVar('registration_min_members')->setValue(
41 $this->getCurrentObject()->getRegistrationMinUsers() > 0 ?
42 $this->getCurrentObject()->getRegistrationMinUsers() : "");
43 */
44
45 $form->getItemByPostVar('registration_max_members')->setValue(
46 $this->getCurrentObject()->getRegistrationMaxUsers() > 0 ?
47 $this->getCurrentObject()->getRegistrationMaxUsers() : ""
48 );
49
50 $wait = 0;
51 if ($this->getCurrentObject()->hasWaitingListAutoFill()) {
52 $wait = 2;
53 } elseif ($this->getCurrentObject()->isRegistrationWaitingListEnabled()) {
54 $wait = 1;
55 }
56 $form->getItemByPostVar('waiting_list')->setValue($wait);
57 }
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: