ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 26 of file class.ilChatroomFormFactory.php.

27 {
28 foreach($values as $key => $value)
29 {
30 $field = $form->getItemByPostVar($key);
31 if(!$field)
32 {
33 continue;
34 }
35
36 switch(strtolower(get_class($field)))
37 {
38 case 'ilcheckboxinputgui':
39 if($value)
40 {
41 $field->setChecked(true);
42 }
43 break;
44
45 default:
46 $field->setValue($value);
47 }
48 }
49 }
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: