ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilChatroomFormFactory Class Reference

Class ilChatroomFormFactory. More...

+ Collaboration diagram for ilChatroomFormFactory:

Public Member Functions

 __construct ()
 Constructor.

Static Public Member Functions

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

Detailed Description

Constructor & Destructor Documentation

ilChatroomFormFactory::__construct ( )

Constructor.

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

{
}

Member Function Documentation

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 ilPropertyFormGUI\getItemByPostVar().

{
foreach($values as $key => $value)
{
$field = $form->getItemByPostVar($key);
if(!$field)
{
continue;
}
switch(strtolower(get_class($field)))
{
case 'ilcheckboxinputgui':
if($value)
{
$field->setChecked(true);
}
break;
default:
$field->setValue($value);
}
}
}

+ Here is the call graph for this function:


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