ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 (ilFormPropertyGUI $a_item)
 
 getSubItems ()
 
 getSubInputItemsRecursive ()
 returns a flat array of possibly existing subitems recursively More...
 
 checkSubItemsInput ()
 Check SubItems. More...
 
 getSubForm ()
 
 getItemByPostVar (string $a_post_var)
 Get item by post var. More...
 
- Public Member Functions inherited from ilFormPropertyGUI
 __construct (string $a_title="", string $a_postvar="")
 
 executeCommand ()
 
 getType ()
 
 setTitle (string $a_title)
 
 getTitle ()
 
 setPostVar (string $a_postvar)
 
 getPostVar ()
 
 getFieldId ()
 
 setInfo (string $a_info)
 
 getInfo ()
 
 setAlert (string $a_alert)
 
 getAlert ()
 
 setRequired (bool $a_required)
 
 getRequired ()
 
 setDisabled (bool $a_disabled)
 
 getDisabled ()
 
 checkInput ()
 Check input, strip slashes etc. More...
 
 setParentForm (ilPropertyFormGUI $a_parentform)
 
 getParentForm ()
 
 setParent (ilFormPropertyGUI $a_val)
 
 getParent ()
 
 getSubForm ()
 
 hideSubForm ()
 
 setHiddenTitle (string $a_val)
 
 getHiddenTitle ()
 
 getItemByPostVar (string $a_post_var)
 Get item by post var. More...
 
 serializeData ()
 
 unserializeData (string $a_data)
 
 setParentTable ($a_val)
 Set parent table. More...
 
 getParentTable ()
 Get parent table. More...
 
 writeToSession ()
 
 clearFromSession ()
 
 readFromSession ()
 
 getHiddenTag (string $a_post_var, string $a_value)
 
 setMulti (bool $a_multi, bool $a_sortable=false, bool $a_addremove=true)
 
 getMulti ()
 
 setMultiValues (array $a_values)
 
 getMultiValues ()
 
 getContentOutsideFormTag ()
 Get content that has to reside outside of the parent form tag, e.g. More...
 
 stripSlashesAddSpaceFallback (string $a_str)
 Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727. More...
 
 getTableFilterLabelFor ()
 Get label "for" attribute value for filter. More...
 
 getFormLabelFor ()
 Get label "for" attribute value for form. More...
 
 setRequestParam (string $key, $val)
 This writes the request (aka post) values. More...
 

Protected Attributes

array $sub_items = array()
 
- Protected Attributes inherited from ilFormPropertyGUI
array $set_params = []
 
ilTable2GUI $parent_table = null
 
ilFormPropertyGUI $parent_gui = null
 
ilCtrl $ctrl
 
ilLanguage $lng
 
string $type = ""
 
string $title = ""
 
string $postvar = ""
 
string $info = ""
 
string $alert = ""
 
bool $required = false
 
ilPropertyFormGUI $parentform = null
 
string $hidden_title = ""
 
bool $multi = false
 
bool $multi_sortable = false
 
bool $multi_addremove = true
 
array $multi_values = []
 
RequestInterface $request
 
HTTP Services $http
 
Refinery Factory $refinery = null
 
bool $disabled = false
 
ilGlobalTemplateInterface $global_tpl = null
 

Additional Inherited Members

- Static Public Member Functions inherited from ilFormPropertyGUI
static removeProhibitedCharacters (string $a_text)
 Remove prohibited characters see #19159. More...
 
- Protected Member Functions inherited from ilFormPropertyGUI
 symbol ()
 
 setType (string $a_type)
 
 checkParentFormTable ()
 
 getSessionKey ()
 
 getMultiIconsHTML ()
 
 int ($key)
 
 intArray ($key)
 
 str ($key)
 
 raw ($key)
 
 strArray ($key)
 
 arrayArray ($key)
 
 isRequestParamArray (string $key)
 
 getRequestParam (string $key, Refinery\Transformation $t)
 

Detailed Description

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

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de
Deprecated:
12 This component will be removed with ILIAS 12

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

Member Function Documentation

◆ addSubItem()

ilSubEnabledFormPropertyGUI::addSubItem ( ilFormPropertyGUI  $a_item)

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

31 : void
32 {
33 $a_item->setParent($this);
34 $this->sub_items[] = $a_item;
35 }
setParent(ilFormPropertyGUI $a_val)

References ilFormPropertyGUI\setParent().

+ Here is the call graph for this function:

◆ checkSubItemsInput()

ilSubEnabledFormPropertyGUI::checkSubItemsInput ( )
final

Check SubItems.

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

67 : bool
68 {
69 $ok = true;
70 foreach ($this->getSubItems() as $item) {
71 $item_ok = $item->checkInput();
72 if (!$item_ok) {
73 $ok = false;
74 }
75 }
76 return $ok;
77 }

References getSubItems().

Referenced by ilCheckboxInputGUI\checkInput(), ilCSSRectInputGUI\checkInput(), ilCustomInputGUI\checkInput(), ilDateTimeInputGUI\checkInput(), ilFileWizardInputGUI\checkInput(), ilFormulaInputGUI\checkInput(), ilNonEditableValueGUI\checkInput(), ilSelectBuilderInputGUI\checkInput(), ilSelectInputGUI\checkInput(), ilTextInputGUI\checkInput(), ilTextWizardInputGUI\checkInput(), ilCategoryWizardInputGUI\checkInput(), ilMatrixRowWizardInputGUI\checkInput(), ilRandomTestROInputGUI\checkInput(), ilAnswerWizardInputGUI\checkInput(), ilErrorTextWizardInputGUI\checkInput(), ilEssayKeywordWizardInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkInput(), ilMatchingPairWizardInputGUI\checkInput(), ilMatchingWizardInputGUI\checkInput(), ilMultipleChoiceWizardInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), ilSuggestedSolutionSelectorGUI\checkInput(), ilAssErrorTextCorrectionsInputGUI\checkInput(), ilAssMatchingPairCorrectionsInputGUI\checkInput(), ilAssMultipleChoiceCorrectionsInputGUI\checkInput(), ilAssSingleChoiceCorrectionsInputGUI\checkInput(), ilKprimChoiceCorrectionsInputGUI\checkInput(), ilTagInputGUI\checkInput(), ilMultipleImagesInputGUI\onCheckInput(), and ilMultipleTextsInputGUI\onCheckInput().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getItemByPostVar()

ilSubEnabledFormPropertyGUI::getItemByPostVar ( string  $a_post_var)

Get item by post var.

Reimplemented from ilFormPropertyGUI.

Reimplemented in ilCheckboxGroupInputGUI, ilRadioGroupInputGUI, and ilIncomingMailInputGUI.

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

93 {
94 if ($this->getPostVar() == $a_post_var) {
95 return $this;
96 }
97
98 foreach ($this->getSubItems() as $item) {
99 if ($item->getType() != "section_header") {
100 $ret = $item->getItemByPostVar($a_post_var);
101 if (is_object($ret)) {
102 return $ret;
103 }
104 }
105 }
106
107 return null;
108 }
This class represents a property in a property form.
getItemByPostVar(string $a_post_var)
Get item by post var.

References ilFormPropertyGUI\getItemByPostVar(), ilFormPropertyGUI\getPostVar(), and getSubItems().

+ Here is the call graph for this function:

◆ getSubForm()

ilSubEnabledFormPropertyGUI::getSubForm ( )
final

Reimplemented from ilFormPropertyGUI.

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

80 {
81 // subitems
82 $pf = null;
83 if (count($this->getSubItems()) > 0) {
84 $pf = new ilPropertyFormGUI();
85 $pf->setMode("subform");
86 $pf->setItems($this->getSubItems());
87 }
88
89 return $pf;
90 }
This class represents a property form user interface.

References getSubItems().

+ Here is the call graph for this function:

◆ getSubInputItemsRecursive()

ilSubEnabledFormPropertyGUI::getSubInputItemsRecursive ( )

returns a flat array of possibly existing subitems recursively

Reimplemented in ilIncomingMailInputGUI.

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

45 : array
46 {
47 $subInputItems = array();
48
49 foreach ($this->sub_items as $subItem) {
50 if ($subItem->getType() == 'section_header') {
51 continue;
52 }
53
54 $subInputItems[] = $subItem;
55
56 if ($subItem instanceof ilSubEnabledFormPropertyGUI) {
57 $subInputItems = array_merge($subInputItems, $subItem->getSubInputItemsRecursive());
58 }
59 }
60
61 return $subInputItems;
62 }
This class represents a property that may include a sub form.

◆ getSubItems()

Field Documentation

◆ $sub_items

array ilSubEnabledFormPropertyGUI::$sub_items = array()
protected

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

Referenced by getSubItems().


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