ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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.

18 {
19 }

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.

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.

References ilPropertyFormGUI\getItemByPostVar().

+ Here is the call graph for this function:

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