ILIAS  release_4-4 Revision
ilChatroomFormFactory Class Reference

Class ilChatroomFormFactory. More...

+ Collaboration diagram for ilChatroomFormFactory:

Public Member Functions

 __construct ()
 Constructor. More...
 

Static Public Member Functions

static applyValues (ilPropertyFormGUI $form, array $values)
 Applies given values to field in given form. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilChatroomFormFactory::__construct ( )

Constructor.

Definition at line 17 of file class.ilChatroomFormFactory.php.

References $lng, and ilFormPropertyGUI\setRequired().

18  {
19  }
+ Here is the call graph for this function:

Member Function Documentation

◆ applyValues()

static ilChatroomFormFactory::applyValues ( ilPropertyFormGUI  $form,
array  $values 
)
static

Applies given values to field in given form.

Parameters
ilPropertyFormGUI$form
array$values

Definition at line 50 of file class.ilChatroomFormFactory.php.

References $https, $ilUser, $lng, $options, ilPropertyFormGUI\addCommandButton(), ilPropertyFormGUI\addItem(), ilSubEnabledFormPropertyGUI\addSubItem(), ilRadioOption\addSubItem(), ilDatePresentation\formatPeriod(), ilPropertyFormGUI\getItemByPostVar(), IL_CAL_UNIX, ilFormPropertyGUI\setInfo(), ilNumberInputGUI\setMinValue(), ilFormPropertyGUI\setRequired(), ilPasswordInputGUI\setSkipSyntaxCheck(), and ilDateDurationInputGUI\setStartText().

Referenced by ilChatroomSettingsTask\__construct().

51  {
52  foreach($values as $key => $value)
53  {
54  $field = $form->getItemByPostVar($key);
55  if(!$field)
56  {
57  continue;
58  }
59 
60  switch(strtolower(get_class($field)))
61  {
62  case 'ilcheckboxinputgui':
63  if($value)
64  {
65  $field->setChecked(true);
66  }
67  break;
68 
69  default:
70  $field->setValue($value);
71  }
72  }
73  }
getItemByPostVar($a_post_var)
Get Item by POST variable.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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