ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSubEnabledFormPropertyGUI Class Reference

This class represents a property that may include a sub form. More...

+ Inheritance diagram for ilSubEnabledFormPropertyGUI:
+ Collaboration diagram for ilSubEnabledFormPropertyGUI:

Public Member Functions

 addSubItem ($a_item)
 Add Subitem.
 getSubItems ()
 Get Subitems.
 setSubformMode ($a_subformmode)
 Set Subform Mode.
 getSubformMode ()
 Get Subform Mode.
 checkSubItemsInput ()
 Check SubItems.
 getSubForm ()
 Get sub form html.
- Public Member Functions inherited from ilFormPropertyGUI
 __construct ($a_title="", $a_postvar="")
 Constructor.
 getType ()
 Get Type.
 setTitle ($a_title)
 Set Title.
 getTitle ()
 Get Title.
 setPostVar ($a_postvar)
 Set Post Variable.
 getPostVar ()
 Get Post Variable.
 getFieldId ()
 Get Post Variable.
 setInfo ($a_info)
 Set Information Text.
 getInfo ()
 Get Information Text.
 setAlert ($a_alert)
 Set Alert Text.
 getAlert ()
 Get Alert Text.
 setRequired ($a_required)
 Set Required.
 getRequired ()
 Get Required.
 setDisabled ($a_disabled)
 Set Disabled.
 getDisabled ()
 Get Disabled.
 checkInput ()
 Check input, strip slashes etc.

Protected Attributes

 $sub_items = array()
 $subformmode = "bottom"
- Protected Attributes inherited from ilFormPropertyGUI
 $type
 $title
 $postvar
 $info
 $alert
 $required = false

Additional Inherited Members

- Protected Member Functions inherited from ilFormPropertyGUI
 setType ($a_type)
 Set Type.

Detailed Description

This class represents a property that may include a sub form.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 31 of file class.ilSubEnabledFormPropertyGUI.php.

Member Function Documentation

ilSubEnabledFormPropertyGUI::addSubItem (   $a_item)

Add Subitem.

Parameters
object$a_itemItem

Definition at line 41 of file class.ilSubEnabledFormPropertyGUI.php.

Referenced by ilCourseItemAdministrationGUI\initFormEdit().

{
$this->sub_items[] = $a_item;
}

+ Here is the caller graph for this function:

ilSubEnabledFormPropertyGUI::checkSubItemsInput ( )
final

Check SubItems.

Returns
boolean Input ok, true/false

Definition at line 81 of file class.ilSubEnabledFormPropertyGUI.php.

References $ok, and getSubItems().

Referenced by ilSelectInputGUI\checkInput(), ilCheckboxInputGUI\checkInput(), ilSuggestedSolutionSelectorGUI\checkInput(), ilTextInputGUI\checkInput(), ilPasswordInputGUI\checkInput(), ilNumberInputGUI\checkInput(), ilCSSRectInputGUI\checkInput(), and ilTextAreaInputGUI\checkInput().

{
$ok = true;
foreach($this->getSubItems() as $item)
{
$item_ok = $item->checkInput();
if(!$item_ok)
{
$ok = false;
}
}
return $ok;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilSubEnabledFormPropertyGUI::getSubForm ( )
final

Get sub form html.

Reimplemented from ilFormPropertyGUI.

Definition at line 99 of file class.ilSubEnabledFormPropertyGUI.php.

References getSubformMode(), and getSubItems().

{
// subitems
$form = "";
if (count($this->getSubItems()) > 0)
{
$pf = new ilPropertyFormGUI();
$pf->setSubformMode($this->getSubformMode());
$pf->setMode("subform");
$pf->setItems($this->getSubItems());
$form = $pf->getContent();
}
return $form;
}

+ Here is the call graph for this function:

ilSubEnabledFormPropertyGUI::getSubformMode ( )

Get Subform Mode.

("bottom" | "right")

Returns
string Subform Mode

Reimplemented from ilFormPropertyGUI.

Definition at line 71 of file class.ilSubEnabledFormPropertyGUI.php.

References $subformmode.

Referenced by getSubForm().

{
}

+ Here is the caller graph for this function:

ilSubEnabledFormPropertyGUI::getSubItems ( )

Get Subitems.

Returns
array Array of items

Definition at line 51 of file class.ilSubEnabledFormPropertyGUI.php.

References $sub_items.

Referenced by checkSubItemsInput(), getSubForm(), ilCustomInputGUI\setValueByArray(), ilCheckboxInputGUI\setValueByArray(), and ilDateTimeInputGUI\setValueByArray().

{
}

+ Here is the caller graph for this function:

ilSubEnabledFormPropertyGUI::setSubformMode (   $a_subformmode)

Set Subform Mode.

("bottom" | "right")

Parameters
string$a_subformmodeSubform Mode

Definition at line 61 of file class.ilSubEnabledFormPropertyGUI.php.

{
$this->subformmode = $a_subformmode;
}

Field Documentation

ilSubEnabledFormPropertyGUI::$sub_items = array()
protected

Definition at line 33 of file class.ilSubEnabledFormPropertyGUI.php.

Referenced by getSubItems().

ilSubEnabledFormPropertyGUI::$subformmode = "bottom"
protected

Definition at line 34 of file class.ilSubEnabledFormPropertyGUI.php.

Referenced by getSubformMode().


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