ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilSessionMembershipRegistrationSettingsGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once './Services/Membership/classes/class.ilMembershipRegistrationSettingsGUI.php';
5 
16 {
23  public function __construct(ilObjectGUI $gui_object, ilObject $object, $a_options)
24  {
25  parent::__construct($gui_object, $object, $a_options);
26  $GLOBALS['DIC']['lng']->loadLanguageModule('sess');
27  }
28 
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  }
53 }
getItemByPostVar($a_post_var)
Get Item by POST variable.
This class represents a property form user interface.
if(isset($_POST['submit'])) $form
Class ilObjectGUI Basic methods of all Output classes.
__construct(ilObjectGUI $gui_object, ilObject $object, $a_options)
Overwitten to load language module.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.