ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
4include_once './Services/Membership/classes/class.ilMembershipRegistrationSettingsGUI.php';
5
16{
23 public function __construct(ilObjectGUI $gui_object, ilObject $object, $a_options)
24 {
26 $GLOBALS['DIC']['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
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 }
58}
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
An exception for terminatinating execution or to throw for unit testing.
Class ilObjectGUI Basic methods of all Output classes.
Class ilObject Basic functions for all objects.
This class represents a property form user interface.
getItemByPostVar($a_post_var)
Get Item by POST variable.
__construct(ilObjectGUI $gui_object, ilObject $object, $a_options)
Overwitten to load language module.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc