ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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['lng']->loadLanguageModule('sess');
27  }
28 
29  public function setFormValues(ilPropertyFormGUI $form)
30  {
31  $form->getItemByPostVar('registration_type')->setValue($this->getCurrentObject()->getRegistrationType());
32  $form->getItemByPostVar('registration_membership_limited')->setChecked($this->getCurrentObject()->isRegistrationUserLimitEnabled());
33  $form->getItemByPostVar('registration_max_members')->setValue(
34  $this->getCurrentObject()->getRegistrationMaxUsers() > 0 ?
35  $this->getCurrentObject()->getRegistrationMaxUsers() : "");
36  $form->getItemByPostVar('waiting_list')->setChecked($this->getCurrentObject()->isRegistrationWaitingListEnabled());
37  }
38 }
39 ?>