ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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)
 
- 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)

◆ checkSubItemsInput()

ilSubEnabledFormPropertyGUI::checkSubItemsInput ( )
final

Check SubItems.

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

References getSubItems().

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

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  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getItemByPostVar()

ilSubEnabledFormPropertyGUI::getItemByPostVar ( string  $a_post_var)

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

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

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  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:

◆ getSubForm()

ilSubEnabledFormPropertyGUI::getSubForm ( )
final

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

References getSubItems(), and null.

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  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:

◆ getSubInputItemsRecursive()

ilSubEnabledFormPropertyGUI::getSubInputItemsRecursive ( )

returns a flat array of possibly existing subitems recursively

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

Referenced by ilRadioGroupInputGUI\getTableFilterHTML(), and ilCheckboxGroupInputGUI\render().

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.
+ Here is the caller graph for this function:

◆ 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: