ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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)
 
- 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

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

References $GLOBALS.

24  {
25  parent::__construct($gui_object, $object, $a_options);
26  $GLOBALS['DIC']['lng']->loadLanguageModule('sess');
27  }
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.

Member Function Documentation

◆ setFormValues()

ilSessionMembershipRegistrationSettingsGUI::setFormValues ( ilPropertyFormGUI  $form)

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

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

30  {
31  $form->getItemByPostVar('registration_type')->setValue($this->getCurrentObject()->getRegistrationType());
32  $form->getItemByPostVar('registration_membership_limited')->setChecked($this->getCurrentObject()->isRegistrationUserLimitEnabled());
33 
34  /* not supported yet
35  $form->getItemByPostVar('registration_min_members')->setValue(
36  $this->getCurrentObject()->getRegistrationMinUsers() > 0 ?
37  $this->getCurrentObject()->getRegistrationMinUsers() : "");
38  */
39 
40  $form->getItemByPostVar('registration_max_members')->setValue(
41  $this->getCurrentObject()->getRegistrationMaxUsers() > 0 ?
42  $this->getCurrentObject()->getRegistrationMaxUsers() : ""
43  );
44 
45  $wait = 0;
46  if ($this->getCurrentObject()->hasWaitingListAutoFill()) {
47  $wait = 2;
48  } elseif ($this->getCurrentObject()->isRegistrationWaitingListEnabled()) {
49  $wait = 1;
50  }
51  $form->getItemByPostVar('waiting_list')->setValue($wait);
52  }
getItemByPostVar($a_post_var)
Get Item by POST variable.
+ Here is the call graph for this function:

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