ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilFormPropertyGUI Class Reference

This class represents a property in a property form. More...

+ Inheritance diagram for ilFormPropertyGUI:
+ Collaboration diagram for ilFormPropertyGUI:

Public Member Functions

 __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...
 

Static Public Member Functions

static removeProhibitedCharacters (string $a_text)
 Remove prohibited characters see #19159. More...
 

Protected Member Functions

 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)
 

Protected Attributes

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
 

Detailed Description

This class represents a property in a property form.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 30 of file class.ilFormPropertyGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilFormPropertyGUI::__construct ( string  $a_title = "",
string  $a_postvar = "" 
)

Definition at line 56 of file class.ilFormPropertyGUI.php.

References $DIC, ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), setDisabled(), setPostVar(), and setTitle().

59  {
60  global $DIC;
61 
62  if (isset($DIC["http"])) {
63  $this->http = $DIC->http();
64  }
65 
66  if (isset($DIC["refinery"])) {
67  $this->refinery = $DIC->refinery();
68  }
69 
70  $this->ctrl = $DIC->ctrl();
71  $this->lng = $DIC->language();
72  $this->setTitle($a_title);
73  $this->setPostVar($a_postvar);
74  $this->setDisabled(false);
75  if (isset($DIC["http"])) { // some unit tests will fail otherwise
76  $this->request = $DIC->http()->request();
77  }
78  if (isset($DIC["tpl"])) { // some unit tests will fail otherwise
79  $this->global_tpl = $DIC['tpl'];
80  }
81  }
setPostVar(string $a_postvar)
global $DIC
Definition: feed.php:28
static http()
Fetches the global http state from ILIAS.
setDisabled(bool $a_disabled)
+ Here is the call graph for this function:

Member Function Documentation

◆ arrayArray()

ilFormPropertyGUI::arrayArray (   $key)
protected

Definition at line 518 of file class.ilFormPropertyGUI.php.

References ILIAS\LTI\ToolProvider\$key, getRequestParam(), isRequestParamArray(), and ILIAS\Repository\refinery().

Referenced by ilDclGenericMultiInputGUI\checkInput(), ilGloAdvColSortInputGUI\getInput(), ilTRBLBorderStyleInputGUI\getInput(), ilBackgroundPositionInputGUI\getInput(), ilTRBLBorderWidthInputGUI\getInput(), ilTRBLNumericStyleValueInputGUI\getInput(), ilMatrixRowWizardInputGUI\getInput(), ilTRBLColorPickerInputGUI\getInput(), ilIdentifiedMultiValuesInputGUI\getInput(), ilCategoryWizardInputGUI\getInput(), and ilImagemapFileInputGUI\getPostBody().

518  : array
519  {
520  if (!$this->isRequestParamArray($key)) {
521  return [];
522  }
523  $t = $this->refinery->custom()->transformation(
524  function ($arr) {
525  // keep keys(!), transform all values to string
526  return array_column(
527  array_map(
528  function ($k, $v) {
529  return [$k, (array) $v];
530  },
531  array_keys($arr),
532  $arr
533  ),
534  1,
535  0
536  );
537  }
538  );
539  return (array) ($this->getRequestParam($key, $t) ?? []);
540  }
getRequestParam(string $key, Refinery\Transformation $t)
string $key
Consumer key/client ID value.
Definition: System.php:193
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ checkInput()

ilFormPropertyGUI::checkInput ( )

Check input, strip slashes etc.

set alert, if input is not ok.

Definition at line 172 of file class.ilFormPropertyGUI.php.

172  : bool
173  {
174  return false; // please overwrite
175  }

◆ checkParentFormTable()

ilFormPropertyGUI::checkParentFormTable ( )
protected

Definition at line 264 of file class.ilFormPropertyGUI.php.

References getParentForm(), and getParentTable().

Referenced by clearFromSession(), readFromSession(), and writeToSession().

264  : void
265  {
266  $parent = $this->getParentForm();
267  $parent_table = $this->getParentTable();
268  if (!is_object($parent) && !isset($parent_table)) {
269  throw new Exception("Parent form/table not set for " . get_class($this) . " to use serialize feature.");
270  }
271  }
getParentTable()
Get parent table.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clearFromSession()

ilFormPropertyGUI::clearFromSession ( )
Exceptions
Exception

Definition at line 294 of file class.ilFormPropertyGUI.php.

References checkParentFormTable(), ilSession\clear(), and getSessionKey().

294  : void
295  {
296  $this->checkParentFormTable();
298  }
static clear(string $a_var)
+ Here is the call graph for this function:

◆ executeCommand()

ilFormPropertyGUI::executeCommand ( )
Returns
mixed

Definition at line 86 of file class.ilFormPropertyGUI.php.

References ILIAS\Repository\ctrl().

87  {
88  $cmd = $this->ctrl->getCmd();
89  return $this->$cmd();
90  }
+ Here is the call graph for this function:

◆ getAlert()

ilFormPropertyGUI::getAlert ( )

Definition at line 144 of file class.ilFormPropertyGUI.php.

References $alert.

144  : string
145  {
146  return $this->alert;
147  }

◆ getContentOutsideFormTag()

ilFormPropertyGUI::getContentOutsideFormTag ( )

Get content that has to reside outside of the parent form tag, e.g.

panels/layers

Definition at line 391 of file class.ilFormPropertyGUI.php.

391  : string
392  {
393  return "";
394  }

◆ getDisabled()

ilFormPropertyGUI::getDisabled ( )

Definition at line 164 of file class.ilFormPropertyGUI.php.

References $disabled.

Referenced by ilIncomingMailInputGUI\addSubOptions(), ilKprimChoiceCorrectionsInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkInput(), ilDateTimeInputGUI\checkInput(), ilFileInputGUI\checkInput(), ilDateDurationInputGUI\checkInput(), ilDateTimeInputGUI\getOnloadCode(), ilSelectBuilderInputGUI\insert(), ilImageFileInputGUI\insert(), ilEMailInputGUI\insert(), ilUserLoginInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilColorPickerInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilFileWizardInputGUI\insert(), ilSuggestedSolutionSelectorGUI\insert(), ilCSSRectInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilTextAreaInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilDclMultiTextInputGUI\render(), ilMailQuickFilterInputGUI\render(), ilRadioGroupInputGUI\render(), ilNonEditableValueGUI\render(), ilTextWizardInputGUI\render(), ilCheckboxInputGUI\render(), ilMultipleTextsInputGUI\render(), ilSelectInputGUI\render(), ilMultiSelectInputGUI\render(), ilCheckboxGroupInputGUI\render(), ilChatroomAuthInputGUI\render(), ilDurationInputGUI\render(), ilOrgUnitGenericMultiInputGUI\render(), ilDateTimeInputGUI\render(), ilOrgUnitMultiLineInputGUI\render(), ilPasswordInputGUI\render(), ilDclGenericMultiInputGUI\render(), ilMultipleImagesInputGUI\render(), ilFileInputGUI\render(), ilNumberInputGUI\render(), ilTextInputGUI\render(), and ilDateDurationInputGUI\render().

164  : bool
165  {
166  return $this->disabled;
167  }
+ Here is the caller graph for this function:

◆ getFieldId()

ilFormPropertyGUI::getFieldId ( )

Definition at line 122 of file class.ilFormPropertyGUI.php.

References $id, and getPostVar().

Referenced by ilADTSearchBridge\addToParentElement(), ilKprimChoiceWizardInputGUI\checkInput(), ilIdentifiedMultiValuesInputGUI\getFieldIdFromPostVar(), getFormLabelFor(), ilDateDurationInputGUI\getFormLabelFor(), getMultiIconsHTML(), ilRepositorySelector2InputGUI\getOnloadCode(), getSessionKey(), getTableFilterLabelFor(), ilDateDurationInputGUI\getTableFilterLabelFor(), ilHiddenInputGUI\getToolbarHTML(), ilHiddenInputGUI\insert(), ilImagemapCorrectionsInputGUI\insert(), ilSelectBuilderInputGUI\insert(), ilImageFileInputGUI\insert(), ilEMailInputGUI\insert(), ilUserLoginInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilColorPickerInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilFileWizardInputGUI\insert(), ilCSSRectInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilImageWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilImagemapFileInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilTextAreaInputGUI\insert(), ilDclGenericMultiInputGUI\insert(), ilOrgUnitMultiLineInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilMailTemplateSelectInputGUI\render(), ilDclMultiTextInputGUI\render(), ilGloAdvColSortInputGUI\render(), ilMailQuickFilterInputGUI\render(), ilRadioGroupInputGUI\render(), ilTextWizardInputGUI\render(), ilNonEditableValueGUI\render(), ilCheckboxInputGUI\render(), ilMultipleTextsInputGUI\render(), ilSelectInputGUI\render(), ilExplorerSelectInputGUI\render(), ilMultiSelectInputGUI\render(), ilScheduleInputGUI\render(), ilCheckboxGroupInputGUI\render(), ilChatroomAuthInputGUI\render(), ilRepositorySelectorInputGUI\render(), ilTagInputGUI\render(), ilPasswordInputGUI\render(), ilFileInputGUI\render(), ilNumberInputGUI\render(), ilTextInputGUI\render(), and ilSelectInputGUI\setHideSubForm().

122  : string
123  {
124  $id = str_replace("[", "__", $this->getPostVar());
125  $id = str_replace("]", "__", $id);
126  return $id;
127  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getFormLabelFor()

ilFormPropertyGUI::getFormLabelFor ( )

Get label "for" attribute value for form.

Definition at line 428 of file class.ilFormPropertyGUI.php.

References getFieldId().

428  : string
429  {
430  return $this->getFieldId();
431  }
+ Here is the call graph for this function:

◆ getHiddenTag()

ilFormPropertyGUI::getHiddenTag ( string  $a_post_var,
string  $a_value 
)

Definition at line 313 of file class.ilFormPropertyGUI.php.

References ilLegacyFormElementsUtil\prepareFormOutput().

Referenced by ilEMailInputGUI\insert(), ilTextAreaInputGUI\insert(), ilMailQuickFilterInputGUI\render(), ilRadioGroupInputGUI\render(), ilSelectInputGUI\render(), and ilTextInputGUI\render().

316  : string {
317  return '<input type="hidden" name="' . $a_post_var . '" value="' . ilLegacyFormElementsUtil::prepareFormOutput(
318  $a_value
319  ) . '" />';
320  }
static prepareFormOutput($a_str, bool $a_strip=false)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getHiddenTitle()

ilFormPropertyGUI::getHiddenTitle ( )

Definition at line 214 of file class.ilFormPropertyGUI.php.

References $hidden_title.

214  : string
215  {
216  return $this->hidden_title;
217  }

◆ getInfo()

ilFormPropertyGUI::getInfo ( )

Definition at line 134 of file class.ilFormPropertyGUI.php.

References $info.

Referenced by ilTextAreaInputGUI\insert(), ilCheckboxInputGUI\render(), ilNumberInputGUI\render(), ilTextInputGUI\render(), and ilDclBaseFieldRepresentation\setupInputField().

134  : string
135  {
136  return $this->info;
137  }
+ Here is the caller graph for this function:

◆ getItemByPostVar()

ilFormPropertyGUI::getItemByPostVar ( string  $a_post_var)

Get item by post var.

Definition at line 222 of file class.ilFormPropertyGUI.php.

References getPostVar().

Referenced by ilSubEnabledFormPropertyGUI\getItemByPostVar(), ilCheckboxGroupInputGUI\getItemByPostVar(), ilRadioGroupInputGUI\getItemByPostVar(), and ilPropertyFormGUI\getItemByPostVar().

223  {
224  if ($this->getPostVar() == $a_post_var) {
225  return $this;
226  }
227  return null;
228  }
This class represents a property in a property form.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMulti()

◆ getMultiIconsHTML()

ilFormPropertyGUI::getMultiIconsHTML ( )
protected

Definition at line 356 of file class.ilFormPropertyGUI.php.

References $id, $lng, $tpl, ilGlyphGUI\ADD, ilGlyphGUI\DOWN, ilGlyphGUI\get(), getFieldId(), ilGlyphGUI\REMOVE, ilLanguage\txt(), and ilGlyphGUI\UP.

Referenced by ilOrgUnitAuthorityInputGUI\getValue(), ilNonEditableValueGUI\render(), ilSelectInputGUI\render(), and ilTextInputGUI\render().

356  : string
357  {
358  $lng = $this->lng;
359 
360  $id = $this->getFieldId();
361 
362  $tpl = new ilTemplate("tpl.multi_icons.html", true, true, "Services/Form");
363 
364  $html = "";
365  if ($this->multi_addremove) {
366  $tpl->setCurrentBlock("addremove");
367  $tpl->setVariable("ID", $id);
368  $tpl->setVariable("TXT_ADD", $lng->txt("add"));
369  $tpl->setVariable("TXT_REMOVE", $lng->txt("remove"));
370  $tpl->setVariable("SRC_ADD", ilGlyphGUI::get(ilGlyphGUI::ADD));
371  $tpl->setVariable("SRC_REMOVE", ilGlyphGUI::get(ilGlyphGUI::REMOVE));
372  $tpl->parseCurrentBlock();
373  }
374 
375  if ($this->multi_sortable) {
376  $tpl->setCurrentBlock("sortable");
377  $tpl->setVariable("ID", $id);
378  $tpl->setVariable("TXT_DOWN", $lng->txt("down"));
379  $tpl->setVariable("TXT_UP", $lng->txt("up"));
380  $tpl->setVariable("SRC_UP", ilGlyphGUI::get(ilGlyphGUI::UP));
381  $tpl->setVariable("SRC_DOWN", ilGlyphGUI::get(ilGlyphGUI::DOWN));
382  $tpl->parseCurrentBlock();
383  }
384 
385  return $tpl->get();
386  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static get(string $a_glyph, string $a_text="")
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMultiValues()

ilFormPropertyGUI::getMultiValues ( )

Definition at line 350 of file class.ilFormPropertyGUI.php.

References $multi_values.

Referenced by ilOrgUnitAuthorityInputGUI\getValue(), ilMailQuickFilterInputGUI\render(), ilSelectInputGUI\render(), and ilTextInputGUI\render().

350  : array
351  {
352  return $this->multi_values;
353  }
+ Here is the caller graph for this function:

◆ getParent()

ilFormPropertyGUI::getParent ( )

Definition at line 193 of file class.ilFormPropertyGUI.php.

References $parent_gui.

194  {
195  return $this->parent_gui;
196  }
This class represents a property in a property form.
ilFormPropertyGUI $parent_gui

◆ getParentForm()

ilFormPropertyGUI::getParentForm ( )

Definition at line 182 of file class.ilFormPropertyGUI.php.

References $parentform.

Referenced by checkParentFormTable(), getSessionKey(), ilRadioGroupInputGUI\render(), ilCheckboxGroupInputGUI\render(), and ilLinkInputGUI\render().

183  {
184  return $this->parentform;
185  }
ilPropertyFormGUI $parentform
+ Here is the caller graph for this function:

◆ getParentTable()

ilFormPropertyGUI::getParentTable ( )

Get parent table.

Returns
ilTable2GUI table object

Definition at line 259 of file class.ilFormPropertyGUI.php.

References $parent_table.

Referenced by checkParentFormTable(), getSessionKey(), and ilRepositorySelectorInputGUI\render().

259  : ?ilTable2GUI
260  {
261  return $this->parent_table;
262  }
+ Here is the caller graph for this function:

◆ getPostVar()

ilFormPropertyGUI::getPostVar ( )

Definition at line 117 of file class.ilFormPropertyGUI.php.

References $postvar.

Referenced by ilTypicalLearningTimeInputGUI\__buildDaysSelect(), ilTypicalLearningTimeInputGUI\__buildMonthsSelect(), ilMMSubItemTableGUI\addAndReadFilterItem(), ilOrgUnitMultiLineInputGUI\addInput(), ilOrgUnitGenericMultiInputGUI\addInput(), ilDclGenericMultiInputGUI\addInput(), ilAssLongmenuCorrectionsInputGUI\buildAnswersModal(), ilAssLongmenuCorrectionsInputGUI\buildTagInput(), ilDclCheckboxInputGUI\checkInput(), ilDclTextInputGUI\checkInput(), ilSamlIdpMetadataInputGUI\checkInput(), ilLuceneQueryInputGUI\checkInput(), ilAssClozeTestCombinationVariantsInputGUI\checkInput(), ilKprimChoiceCorrectionsInputGUI\checkInput(), ilAssErrorTextCorrectionsInputGUI\checkInput(), ilMailQuickFilterInputGUI\checkInput(), ilAssSingleChoiceCorrectionsInputGUI\checkInput(), ilUriInputGUI\checkInput(), ilAssMultipleChoiceCorrectionsInputGUI\checkInput(), ilEssayKeywordWizardInputGUI\checkInput(), ilImagemapCorrectionsInputGUI\checkInput(), ilMultipleChoiceWizardInputGUI\checkInput(), ilAssMatchingPairCorrectionsInputGUI\checkInput(), ilAssAnswerCorrectionsInputGUI\checkInput(), ilSelectBuilderInputGUI\checkInput(), ilScheduleInputGUI\checkInput(), ilCustomInputGUI\checkInput(), ilAdvSelectInputGUI\checkInput(), ilFileWizardInputGUI\checkInput(), ilEMailInputGUI\checkInput(), ilSelectInputGUI\checkInput(), ilAlphabetInputGUI\checkInput(), ilLocationInputGUI\checkInput(), ilCheckboxGroupInputGUI\checkInput(), ilRepositorySelectorInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkInput(), ilChatroomAuthInputGUI\checkInput(), ilMatchingPairWizardInputGUI\checkInput(), ilDateTimeInputGUI\checkInput(), ilCSSRectInputGUI\checkInput(), ilImageWizardInputGUI\checkInput(), ilOrgUnitMultiLineInputGUI\checkInput(), ilFileInputGUI\checkInput(), ilSuggestedSolutionSelectorGUI\checkInput(), ilImagemapFileInputGUI\checkInput(), ilOrgUnitGenericMultiInputGUI\checkInput(), ilTagInputGUI\checkInput(), ilPasswordInputGUI\checkInput(), ilMatchingWizardInputGUI\checkInput(), ilTextInputGUI\checkInput(), ilDclGenericMultiInputGUI\checkInput(), ilNumberInputGUI\checkInput(), ilAnswerWizardInputGUI\checkInput(), ilErrorTextWizardInputGUI\checkInput(), ilDateDurationInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), ilKVPWizardInputGUI\checkInput(), ilLinkInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkUploads(), ilKprimChoiceWizardInputGUI\collectValidFiles(), ilOrgUnitGenericMultiInputGUI\createInputPostVar(), ilOrgUnitMultiLineInputGUI\createInputPostVar(), ilDclGenericMultiInputGUI\createInputPostVar(), ilAdvSelectInputGUI\getAdvSelection(), ilImageFileInputGUI\getDeletionFlag(), ilFileInputGUI\getDeletionFlag(), getFieldId(), ilIdentifiedMultiValuesInputGUI\getFieldIdFromPostVar(), ilHiddenInputGUI\getInput(), ilColorPickerInputGUI\getInput(), ilNonEditableValueGUI\getInput(), ilGloAdvColSortInputGUI\getInput(), ilFormulaInputGUI\getInput(), ilAdvSelectInputGUI\getInput(), ilCustomInputGUI\getInput(), ilNestedListInputGUI\getInput(), ilFontSizeInputGUI\getInput(), ilBackgroundImageInputGUI\getInput(), ilRegExpInputGUI\getInput(), ilNumericStyleValueInputGUI\getInput(), ilSelectBuilderInputGUI\getInput(), ilRadioGroupInputGUI\getInput(), ilWidthHeightInputGUI\getInput(), ilTextWizardInputGUI\getInput(), ilEMailInputGUI\getInput(), ilAlphabetInputGUI\getInput(), ilUserLoginInputGUI\getInput(), ilCheckboxInputGUI\getInput(), ilLocationInputGUI\getInput(), ilScheduleInputGUI\getInput(), ilRepositorySelectorInputGUI\getInput(), ilSelectInputGUI\getInput(), ilCheckboxGroupInputGUI\getInput(), ilChatroomAuthInputGUI\getInput(), ilTRBLBorderStyleInputGUI\getInput(), ilBackgroundPositionInputGUI\getInput(), ilExplorerSelectInputGUI\getInput(), ilMultiSelectInputGUI\getInput(), ilTRBLBorderWidthInputGUI\getInput(), ilTRBLNumericStyleValueInputGUI\getInput(), ilMatrixRowWizardInputGUI\getInput(), ilDurationInputGUI\getInput(), ilTRBLColorPickerInputGUI\getInput(), ilCSSRectInputGUI\getInput(), ilPasswordInputGUI\getInput(), ilTextInputGUI\getInput(), ilIdentifiedMultiValuesInputGUI\getInput(), ilNumberInputGUI\getInput(), ilCategoryWizardInputGUI\getInput(), ilFileInputGUI\getInput(), ilLinkInputGUI\getInput(), ilTextAreaInputGUI\getInput(), ilDateDurationInputGUI\getInput(), ilTypicalLearningTimeInputGUI\getInputFromPost(), ilSubEnabledFormPropertyGUI\getItemByPostVar(), ilCheckboxGroupInputGUI\getItemByPostVar(), ilRadioGroupInputGUI\getItemByPostVar(), getItemByPostVar(), ilIdentifiedMultiValuesInputGUI\getMultiValuePostVar(), ilCategoryWizardInputGUI\getNeutralInput(), ilCategoryWizardInputGUI\getNeutralScaleInput(), ilDateTimeInputGUI\getOnloadCode(), ilImagemapFileInputGUI\getPostBody(), ilDateTimeInputGUI\getPostValueForComparison(), ilIdentifiedMultiValuesInputGUI\getPostVarSubField(), ilIdentifiedMultiValuesInputGUI\getSubFieldCompletedPostVar(), ilHiddenInputGUI\getToolbarHTML(), ilOrgUnitAuthorityInputGUI\getValue(), ilAssLongmenuCorrectionsInputGUI\insert(), ilHiddenInputGUI\insert(), ilAssErrorTextCorrectionsInputGUI\insert(), ilAssSingleChoiceCorrectionsInputGUI\insert(), ilAssMatchingPairCorrectionsInputGUI\insert(), ilAssClozeTestCombinationVariantsInputGUI\insert(), ilImagemapCorrectionsInputGUI\insert(), ilRandomTestROInputGUI\insert(), ilAssMultipleChoiceCorrectionsInputGUI\insert(), ilFontSizeInputGUI\insert(), ilBackgroundImageInputGUI\insert(), ilNumericStyleValueInputGUI\insert(), ilSelectBuilderInputGUI\insert(), ilWidthHeightInputGUI\insert(), ilEMailInputGUI\insert(), ilImageFileInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilUserLoginInputGUI\insert(), ilAssAnswerCorrectionsInputGUI\insert(), ilLocationInputGUI\insert(), ilTRBLBorderStyleInputGUI\insert(), ilBackgroundPositionInputGUI\insert(), ilTypicalLearningTimeInputGUI\insert(), ilTRBLBorderWidthInputGUI\insert(), ilTRBLNumericStyleValueInputGUI\insert(), ilColorPickerInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilFileWizardInputGUI\insert(), ilSuggestedSolutionSelectorGUI\insert(), ilCSSRectInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilImageWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilErrorTextWizardInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilImagemapFileInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilTextAreaInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilAssNestedOrderingElementsInputGUI\isPostSubmit(), ilMultipleImagesInputGUI\onCheckInput(), ilGloAdvColSortInputGUI\render(), ilMailQuickFilterInputGUI\render(), ilNestedListInputGUI\render(), ilRadioGroupInputGUI\render(), ilNonEditableValueGUI\render(), ilTextWizardInputGUI\render(), ilCheckboxInputGUI\render(), ilSelectInputGUI\render(), ilExplorerSelectInputGUI\render(), ilMultiSelectInputGUI\render(), ilScheduleInputGUI\render(), ilCheckboxGroupInputGUI\render(), ilChatroomAuthInputGUI\render(), ilDurationInputGUI\render(), ilRepositorySelectorInputGUI\render(), ilTagInputGUI\render(), ilDateTimeInputGUI\render(), ilPasswordInputGUI\render(), ilMultipleImagesInputGUI\render(), ilFileInputGUI\render(), ilNumberInputGUI\render(), ilTextInputGUI\render(), ilLinkInputGUI\render(), ilDateDurationInputGUI\render(), ilAssQuestionAuthoringFormGUI\replaceFormItemByPostVar(), ilTaxAssignInputGUI\saveInput(), ilIdentifiedMultiValuesInputGUI\setIdentifiedMultiValuesByArray(), ilImagemapCorrectionsInputGUI\setValueByArray(), ilEMailInputGUI\setValueByArray(), ilFileInputGUI\setValueByArray(), ilUserLoginInputGUI\setValueByArray(), ilHiddenInputGUI\setValueByArray(), ilColorPickerInputGUI\setValueByArray(), ilRadioGroupInputGUI\setValueByArray(), ilOrgUnitAuthorityInputGUI\setValueByArray(), ilScheduleInputGUI\setValueByArray(), ilAdvSelectInputGUI\setValueByArray(), ilCheckboxInputGUI\setValueByArray(), ilAlphabetInputGUI\setValueByArray(), ilRepositorySelectorInputGUI\setValueByArray(), ilSingleChoiceWizardInputGUI\setValueByArray(), ilSelectInputGUI\setValueByArray(), ilLocationInputGUI\setValueByArray(), ilTypicalLearningTimeInputGUI\setValueByArray(), ilCheckboxGroupInputGUI\setValueByArray(), ilSelectBuilderInputGUI\setValueByArray(), ilGloAdvColSortInputGUI\setValueByArray(), ilPasswordInputGUI\setValueByArray(), ilChatroomAuthInputGUI\setValueByArray(), ilMultiSelectInputGUI\setValueByArray(), ilExplorerSelectInputGUI\setValueByArray(), ilCSSRectInputGUI\setValueByArray(), ilDateTimeInputGUI\setValueByArray(), ilBackgroundImageInputGUI\setValueByArray(), ilImagemapFileInputGUI\setValueByArray(), ilNumericStyleValueInputGUI\setValueByArray(), ilTextInputGUI\setValueByArray(), ilNumberInputGUI\setValueByArray(), ilOrgUnitMultiLineInputGUI\setValueByArray(), ilWidthHeightInputGUI\setValueByArray(), ilFontSizeInputGUI\setValueByArray(), ilDurationInputGUI\setValueByArray(), ilOrgUnitGenericMultiInputGUI\setValueByArray(), ilSuggestedSolutionSelectorGUI\setValueByArray(), ilNonEditableValueGUI\setValueByArray(), ilTagInputGUI\setValueByArray(), ilManualPlaceholderInputGUI\setValueByArray(), ilDateDurationInputGUI\setValueByArray(), ilDclGenericMultiInputGUI\setValueByArray(), ilTRBLBorderStyleInputGUI\setValueByArray(), ilLinkInputGUI\setValueByArray(), ilTRBLNumericStyleValueInputGUI\setValueByArray(), ilBackgroundPositionInputGUI\setValueByArray(), ilIdentifiedMultiValuesInputGUI\setValueByArray(), ilTRBLBorderWidthInputGUI\setValueByArray(), ilTextAreaInputGUI\setValueByArray(), and ilRepositorySelectorInputGUI\showRepositorySelection().

117  : string
118  {
119  return $this->postvar;
120  }
+ Here is the caller graph for this function:

◆ getRequestParam()

ilFormPropertyGUI::getRequestParam ( string  $key,
Refinery\Transformation  $t 
)
protected
Returns
mixed|null

Definition at line 568 of file class.ilFormPropertyGUI.php.

References ILIAS\LTI\ToolProvider\$key, and ILIAS\FileDelivery\http().

Referenced by arrayArray(), ilFormulaInputGUI\getInput(), int(), intArray(), raw(), ilEMailInputGUI\sanitize(), str(), and strArray().

569  {
570  if (isset($this->set_params[$key])) {
571  return $this->set_params[$key];
572  }
573  $w = $this->http->wrapper();
574  if ($w->post()->has($key)) {
575  return $w->post()->retrieve($key, $t);
576  }
577  if ($w->query()->has($key)) {
578  return $w->query()->retrieve($key, $t);
579  }
580  return null;
581  }
static http()
Fetches the global http state from ILIAS.
string $key
Consumer key/client ID value.
Definition: System.php:193
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRequired()

ilFormPropertyGUI::getRequired ( )

Definition at line 154 of file class.ilFormPropertyGUI.php.

References $required.

Referenced by ilDclCheckboxInputGUI\checkInput(), ilColorPickerInputGUI\checkInput(), ilAssErrorTextCorrectionsInputGUI\checkInput(), ilUriInputGUI\checkInput(), ilImagemapCorrectionsInputGUI\checkInput(), ilFormulaInputGUI\checkInput(), ilMultipleChoiceWizardInputGUI\checkInput(), ilFontSizeInputGUI\checkInput(), ilAssMatchingPairCorrectionsInputGUI\checkInput(), ilNumericStyleValueInputGUI\checkInput(), ilRegExpInputGUI\checkInput(), ilBackgroundImageInputGUI\checkInput(), ilSelectBuilderInputGUI\checkInput(), ilScheduleInputGUI\checkInput(), ilCustomInputGUI\checkInput(), ilRadioGroupInputGUI\checkInput(), ilTextWizardInputGUI\checkInput(), ilAdvSelectInputGUI\checkInput(), ilFileWizardInputGUI\checkInput(), ilEMailInputGUI\checkInput(), ilUserLoginInputGUI\checkInput(), ilSelectInputGUI\checkInput(), ilAlphabetInputGUI\checkInput(), ilLocationInputGUI\checkInput(), ilTypicalLearningTimeInputGUI\checkInput(), ilCheckboxGroupInputGUI\checkInput(), ilRepositorySelectorInputGUI\checkInput(), ilChatroomAuthInputGUI\checkInput(), ilExplorerSelectInputGUI\checkInput(), ilMultiSelectInputGUI\checkInput(), ilMatchingPairWizardInputGUI\checkInput(), ilDateTimeInputGUI\checkInput(), ilMatrixRowWizardInputGUI\checkInput(), ilCSSRectInputGUI\checkInput(), ilImageWizardInputGUI\checkInput(), ilOrgUnitMultiLineInputGUI\checkInput(), ilFileInputGUI\checkInput(), ilSuggestedSolutionSelectorGUI\checkInput(), ilImagemapFileInputGUI\checkInput(), ilTagInputGUI\checkInput(), ilPasswordInputGUI\checkInput(), ilMatchingWizardInputGUI\checkInput(), ilTextInputGUI\checkInput(), ilDclGenericMultiInputGUI\checkInput(), ilNumberInputGUI\checkInput(), ilCategoryWizardInputGUI\checkInput(), ilErrorTextWizardInputGUI\checkInput(), ilDateDurationInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), ilKVPWizardInputGUI\checkInput(), ilLinkInputGUI\checkInput(), ilTextAreaInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkUploads(), ilOrgUnitAuthorityInputGUI\getValue(), ilEMailInputGUI\insert(), ilUserLoginInputGUI\insert(), ilTextAreaInputGUI\insert(), ilMultipleTextsInputGUI\onCheckInput(), ilMultipleImagesInputGUI\onCheckInput(), ilSelectInputGUI\render(), ilDateTimeInputGUI\render(), ilPasswordInputGUI\render(), ilNumberInputGUI\render(), ilTextInputGUI\render(), ilLinkInputGUI\render(), and ilDateDurationInputGUI\render().

154  : bool
155  {
156  return $this->required;
157  }
+ Here is the caller graph for this function:

◆ getSessionKey()

ilFormPropertyGUI::getSessionKey ( )
protected

Definition at line 282 of file class.ilFormPropertyGUI.php.

References getFieldId(), getParentForm(), and getParentTable().

Referenced by clearFromSession(), readFromSession(), and writeToSession().

282  : string
283  {
284  $parent = $this->getParentForm();
285  if (!is_object($parent)) {
286  $parent = $this->getParentTable();
287  }
288  return "form_" . $parent->getId() . "_" . $this->getFieldId();
289  }
getParentTable()
Get parent table.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSubForm()

ilFormPropertyGUI::getSubForm ( )

Definition at line 198 of file class.ilFormPropertyGUI.php.

199  {
200  return null;
201  }

◆ getTableFilterLabelFor()

ilFormPropertyGUI::getTableFilterLabelFor ( )

Get label "for" attribute value for filter.

Definition at line 420 of file class.ilFormPropertyGUI.php.

References getFieldId().

420  : string
421  {
422  return $this->getFieldId();
423  }
+ Here is the call graph for this function:

◆ getTitle()

ilFormPropertyGUI::getTitle ( )

Definition at line 107 of file class.ilFormPropertyGUI.php.

References $title.

Referenced by ilMailQuickFilterInputGUI\render(), ilCheckboxInputGUI\render(), ilSelectInputGUI\render(), ilTextInputGUI\render(), and ilMailFormGUI\showForm().

107  : string
108  {
109  return $this->title;
110  }
+ Here is the caller graph for this function:

◆ getType()

ilFormPropertyGUI::getType ( )

Definition at line 97 of file class.ilFormPropertyGUI.php.

References $type.

97  : string
98  {
99  return $this->type;
100  }

◆ hideSubForm()

ilFormPropertyGUI::hideSubForm ( )

Definition at line 203 of file class.ilFormPropertyGUI.php.

203  : bool
204  {
205  return false;
206  }

◆ int()

ilFormPropertyGUI::int (   $key)
protected

Definition at line 434 of file class.ilFormPropertyGUI.php.

References ILIAS\LTI\ToolProvider\$key, getRequestParam(), and ILIAS\Repository\refinery().

Referenced by ilDateTimeInputGUI\getDatePickerTimeFormat(), ilDateDurationInputGUI\getDatePickerTimeFormat(), ilLocationInputGUI\getInput(), ilDurationInputGUI\getPostValueForComparison(), ilWidthHeightInputGUI\insert(), intArray(), ilScheduleInputGUI\parseTime(), ilMultipleNestedOrderingElementsInputGUI\renderEndSubList(), ilTaxAssignInputGUI\saveInput(), ilRepositorySelectorInputGUI\setValue(), and ilDurationInputGUI\setValueByArray().

434  : int
435  {
436  if (is_null($this->refinery)) {
437  return 0;
438  }
439  $t = $this->refinery->kindlyTo()->int();
440  return (int) ($this->getRequestParam($key, $t) ?? 0);
441  }
getRequestParam(string $key, Refinery\Transformation $t)
string $key
Consumer key/client ID value.
Definition: System.php:193
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ intArray()

ilFormPropertyGUI::intArray (   $key)
protected

Definition at line 444 of file class.ilFormPropertyGUI.php.

References ILIAS\LTI\ToolProvider\$key, getRequestParam(), int(), isRequestParamArray(), and ILIAS\Repository\refinery().

444  : array
445  {
446  if (!$this->isRequestParamArray($key)) {
447  return [];
448  }
449  $t = $this->refinery->custom()->transformation(
450  function ($arr) {
451  // keep keys(!), transform all values to int
452  return array_column(
453  array_map(
454  function ($k, $v) {
455  return [$k, (int) $v];
456  },
457  array_keys($arr),
458  $arr
459  ),
460  1,
461  0
462  );
463  }
464  );
465  return (array) ($this->getRequestParam($key, $t) ?? []);
466  }
getRequestParam(string $key, Refinery\Transformation $t)
string $key
Consumer key/client ID value.
Definition: System.php:193
+ Here is the call graph for this function:

◆ isRequestParamArray()

ilFormPropertyGUI::isRequestParamArray ( string  $key)
protected

Definition at line 542 of file class.ilFormPropertyGUI.php.

References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().

Referenced by arrayArray(), ilNonEditableValueGUI\getInput(), intArray(), and strArray().

542  : bool
543  {
544  $no_transform = $this->refinery->identity();
545  $w = $this->http->wrapper();
546  if ($w->post()->has($key)) {
547  return is_array($w->post()->retrieve($key, $no_transform));
548  }
549  if ($w->query()->has($key)) {
550  return is_array($w->query()->retrieve($key, $no_transform));
551  }
552  return false;
553  }
static http()
Fetches the global http state from ILIAS.
string $key
Consumer key/client ID value.
Definition: System.php:193
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ raw()

ilFormPropertyGUI::raw (   $key)
protected

Definition at line 481 of file class.ilFormPropertyGUI.php.

References ILIAS\LTI\ToolProvider\$key, getRequestParam(), and ILIAS\Repository\refinery().

Referenced by ilSamlIdpMetadataInputGUI\checkInput(), ilClozeGapInputBuilderGUI\checkInput(), ilOrgUnitGenericMultiInputGUI\checkInput(), ilPasswordInputGUI\checkInput(), ilPasswordInputGUI\getInput(), and ilTextAreaInputGUI\getInput().

482  {
483  $t = $this->refinery->custom()->transformation(function ($v) {
484  return $v;
485  });
486  return $this->getRequestParam($key, $t);
487  }
getRequestParam(string $key, Refinery\Transformation $t)
string $key
Consumer key/client ID value.
Definition: System.php:193
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readFromSession()

ilFormPropertyGUI::readFromSession ( )
Exceptions
Exception

Definition at line 303 of file class.ilFormPropertyGUI.php.

References checkParentFormTable(), ilSession\get(), getSessionKey(), ilSession\has(), and unserializeData().

Referenced by ilMMSubItemTableGUI\addAndReadFilterItem().

303  : void
304  {
305  $this->checkParentFormTable();
306  if (ilSession::has($this->getSessionKey())) {
307  $this->unserializeData(ilSession::get($this->getSessionKey()));
308  } else {
309  $this->unserializeData("");
310  }
311  }
static get(string $a_var)
unserializeData(string $a_data)
static has($a_var)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeProhibitedCharacters()

static ilFormPropertyGUI::removeProhibitedCharacters ( string  $a_text)
static

Remove prohibited characters see #19159.

Definition at line 400 of file class.ilFormPropertyGUI.php.

Referenced by ilLMObject\saveTitles().

400  : string
401  {
402  return str_replace("\x0B", "", $a_text);
403  }
+ Here is the caller graph for this function:

◆ serializeData()

ilFormPropertyGUI::serializeData ( )

Definition at line 230 of file class.ilFormPropertyGUI.php.

References ILIAS\UI\Implementation\Component\Input\getValue().

Referenced by writeToSession().

230  : string
231  {
232  return serialize($this->getValue());
233  }
getValue()
Get the value that is displayed in the input client side.
Definition: Group.php:47
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAlert()

ilFormPropertyGUI::setAlert ( string  $a_alert)

Definition at line 139 of file class.ilFormPropertyGUI.php.

Referenced by ilDclCheckboxInputGUI\checkInput(), ilDclTextInputGUI\checkInput(), ilCharSelectorRadioGroupInputGUI\checkInput(), ilSamlIdpMetadataInputGUI\checkInput(), ilLuceneQueryInputGUI\checkInput(), ilAssClozeTestCombinationVariantsInputGUI\checkInput(), ilColorPickerInputGUI\checkInput(), ilKprimChoiceCorrectionsInputGUI\checkInput(), ilAssErrorTextCorrectionsInputGUI\checkInput(), ilMailQuickFilterInputGUI\checkInput(), ilUriInputGUI\checkInput(), ilAssSingleChoiceCorrectionsInputGUI\checkInput(), ilAssMultipleChoiceCorrectionsInputGUI\checkInput(), ilEssayKeywordWizardInputGUI\checkInput(), ilImagemapCorrectionsInputGUI\checkInput(), ilMultipleChoiceWizardInputGUI\checkInput(), ilFormulaInputGUI\checkInput(), ilFontSizeInputGUI\checkInput(), ilAssMatchingPairCorrectionsInputGUI\checkInput(), ilRecurrenceInputGUI\checkInput(), ilAssAnswerCorrectionsInputGUI\checkInput(), ilBackgroundImageInputGUI\checkInput(), ilNumericStyleValueInputGUI\checkInput(), ilRegExpInputGUI\checkInput(), ilSelectBuilderInputGUI\checkInput(), ilCustomInputGUI\checkInput(), ilScheduleInputGUI\checkInput(), ilRadioGroupInputGUI\checkInput(), ilTextWizardInputGUI\checkInput(), ilAdvSelectInputGUI\checkInput(), ilFileWizardInputGUI\checkInput(), ilEMailInputGUI\checkInput(), ilUserLoginInputGUI\checkInput(), ilSelectInputGUI\checkInput(), ilAlphabetInputGUI\checkInput(), ilBackgroundPositionInputGUI\checkInput(), ilLocationInputGUI\checkInput(), ilTRBLBorderWidthInputGUI\checkInput(), ilTypicalLearningTimeInputGUI\checkInput(), ilCheckboxGroupInputGUI\checkInput(), ilTRBLNumericStyleValueInputGUI\checkInput(), ilRepositorySelectorInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkInput(), ilChatroomAuthInputGUI\checkInput(), ilExplorerSelectInputGUI\checkInput(), ilMultiSelectInputGUI\checkInput(), ilMatchingPairWizardInputGUI\checkInput(), ilDateTimeInputGUI\checkInput(), ilMatrixRowWizardInputGUI\checkInput(), ilCSSRectInputGUI\checkInput(), ilImageWizardInputGUI\checkInput(), ilOrgUnitMultiLineInputGUI\checkInput(), ilFileInputGUI\checkInput(), ilSuggestedSolutionSelectorGUI\checkInput(), ilImagemapFileInputGUI\checkInput(), ilOrgUnitGenericMultiInputGUI\checkInput(), ilTagInputGUI\checkInput(), ilPasswordInputGUI\checkInput(), ilMatchingWizardInputGUI\checkInput(), ilTextInputGUI\checkInput(), ilDclGenericMultiInputGUI\checkInput(), ilNumberInputGUI\checkInput(), ilCategoryWizardInputGUI\checkInput(), ilAnswerWizardInputGUI\checkInput(), ilErrorTextWizardInputGUI\checkInput(), ilDateDurationInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), ilKVPWizardInputGUI\checkInput(), ilLinkInputGUI\checkInput(), ilTextAreaInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkUploads(), ilCourseRegistrationGUI\fillRegistrationType(), ilMultipleTextsInputGUI\onCheckInput(), and ilMultipleImagesInputGUI\onCheckInput().

139  : void
140  {
141  $this->alert = $a_alert;
142  }
+ Here is the caller graph for this function:

◆ setDisabled()

◆ setHiddenTitle()

ilFormPropertyGUI::setHiddenTitle ( string  $a_val)

Definition at line 209 of file class.ilFormPropertyGUI.php.

Referenced by ilImageFileInputGUI\__construct(), and ilFileInputGUI\__construct().

209  : void
210  {
211  $this->hidden_title = $a_val;
212  }
+ Here is the caller graph for this function:

◆ setInfo()

ilFormPropertyGUI::setInfo ( string  $a_info)

Definition at line 129 of file class.ilFormPropertyGUI.php.

References ILIAS\UI\examples\MessageBox\Info\info().

Referenced by ilForumThreadFormGUI\addAllowNotificationInput(), ilObjTestSettingsGeneralGUI\addAvailabilityProperties(), ilForumSettingsGUI\addAvailabilitySection(), ilObjContentPageGUI\addAvailabilitySection(), ilADTFormBridge\addBasicFieldProperties(), ilObjCourseAdministrationGUI\addChildContentsTo(), ilMailCronNotification\addCustomSettingsToForm(), ilMailCronOrphanedMails\addCustomSettingsToForm(), ilCronDeleteInactivatedUserAccounts\addCustomSettingsToForm(), ilCronDeleteNeverLoggedInUserAccounts\addCustomSettingsToForm(), ilCronDeleteInactiveUserAccounts\addCustomSettingsToForm(), SurveyMatrixQuestionGUI\addFieldsToEditForm(), ilCharSelectorGUI\addFormProperties(), ilObjTestSettingsGeneralGUI\addGeneralProperties(), ilSamlSettingsGUI\addMetadataElement(), ilTestExpressPageObjectGUI\addQuestion(), ilObjTestSettingsGeneralGUI\addQuestionBehaviourProperties(), ilObjTestGUI\addQuestionObject(), ilObjTestSettingsGeneralGUI\addTestAccessProperties(), ilObjTestSettingsGeneralGUI\addTestFinishProperties(), ilObjTestSettingsGeneralGUI\addTestRunProperties(), ilObjectCommonSettingFormAdapter\addTileImage(), ilNewsForContextBlockGUI\addToSettingsForm(), ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilObjQuestionPoolGUI\buildCreateQuestionForm(), ilDclTextFieldRepresentation\buildFieldCreationInput(), ilDclReferenceFieldRepresentation\buildFieldCreationInput(), ilCmiXapiRegistrationGUI\buildForm(), ilCmiXapiSettingsGUI\buildForm(), ilObjQuestionPoolSettingsGeneralGUI\buildForm(), ilObjTestSettingsGeneralGUI\buildForm(), ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), ilLTIConsumerAdministrationGUI\buildProviderImportForm(), ilTestParticipantsTimeExtensionGUI\buildTimingForm(), ilObjEmployeeTalkGUI\cancelDeleteObject(), ilCertificateSettingsFormRepository\createForm(), ilObjTestGUI\createQuestionObject(), ilPCQuestionOverviewGUI\edit(), ilObjLanguageExtGUI\exportObject(), ilCourseRegistrationGUI\fillRegistrationType(), ilPasswordAssistanceGUI\getAssignPasswordForm(), ilChatroomFormFactory\getClientSettingsForm(), ilForumSettingsGUI\getCustomForm(), ilMarkSchemaGUI\getEctsForm(), ilNewsItemGUI\getEditForm(), ilExerciseManagementGUI\getEvaluationModalForm(), ilObjMailGUI\getExternalSettingsForm(), ilObjectCustomIconConfigurationGUI\getForm(), ilObjMailGUI\getGeneralSettingsForm(), ilSamlSettingsGUI\getIdpSettingsForm(), ilDclTextFieldRepresentation\getInputField(), ilChatroomFormFactory\getSettingsForm(), ilObjLearningResourcesSettingsGUI\getSettingsForm(), ilObjForumAdministrationGUI\getSettingsForm(), ilSamlSettingsGUI\getSettingsForm(), ilUserStartingPointGUI\getUserStartingPointForm(), ilSurveyParticipantsGUI\importAccessCodesObject(), ilSurveyParticipantsGUI\importExternalMailRecipientsFromFileFormObject(), ilMailOptionsFormGUI\init(), ilPageObjectGUI\initActivationForm(), ilObjMediaCastGUI\initAddCastItemForm(), ilRegistrationSettingsGUI\initAddCodesForm(), ilExAssignmentEditorGUI\initAssignmentForm(), ilObjAuthSettingsGUI\initAuthModeDetermination(), ilObjPortfolioGUI\initBlogForm(), ilObjPortfolioGUI\initCreatePortfolioFromTemplateForm(), ilExcCriteriaText\initCustomForm(), ilObjRepositorySettingsGUI\initCustomIconsForm(), ilObjPollGUI\initEditCustomForm(), ilObjTalkTemplateGUI\initEditCustomForm(), ilObjItemGroupGUI\initEditCustomForm(), ilObjBlogGUI\initEditCustomForm(), ilObjPortfolioTemplateGUI\initEditCustomForm(), ilObjBookingPoolGUI\initEditCustomForm(), ilObjSurveyQuestionPoolGUI\initEditForm(), ilObjDataCollectionGUI\initEditForm(), ilObjCategoryGUI\initEditForm(), ilObjCourseGUI\initEditForm(), ilDidacticTemplateSettingsGUI\initEditTemplate(), ilLTIConsumerSettingsFormGUI\initForm(), ilLTIConsumeProviderFormGUI\initForm(), ilContainerNewsSettingsGUI\initForm(), ilPCMyCoursesGUI\initForm(), ilRegistrationSettingsGUI\initForm(), ilBookingScheduleGUI\initForm(), ilCalendarAppointmentGUI\initForm(), ilDclTableEditGUI\initForm(), ilSkillCategoryGUI\initForm(), ilSkillTemplateReferenceGUI\initForm(), ilBasicSkillGUI\initForm(), ilDclFieldEditGUI\initForm(), ilPCSectionGUI\initForm(), ilObjMediaObjectGUI\initForm(), ilLDAPSettingsGUI\initForm(), ilObjUserGUI\initForm(), ilObjGroupGUI\initForm(), ilObjSessionGUI\initForm(), ilConditionHandlerGUI\initFormCondition(), ilObjectActivationGUI\initFormEdit(), ilObjUserFolderGUI\initFormGeneralSettings(), ilLDAPSettingsGUI\initFormRoleAssignments(), ilConsultationHoursGUI\initFormSequence(), ilCASSettingsGUI\initFormSettings(), ilObjExerciseAdministrationGUI\initFormSettings(), ilObjWebResourceAdministrationGUI\initFormSettings(), ilObjBlogAdministrationGUI\initFormSettings(), ilObjCalendarSettingsGUI\initFormSettings(), ilObjPortfolioAdministrationGUI\initFormSettings(), ilObjLoggingSettingsGUI\initFormSettings(), ilObjBadgeAdministrationGUI\initFormSettings(), ilObjTaggingSettingsGUI\initFormSettings(), ilObjAwarenessAdministrationGUI\initFormSettings(), ilECSParticipantSettingsGUI\initFormSettings(), ilObjSystemCheckGUI\initFormTrash(), ilObjAdvancedEditingGUI\initGeneralPageSettingsForm(), ilPersonalSettingsGUI\initGeneralSettingsForm(), ilDclRecordListGUI\initImportForm(), ilObjContentObjectGUI\initImportForm(), ilObjGroupGUI\initInfoEditor(), ilContainerGUI\initListPresentationForm(), ilObjUserFolderGUI\initLoginSettingsForm(), ilObjMediaObjectsSettingsGUI\initMediaObjectsSettingsForm(), ilObjContentObjectGUI\initMenuForm(), ilCmiXapiLP\initModeOptions(), ilObjLanguageExtGUI\initNewImportForm(), ilLTIProviderObjectSettingGUI\initObjectSettingsForm(), assOrderingQuestion\initOrderingElementFormFieldLabels(), ilObjAdvancedEditingGUI\initPageEditorForm(), ilPersonalSettingsGUI\initPasswordForm(), ilExAssignmentEditorGUI\initPeerReviewForm(), ilObjSCORMLearningModuleGUI\initPropertiesForm(), ilObjSCORM2004LearningModuleGUI\initPropertiesForm(), ilObjStyleSheetGUI\initPropertiesForm(), ilObjContentObjectGUI\initPropertiesForm(), ilObjFileGUI\initPropertiesForm(), ilPersonalProfileGUI\initPublicProfileForm(), ilSurveyEditorGUI\initQuestionblockForm(), ilObjForumGUI\initReplyEditForm(), ilPermissionGUI\initRoleForm(), ilObjectServiceSettingsGUI\initServiceSettingsForm(), ilOrgUnitGlobalSettingsGUI\initSettingsForm(), ilObjSurveyAdministrationGUI\initSettingsForm(), ilCalendarUserSettingsGUI\initSettingsForm(), ilObjFileAccessSettingsGUI\initSettingsForm(), ilObjRepositorySettingsGUI\initSettingsForm(), ilObjFileServicesGUI\initSettingsForm(), ilObjUserTrackingGUI\initSettingsForm(), ilECSSettingsGUI\initSettingsForm(), ilObjGlossaryGUI\initSettingsForm(), ilObjRoleFolderGUI\initSettingsForm(), ilObjWikiGUI\initSettingsForm(), ilNewsForContextBlockGUI\initSettingsForm(), ilObjMediaCastGUI\initSettingsForm(), ilObjectContentStyleSettingsGUI\initStylePropertiesForm(), ilLTIConsumeProviderFormGUI\initToolConfigForm(), ilPCQuestionGUI\insert(), ilObjExerciseGUI\listAssignmentsObject(), ilMDEditorGUI\listQuickEditCopyright(), ilObjLanguageExtGUI\maintainObject(), ilAdvancedMDRecordTranslations\modifyTranslationInfoForDescription(), ilAdvancedMDFieldTranslations\modifyTranslationInfoForDescription(), ilAdvancedMDRecordTranslations\modifyTranslationInfoForTitle(), ilAdvancedMDFieldTranslations\modifyTranslationInfoForTitle(), ilExerciseSubmissionTableGUI\parseColumns(), ilAdvancedMDRecordGUI\parseRecordSelection(), assKprimChoiceGUI\populateAnswerSpecificFormPart(), assFileUploadGUI\populateCorrectionsFormProperties(), assKprimChoiceGUI\populateCorrectionsFormProperties(), assFileUploadGUI\populateQuestionSpecificFormPart(), assKprimChoiceGUI\populateQuestionSpecificFormPart(), assNumericGUI\populateQuestionSpecificFormPart(), assTextQuestionGUI\populateQuestionSpecificFormPart(), assMultipleChoiceGUI\populateQuestionSpecificFormPart(), ilLDAPSettingsGUI\roleMapping(), ilObjAssessmentFolderGUI\settingsObject(), ilDclBaseFieldRepresentation\setupInputField(), ilObjSystemFolderGUI\showBasicSettingsObject(), and ilConditionHandlerGUI\showObligatoryForm().

129  : void
130  {
131  $this->info = $a_info;
132  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setMulti()

ilFormPropertyGUI::setMulti ( bool  $a_multi,
bool  $a_sortable = false,
bool  $a_addremove = true 
)

Definition at line 322 of file class.ilFormPropertyGUI.php.

Referenced by ilTaxAssignInputGUI\__construct().

326  : void {
327  if (!$this instanceof ilMultiValuesItem) {
328  throw new ilFormException(sprintf(
329  "%s not supported for form property type %s",
330  __FUNCTION__,
331  get_class($this)
332  ));
333  }
334 
335  $this->multi = $a_multi;
336  $this->multi_sortable = $a_sortable;
337  $this->multi_addremove = $a_addremove;
338  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

◆ setMultiValues()

ilFormPropertyGUI::setMultiValues ( array  $a_values)

Definition at line 345 of file class.ilFormPropertyGUI.php.

Referenced by ilObjBlogGUI\initEditCustomForm(), ilSelectInputGUI\setValue(), ilNonEditableValueGUI\setValue(), ilManualPlaceholderInputGUI\setValue(), and ilPersonalProfileGUI\showPublicProfileFields().

345  : void
346  {
347  $this->multi_values = array_unique($a_values);
348  }
+ Here is the caller graph for this function:

◆ setParent()

ilFormPropertyGUI::setParent ( ilFormPropertyGUI  $a_val)

Definition at line 188 of file class.ilFormPropertyGUI.php.

Referenced by ilSubEnabledFormPropertyGUI\addSubItem().

188  : void
189  {
190  $this->parent_gui = $a_val;
191  }
+ Here is the caller graph for this function:

◆ setParentForm()

ilFormPropertyGUI::setParentForm ( ilPropertyFormGUI  $a_parentform)

Definition at line 177 of file class.ilFormPropertyGUI.php.

Referenced by ilPCSectionGUI\initForm().

177  : void
178  {
179  $this->parentform = $a_parentform;
180  }
+ Here is the caller graph for this function:

◆ setParentTable()

ilFormPropertyGUI::setParentTable (   $a_val)

Set parent table.

Parameters
ilTable2GUI$a_valtable object

Definition at line 250 of file class.ilFormPropertyGUI.php.

250  : void
251  {
252  $this->parent_table = $a_val;
253  }

◆ setPostVar()

ilFormPropertyGUI::setPostVar ( string  $a_postvar)

Definition at line 112 of file class.ilFormPropertyGUI.php.

Referenced by __construct(), ilIdentifiedMultiValuesInputGUI\getFieldIdFromPostVar(), ilObjMediaCastGUI\initAddCastItemForm(), ilLDAPSettingsGUI\initRoleMappingForm(), and ilLDAPSettingsGUI\roleMapping().

112  : void
113  {
114  $this->postvar = $a_postvar;
115  }
+ Here is the caller graph for this function:

◆ setRequestParam()

ilFormPropertyGUI::setRequestParam ( string  $key,
  $val 
)

This writes the request (aka post) values.

Code that relies on this should be refactored as soon as possible.

Deprecated:

Definition at line 560 of file class.ilFormPropertyGUI.php.

References ILIAS\LTI\ToolProvider\$key.

560  : void
561  {
562  $this->set_params[$key] = $val;
563  }
string $key
Consumer key/client ID value.
Definition: System.php:193

◆ setRequired()

ilFormPropertyGUI::setRequired ( bool  $a_required)

Definition at line 149 of file class.ilFormPropertyGUI.php.

Referenced by FormMailCodesGUI\__construct(), ilRandomTestROInputGUI\__construct(), ilObjTestSettingsGeneralGUI\addAvailabilityProperties(), ilADTFormBridge\addBasicFieldProperties(), ilMemberAgreementGUI\addCustomFields(), ilAdvancedMDFieldDefinitionFloat\addCustomFieldToDefinitionForm(), ilCronOerHarvester\addCustomSettingsToForm(), ilExAssTypePortfolioGUI\addEditFormCustomProperties(), ilExAssTypeWikiTeamGUI\addEditFormCustomProperties(), SurveyMatrixQuestionGUI\addFieldsToEditForm(), SurveyMultipleChoiceQuestionGUI\addFieldsToEditForm(), SurveyMetricQuestionGUI\addFieldsToEditForm(), SurveyTextQuestionGUI\addFieldsToEditForm(), SurveySingleChoiceQuestionGUI\addFieldsToEditForm(), ilDclGenericMultiInputGUI\addInput(), ilTestExpressPageObjectGUI\addQuestion(), ilObjTestSettingsGeneralGUI\addQuestionBehaviourProperties(), ilObjTestGUI\addQuestionObject(), ilSystemStyleIconsGUI\addSelectIconToolbar(), ilECSObjectSettings\addSettingsToForm(), ilObjTestSettingsGeneralGUI\addTestAccessProperties(), ilObjTestSettingsGeneralGUI\addTestFinishProperties(), ilObjTestSettingsGeneralGUI\addTestIntroProperties(), ilMembershipNotifications\addToSettingsForm(), ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilDclSelectionFieldRepresentation\buildFieldCreationInput(), ilCmiXapiSettingsGUI\buildForm(), ilAssQuestionHintGUI\buildForm(), ilTestPasswordProtectionGUI\buildPasswordForm(), ilAssQuestionSkillAssignmentPropertyFormGUI\buildResultSkillPointsInputField(), ilAssClozeTestFeedback\completeSpecificFormProperties(), ilCertificateSettingsFormRepository\createForm(), ilSurveyEditorGUI\createQuestionObject(), ilObjTestGUI\createQuestionObject(), ilDidacticTemplateSettingsGUI\editImportForm(), ilObjMailGUI\getExternalSettingsForm(), ilObjStyleSheetGUI\getImportForm(), ilObjQuestionPoolGUI\getImportQuestionsForm(), ilUserStartingPointGUI\getRoleStartingPointForm(), ilChatroomFormFactory\getSettingsForm(), ilMailAttachmentGUI\getToolbarForm(), ilSystemStyleOverviewGUI\importSystemStyleForm(), ilObjUserFolderGUI\initAccessRestrictionForm(), ilPageObjectGUI\initActivationForm(), ilObjMediaCastGUI\initAddCastItemForm(), ilAccountCodesGUI\initAddCodesForm(), ilRegistrationSettingsGUI\initAddCodesForm(), ilPCFileItemGUI\initAddFileForm(), ilPortfolioRoleAssignmentGUI\initAssignmentForm(), ilExAssignmentEditorGUI\initAssignmentForm(), ilExSubmissionTextGUI\initAssignmentTextForm(), ilBadgeManagementGUI\initBadgeForm(), ilBookingProcessGUI\initBookingNumbersForm(), ilECSSettingsGUI\initCategoryMappingForm(), ilObjStyleSheetGUI\initColorForm(), ilObjPortfolioGUI\initCopyPageFormOptions(), ilObjCmiXapiGUI\initCreateForm(), ilObjEmployeeTalkSeriesGUI\initCreateForm(), ilObjPortfolioGUI\initCreatePortfolioFromTemplateForm(), ilBlogPostingGUI\initDateForm(), ilObjPollGUI\initEditCustomForm(), ilObjBlogGUI\initEditCustomForm(), ilObjBookingPoolGUI\initEditCustomForm(), SurveyQuestionGUI\initEditForm(), ilPCFileListGUI\initEditForm(), ilObjectCustomUserFieldsGUI\initFieldForm(), ilLTIConsumerSettingsFormGUI\initForm(), ilLTIConsumeProviderFormGUI\initForm(), ilContainerNewsSettingsGUI\initForm(), ilLOTestAssignmentForm\initForm(), ilPCContentTemplateGUI\initForm(), ilOrgUnitSimpleUserImportGUI\initForm(), ilPCMapGUI\initForm(), ilPCConsultationHoursGUI\initForm(), ilAccountRegistrationGUI\initForm(), ilOrgUnitSimpleImportGUI\initForm(), ilBookingScheduleGUI\initForm(), ilCalendarAppointmentGUI\initForm(), ilContainerReferenceGUI\initForm(), ilCustomUserFieldsGUI\initForm(), ilBookingObjectGUI\initForm(), ilObjUserGUI\initForm(), ilObjSessionGUI\initForm(), ilECSMappingSettingsGUI\initFormCSettings(), ilContainerGUI\initFormPasswordInstruction(), ilAuthShibbolethSettingsGUI\initFormRoleAssignment(), ilLDAPSettingsGUI\initFormRoleAssignments(), ilLPListOfSettingsGUI\initFormSettings(), ilCASSettingsGUI\initFormSettings(), ilObjBlogAdministrationGUI\initFormSettings(), ilObjPortfolioAdministrationGUI\initFormSettings(), ilObjLinkResourceGUI\initFormSettings(), ilObjSystemCheckGUI\initFormTrash(), ilRepositoryTrashGUI\initFormTrashTargetLocation(), ilPersonalSettingsGUI\initGeneralSettingsForm(), ilObjBadgeAdministrationGUI\initImageTemplateForm(), ilDclRecordListGUI\initImportForm(), ilPermissionGUI\initImportForm(), ilObjSCORMLearningModuleGUI\initImportForm(), ilSurveyRaterGUI\initMailRatersForm(), ilSurveyParticipantsGUI\initMailRatersForm(), ilObjLanguageExtGUI\initNewImportForm(), ilObjPortfolioBaseGUI\initPageForm(), ilWorkspaceAccessGUI\initPasswordForm(), ilExAssignmentEditorGUI\initPeerReviewForm(), ilPersonalProfileGUI\initPersonalDataImportForm(), SurveyQuestionGUI\initPhrasesForm(), ilMediaCreationGUI\initPoolSelection(), ilExSubmissionObjectGUI\initPortfolioTemplateForm(), ilPCBlogGUI\initPostingForm(), ilPDNewsBlockGUI\initPrivateSettingsForm(), ilObjPollGUI\initQuestionForm(), ilObjForumGUI\initReplyEditForm(), ilEmployeeTalkAppointmentGUI\initSeriesEditForm(), ilObjSurveyAdministrationGUI\initSettingsForm(), ilOpenIdConnectSettingsGUI\initSettingsForm(), ilECSSettingsGUI\initSettingsForm(), ilLOEditorGUI\initSettingsForm(), ilNewsForContextBlockGUI\initSettingsForm(), ilChatroomAdminSmileyGUI\initSmiliesForm(), ilEmployeeTalkAppointmentGUI\initTalkEditForm(), ilObjWikiGUI\initTemplateSelectionForm(), ilLTIConsumeProviderFormGUI\initToolConfigForm(), ilUnitConfigurationGUI\initUnitForm(), ilObjSAHSLearningModuleGUI\initUploadForm(), assFormulaQuestionGUI\isSaveCommand(), SurveyQuestionGUI\material(), ilObjSCORMLearningModuleGUI\newModuleVersion(), ilSurveyPhrasesGUI\phraseEditor(), assMatchingQuestionGUI\populateAnswerSpecificFormPart(), assTextSubsetGUI\populateAnswerSpecificFormPart(), assTextQuestionGUI\populateAnswerSpecificFormPart(), assSingleChoiceGUI\populateAnswerSpecificFormPart(), assMultipleChoiceGUI\populateAnswerSpecificFormPart(), assTextSubsetGUI\populateCorrectionsFormProperties(), assLongMenuGUI\populateCorrectionsFormProperties(), assSingleChoiceGUI\populateCorrectionsFormProperties(), assKprimChoiceGUI\populateCorrectionsFormProperties(), assMultipleChoiceGUI\populateCorrectionsFormProperties(), assMatchingQuestionGUI\populateCorrectionsFormProperties(), ilAssQuestionSkillAssignmentPropertyFormGUI\populateFullProperties(), assKprimChoiceGUI\populateQuestionSpecificFormPart(), assImagemapQuestionGUI\populateQuestionSpecificFormPart(), assLongMenuGUI\populateQuestionSpecificFormPart(), assMatchingQuestionGUI\populateQuestionSpecificFormPart(), assClozeTestGUI\populateQuestionSpecificFormPart(), assClozeTestGUI\populateSelectGapFormPart(), assClozeTestGUI\populateTextGapFormPart(), ilSystemStyleIconsGUI\preview(), ilDclFileuploadFieldRepresentation\requiredWorkaroundForInputField(), ilAccessibilityCriterionFormGUI\setCheckInputCalled(), ilTermsOfServiceCriterionFormGUI\setCheckInputCalled(), ilObjCertificateSettingsGUI\settings(), ilObjAssessmentFolderGUI\settingsObject(), ilMailAttachmentGUI\showAttachments(), and assQuestionGUI\suggestedsolution().

149  : void
150  {
151  $this->required = $a_required;
152  }
+ Here is the caller graph for this function:

◆ setTitle()

◆ setType()

ilFormPropertyGUI::setType ( string  $a_type)
protected

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

Referenced by ilCountrySelectInputGUI\__construct(), ilTaxAssignInputGUI\__construct(), ilHiddenInputGUI\__construct(), ilGloAdvColSortInputGUI\__construct(), ilTaxSelectInputGUI\__construct(), ilRadioGroupInputGUI\__construct(), ilRegExpInputGUI\__construct(), ilBackgroundImageInputGUI\__construct(), ilFontSizeInputGUI\__construct(), ilNumericStyleValueInputGUI\__construct(), ilCheckboxGroupInputGUI\__construct(), ilColorPickerInputGUI\__construct(), ilCustomInputGUI\__construct(), ilCheckboxInputGUI\__construct(), ilNestedListInputGUI\__construct(), ilAdvSelectInputGUI\__construct(), ilUriInputGUI\__construct(), ilExplorerSelectInputGUI\__construct(), ilImageFileInputGUI\__construct(), ilLocationInputGUI\__construct(), ilWidthHeightInputGUI\__construct(), ilRepositorySelector2InputGUI\__construct(), ilSelectInputGUI\__construct(), ilBackgroundPositionInputGUI\__construct(), ilMultiSelectInputGUI\__construct(), ilDurationInputGUI\__construct(), ilDateTimeInputGUI\__construct(), ilTypicalLearningTimeInputGUI\__construct(), ilTRBLBorderStyleInputGUI\__construct(), ilTRBLBorderWidthInputGUI\__construct(), ilSuggestedSolutionSelectorGUI\__construct(), ilFileInputGUI\__construct(), ilTRBLColorPickerInputGUI\__construct(), ilTRBLNumericStyleValueInputGUI\__construct(), ilRepositorySelectorInputGUI\__construct(), ilDateDurationInputGUI\__construct(), ilTextInputGUI\__construct(), ilOrgUnitMultiLineInputGUI\__construct(), ilOrgUnitGenericMultiInputGUI\__construct(), ilLinkInputGUI\__construct(), ilDclGenericMultiInputGUI\__construct(), ilTextAreaInputGUI\__construct(), and ilTagInputGUI\__construct().

92  : void
93  {
94  $this->type = $a_type;
95  }
+ Here is the caller graph for this function:

◆ str()

ilFormPropertyGUI::str (   $key)
protected

Definition at line 469 of file class.ilFormPropertyGUI.php.

References ILIAS\LTI\ToolProvider\$key, getRequestParam(), ILIAS\Repository\refinery(), and stripSlashesAddSpaceFallback().

Referenced by ilLinkInputGUI\__construct(), ilCharSelectorRadioGroupInputGUI\checkInput(), ilUriInputGUI\checkInput(), ilAdvSelectInputGUI\checkInput(), ilEMailInputGUI\checkInput(), ilSelectInputGUI\checkInput(), ilAlphabetInputGUI\checkInput(), ilRepositorySelectorInputGUI\checkInput(), ilDateTimeInputGUI\checkInput(), ilFileInputGUI\checkInput(), ilPasswordInputGUI\checkInput(), ilTextInputGUI\checkInput(), ilNumberInputGUI\checkInput(), ilLinkInputGUI\checkInput(), ilImageFileInputGUI\getDeletionFlag(), ilRepositorySelector2InputGUI\getHTML(), ilColorPickerInputGUI\getInput(), ilHiddenInputGUI\getInput(), ilNonEditableValueGUI\getInput(), ilAdvSelectInputGUI\getInput(), ilCustomInputGUI\getInput(), ilRegExpInputGUI\getInput(), ilRadioGroupInputGUI\getInput(), ilUserLoginInputGUI\getInput(), ilAlphabetInputGUI\getInput(), ilCheckboxInputGUI\getInput(), ilSelectInputGUI\getInput(), ilRepositorySelectorInputGUI\getInput(), ilExplorerSelectInputGUI\getInput(), ilPasswordInputGUI\getInput(), ilTextInputGUI\getInput(), ilNumberInputGUI\getInput(), ilLinkInputGUI\getInput(), ilTextAreaInputGUI\getInput(), ilCategoryWizardInputGUI\getNeutralScaleInput(), ilScheduleInputGUI\getPostData(), ilDateTimeInputGUI\getPostValueForComparison(), ilRepositorySelector2InputGUI\render(), and ilCategoryWizardInputGUI\setValue().

469  : string
470  {
471  if (is_null($this->refinery)) {
472  return "";
473  }
474  $t = $this->refinery->kindlyTo()->string();
475  return $this->stripSlashesAddSpaceFallback(
476  (string) ($this->getRequestParam($key, $t) ?? "")
477  );
478  }
getRequestParam(string $key, Refinery\Transformation $t)
string $key
Consumer key/client ID value.
Definition: System.php:193
stripSlashesAddSpaceFallback(string $a_str)
Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ strArray()

ilFormPropertyGUI::strArray (   $key)
protected

Definition at line 490 of file class.ilFormPropertyGUI.php.

References ILIAS\LTI\ToolProvider\$key, getRequestParam(), isRequestParamArray(), ILIAS\Repository\refinery(), and stripSlashesAddSpaceFallback().

Referenced by ilCharSelectorRadioGroupInputGUI\checkInput(), ilSelectBuilderInputGUI\checkInput(), ilSelectInputGUI\checkInput(), ilLocationInputGUI\checkInput(), ilCheckboxGroupInputGUI\checkInput(), ilTagInputGUI\checkInput(), ilTextInputGUI\checkInput(), ilDateDurationInputGUI\checkInput(), ilNonEditableValueGUI\getInput(), ilFontSizeInputGUI\getInput(), ilNestedListInputGUI\getInput(), ilBackgroundImageInputGUI\getInput(), ilNumericStyleValueInputGUI\getInput(), ilSelectBuilderInputGUI\getInput(), ilWidthHeightInputGUI\getInput(), ilTextWizardInputGUI\getInput(), ilLocationInputGUI\getInput(), ilSelectInputGUI\getInput(), ilCheckboxGroupInputGUI\getInput(), ilExplorerSelectInputGUI\getInput(), ilMultiSelectInputGUI\getInput(), ilDurationInputGUI\getInput(), ilCSSRectInputGUI\getInput(), ilTextInputGUI\getInput(), ilDateDurationInputGUI\getInput(), ilCategoryWizardInputGUI\getNeutralInput(), ilScheduleInputGUI\getPostData(), and ilSelectBuilderInputGUI\setValueByArray().

490  : array
491  {
492  if (!$this->isRequestParamArray($key)) {
493  return [];
494  }
495  $t = $this->refinery->custom()->transformation(
496  function ($arr) {
497  // keep keys(!), transform all values to string
498  return array_column(
499  array_map(
500  function ($k, $v) {
501  if (is_array($v)) {
502  $v = "";
503  }
504  return [$k, $this->stripSlashesAddSpaceFallback((string) $v)];
505  },
506  array_keys($arr),
507  $arr
508  ),
509  1,
510  0
511  );
512  }
513  );
514  return (array) ($this->getRequestParam($key, $t) ?? []);
515  }
getRequestParam(string $key, Refinery\Transformation $t)
string $key
Consumer key/client ID value.
Definition: System.php:193
stripSlashesAddSpaceFallback(string $a_str)
Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stripSlashesAddSpaceFallback()

ilFormPropertyGUI::stripSlashesAddSpaceFallback ( string  $a_str)

Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727.

Definition at line 408 of file class.ilFormPropertyGUI.php.

References ilUtil\stripSlashes().

Referenced by ilSamlIdpMetadataInputGUI\checkInput(), ilChatroomAuthInputGUI\getInput(), str(), and strArray().

408  : string
409  {
410  $str = ilUtil::stripSlashes($a_str);
411  if ($str != $a_str) {
412  $str = ilUtil::stripSlashes(str_replace("<", "< ", $a_str));
413  }
414  return $str;
415  }
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unserializeData()

ilFormPropertyGUI::unserializeData ( string  $a_data)

Definition at line 235 of file class.ilFormPropertyGUI.php.

References $data.

Referenced by readFromSession().

235  : void
236  {
237  $data = unserialize($a_data);
238 
239  if ($data) {
240  $this->setValue($data);
241  } else {
242  $this->setValue("");
243  }
244  }
+ Here is the caller graph for this function:

◆ writeToSession()

ilFormPropertyGUI::writeToSession ( )
Exceptions
Exception

Definition at line 276 of file class.ilFormPropertyGUI.php.

References checkParentFormTable(), getSessionKey(), serializeData(), and ilSession\set().

Referenced by ilRepositorySelectorInputGUI\reset(), and ilRepositorySelectorInputGUI\selectRepositoryItem().

276  : void
277  {
278  $this->checkParentFormTable();
279  ilSession::set($this->getSessionKey(), $this->serializeData());
280  }
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $alert

string ilFormPropertyGUI::$alert = ""
protected

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

Referenced by getAlert().

◆ $ctrl

◆ $disabled

bool ilFormPropertyGUI::$disabled = false
protected

Definition at line 52 of file class.ilFormPropertyGUI.php.

Referenced by getDisabled().

◆ $global_tpl

ilGlobalTemplateInterface ilFormPropertyGUI::$global_tpl = null
protected

Definition at line 54 of file class.ilFormPropertyGUI.php.

Referenced by ilMatchingPairWizardInputGUI\insert().

◆ $hidden_title

string ilFormPropertyGUI::$hidden_title = ""
protected

Definition at line 44 of file class.ilFormPropertyGUI.php.

Referenced by getHiddenTitle().

◆ $http

HTTP Services ilFormPropertyGUI::$http
protected

Definition at line 50 of file class.ilFormPropertyGUI.php.

◆ $info

string ilFormPropertyGUI::$info = ""
protected

Definition at line 40 of file class.ilFormPropertyGUI.php.

Referenced by ilNonEditableValueGUI\getInfo(), and getInfo().

◆ $lng

ilLanguage ilFormPropertyGUI::$lng
protected

Definition at line 36 of file class.ilFormPropertyGUI.php.

Referenced by ilTaxAssignInputGUI\__construct(), ilTaxSelectInputGUI\__construct(), ilImageFileInputGUI\__construct(), ilMatrixRowWizardInputGUI\__construct(), ilCategoryWizardInputGUI\__construct(), ilFileInputGUI\__construct(), ilMatchingWizardInputGUI\__construct(), ilRepositorySelectorInputGUI\__construct(), ilKprimChoiceWizardInputGUI\__construct(), ilDclCheckboxInputGUI\checkInput(), ilDclTextInputGUI\checkInput(), ilCharSelectorRadioGroupInputGUI\checkInput(), ilAssClozeTestCombinationVariantsInputGUI\checkInput(), ilKprimChoiceCorrectionsInputGUI\checkInput(), ilAssSingleChoiceCorrectionsInputGUI\checkInput(), ilUriInputGUI\checkInput(), ilAssMultipleChoiceCorrectionsInputGUI\checkInput(), ilEssayKeywordWizardInputGUI\checkInput(), ilImagemapCorrectionsInputGUI\checkInput(), ilMultipleChoiceWizardInputGUI\checkInput(), ilFormulaInputGUI\checkInput(), ilFontSizeInputGUI\checkInput(), ilAssAnswerCorrectionsInputGUI\checkInput(), ilRecurrenceInputGUI\checkInput(), ilRegExpInputGUI\checkInput(), ilBackgroundImageInputGUI\checkInput(), ilNumericStyleValueInputGUI\checkInput(), ilSelectBuilderInputGUI\checkInput(), ilCustomInputGUI\checkInput(), ilScheduleInputGUI\checkInput(), ilRadioGroupInputGUI\checkInput(), ilTextWizardInputGUI\checkInput(), ilAdvSelectInputGUI\checkInput(), ilFileWizardInputGUI\checkInput(), ilEMailInputGUI\checkInput(), ilUserLoginInputGUI\checkInput(), ilSelectInputGUI\checkInput(), ilAlphabetInputGUI\checkInput(), ilBackgroundPositionInputGUI\checkInput(), ilLocationInputGUI\checkInput(), ilTRBLBorderWidthInputGUI\checkInput(), ilCheckboxGroupInputGUI\checkInput(), ilRepositorySelectorInputGUI\checkInput(), ilTRBLNumericStyleValueInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkInput(), ilExplorerSelectInputGUI\checkInput(), ilMultiSelectInputGUI\checkInput(), ilMatchingPairWizardInputGUI\checkInput(), ilDateTimeInputGUI\checkInput(), ilMatrixRowWizardInputGUI\checkInput(), ilCSSRectInputGUI\checkInput(), ilImageWizardInputGUI\checkInput(), ilOrgUnitMultiLineInputGUI\checkInput(), ilFileInputGUI\checkInput(), ilSuggestedSolutionSelectorGUI\checkInput(), ilImagemapFileInputGUI\checkInput(), ilTagInputGUI\checkInput(), ilPasswordInputGUI\checkInput(), ilMatchingWizardInputGUI\checkInput(), ilTextInputGUI\checkInput(), ilDclGenericMultiInputGUI\checkInput(), ilNumberInputGUI\checkInput(), ilCategoryWizardInputGUI\checkInput(), ilAnswerWizardInputGUI\checkInput(), ilErrorTextWizardInputGUI\checkInput(), ilDateDurationInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), ilKVPWizardInputGUI\checkInput(), ilLinkInputGUI\checkInput(), ilTextAreaInputGUI\checkInput(), ilLinkInputGUI\executeCommand(), getMultiIconsHTML(), ilCountrySelectInputGUI\getOptions(), ilTaxAssignInputGUI\getOptions(), ilLogicalAnswerComparisonExpressionInputGUI\getPointsInputLabel(), ilAnswerWizardInputGUI\getPointsInputLabel(), ilLogicalAnswerComparisonExpressionInputGUI\getTextInputLabel(), ilAnswerWizardInputGUI\getTextInputLabel(), ilAlphabetInputGUI\getToolbarHTML(), ilLinkInputGUI\getTranslatedValue(), ilAssErrorTextCorrectionsInputGUI\insert(), ilAssSingleChoiceCorrectionsInputGUI\insert(), ilImagemapCorrectionsInputGUI\insert(), ilRandomTestROInputGUI\insert(), ilAssMultipleChoiceCorrectionsInputGUI\insert(), ilSelectBuilderInputGUI\insert(), ilWidthHeightInputGUI\insert(), ilImageFileInputGUI\insert(), ilEMailInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilAssAnswerCorrectionsInputGUI\insert(), ilLocationInputGUI\insert(), ilTRBLBorderStyleInputGUI\insert(), ilBackgroundPositionInputGUI\insert(), ilTRBLBorderWidthInputGUI\insert(), ilTRBLNumericStyleValueInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilFileWizardInputGUI\insert(), ilSuggestedSolutionSelectorGUI\insert(), ilCSSRectInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilImageWizardInputGUI\insert(), ilClozeGapInputBuilderGUI\insert(), ilAnswerWizardInputGUI\insert(), ilErrorTextWizardInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilImagemapFileInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilTextAreaInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilMultipleTextsInputGUI\onCheckInput(), ilFileInputGUI\outputSuffixes(), ilGloAdvColSortInputGUI\render(), ilExplorerSelectInputGUI\render(), ilMultiSelectInputGUI\render(), ilScheduleInputGUI\render(), ilRepositorySelectorInputGUI\render(), ilDurationInputGUI\render(), ilDateTimeInputGUI\render(), ilPasswordInputGUI\render(), ilFileInputGUI\render(), ilNumberInputGUI\render(), ilTextInputGUI\render(), ilLinkInputGUI\render(), and ilDateDurationInputGUI\render().

◆ $multi

bool ilFormPropertyGUI::$multi = false
protected

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

Referenced by getMulti().

◆ $multi_addremove

bool ilFormPropertyGUI::$multi_addremove = true
protected

Definition at line 47 of file class.ilFormPropertyGUI.php.

◆ $multi_sortable

bool ilFormPropertyGUI::$multi_sortable = false
protected

Definition at line 46 of file class.ilFormPropertyGUI.php.

◆ $multi_values

array ilFormPropertyGUI::$multi_values = []
protected

Definition at line 48 of file class.ilFormPropertyGUI.php.

Referenced by getMultiValues().

◆ $parent_gui

ilFormPropertyGUI ilFormPropertyGUI::$parent_gui = null
protected

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

Referenced by getParent(), and ilRepositorySelectorInputGUI\render().

◆ $parent_table

ilTable2GUI ilFormPropertyGUI::$parent_table = null
protected

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

Referenced by getParentTable().

◆ $parentform

ilPropertyFormGUI ilFormPropertyGUI::$parentform = null
protected

Definition at line 43 of file class.ilFormPropertyGUI.php.

Referenced by getParentForm().

◆ $postvar

◆ $refinery

Refinery Factory ilFormPropertyGUI::$refinery = null
protected

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

◆ $request

RequestInterface ilFormPropertyGUI::$request
protected

Definition at line 49 of file class.ilFormPropertyGUI.php.

◆ $required

bool ilFormPropertyGUI::$required = false
protected

Definition at line 42 of file class.ilFormPropertyGUI.php.

Referenced by getRequired().

◆ $set_params

array ilFormPropertyGUI::$set_params = []
protected

Definition at line 32 of file class.ilFormPropertyGUI.php.

◆ $title

◆ $type


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