ILIAS  release_8 Revision v8.24
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 = "" 
)

Reimplemented in ilRecurrenceInputGUI, ilGloAdvColSortInputGUI, ilScheduleInputGUI, ilDclGenericMultiInputGUI, ilOrgUnitGenericMultiInputGUI, ilOrgUnitMultiLineInputGUI, ilCategoryWizardInputGUI, ilMatrixRowWizardInputGUI, ilClozeGapInputBuilderGUI, ilAdvSelectInputGUI, ilAlphabetInputGUI, ilCheckboxGroupInputGUI, ilCheckboxInputGUI, ilColorPickerInputGUI, ilCombinationInputGUI, ilCountrySelectInputGUI, ilCustomInputGUI, ilDateDurationInputGUI, ilDateTimeInputGUI, ilDurationInputGUI, ilEMailInputGUI, ilFileInputGUI, ilFileWizardInputGUI, ilFormulaInputGUI, ilImageFileInputGUI, ilLinkInputGUI, ilLocationInputGUI, ilMultiSelectInputGUI, ilNestedListInputGUI, ilNumberInputGUI, ilPasswordInputGUI, ilRadioGroupInputGUI, ilRegExpInputGUI, ilRepositorySelectorInputGUI, ilSelectBuilderInputGUI, ilSelectInputGUI, ilTextAreaInputGUI, ilTextInputGUI, ilTextWizardInputGUI, ilUriInputGUI, ilUserLoginInputGUI, ilWidthHeightInputGUI, ilTypicalLearningTimeInputGUI, ilBackgroundImageInputGUI, ilBackgroundPositionInputGUI, ilFontSizeInputGUI, ilNumericStyleValueInputGUI, ilTRBLBorderStyleInputGUI, ilTRBLBorderWidthInputGUI, ilTRBLColorPickerInputGUI, ilTRBLNumericStyleValueInputGUI, ilCharSelectorRadioGroupInputGUI, and ilManualPlaceholderInputGUI.

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

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)
setDisabled(bool $a_disabled)
global $DIC
Definition: feed.php:28
static http()
Fetches the global http state from ILIAS.

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

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

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

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

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

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

Reimplemented in ilScheduleInputGUI, ilChatroomAuthInputGUI, ilChatroomSmiliesCurrentSmileyFormElement, ilDclCheckboxInputGUI, ilDclGenericMultiInputGUI, ilDclTextInputGUI, ilGloAdvColSortInputGUI, ilOrgUnitGenericMultiInputGUI, ilOrgUnitMultiLineInputGUI, ilCategoryWizardInputGUI, ilMatrixRowWizardInputGUI, ilRandomTestROInputGUI, ilAnswerWizardInputGUI, ilErrorTextWizardInputGUI, ilEssayKeywordWizardInputGUI, ilImageWizardInputGUI, ilKprimChoiceWizardInputGUI, ilKVPWizardInputGUI, ilMatchingPairWizardInputGUI, ilMatchingWizardInputGUI, ilMultipleChoiceWizardInputGUI, ilSingleChoiceWizardInputGUI, ilSolutionTitleInputGUI, ilSuggestedSolutionSelectorGUI, ilClozeGapInputBuilderGUI, ilAssAnswerCorrectionsInputGUI, ilAssClozeTestCombinationVariantsInputGUI, ilAssErrorTextCorrectionsInputGUI, ilAssLongmenuCorrectionsInputGUI, ilAssMatchingPairCorrectionsInputGUI, ilAssMultipleChoiceCorrectionsInputGUI, ilAssSingleChoiceCorrectionsInputGUI, ilIdentifiedMultiValuesInputGUI, ilImagemapCorrectionsInputGUI, ilImagemapFileInputGUI, ilKprimChoiceCorrectionsInputGUI, ilTagInputGUI, ilRecurrenceInputGUI, ilAdvSelectInputGUI, ilAlphabetInputGUI, ilCheckboxGroupInputGUI, ilCheckboxInputGUI, ilColorPickerInputGUI, ilCombinationInputGUI, ilCSSRectInputGUI, ilCustomInputGUI, ilDateDurationInputGUI, ilDateTimeInputGUI, ilDurationInputGUI, ilEMailInputGUI, ilFileInputGUI, ilFileWizardInputGUI, ilFormulaInputGUI, ilHiddenInputGUI, ilLinkInputGUI, ilLocationInputGUI, ilMultiSelectInputGUI, ilNestedListInputGUI, ilNonEditableValueGUI, ilNumberInputGUI, ilPasswordInputGUI, ilRadioGroupInputGUI, ilRegExpInputGUI, ilRepositorySelectorInputGUI, ilSelectBuilderInputGUI, ilSelectInputGUI, ilTextAreaInputGUI, ilTextInputGUI, ilTextWizardInputGUI, ilUriInputGUI, ilUserLoginInputGUI, ilIncomingMailInputGUI, ilMailQuickFilterInputGUI, ilManualPlaceholderInputGUI, ilWidthHeightInputGUI, ilTypicalLearningTimeInputGUI, ilSamlIdpMetadataInputGUI, ilLuceneQueryInputGUI, ilBackgroundImageInputGUI, ilBackgroundPositionInputGUI, ilFontSizeInputGUI, ilNumericStyleValueInputGUI, ilTRBLBorderStyleInputGUI, ilTRBLBorderWidthInputGUI, ilTRBLColorPickerInputGUI, ilTRBLNumericStyleValueInputGUI, ilCharSelectorRadioGroupInputGUI, and ilExplorerSelectInputGUI.

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.

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.

References $parent_table, getParentForm(), and getParentTable().

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

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

294 : void
295 {
296 $this->checkParentFormTable();
298 }
static clear(string $a_var)

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

+ Here is the call graph for this function:

◆ executeCommand()

ilFormPropertyGUI::executeCommand ( )
Returns
mixed

Reimplemented in ilLinkInputGUI.

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

87 {
88 $cmd = $this->ctrl->getCmd();
89 return $this->$cmd();
90 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ getAlert()

ilFormPropertyGUI::getAlert ( )

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

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

References $alert.

◆ getContentOutsideFormTag()

ilFormPropertyGUI::getContentOutsideFormTag ( )

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

panels/layers

Reimplemented in ilLinkInputGUI.

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

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

◆ getDisabled()

◆ getFieldId()

ilFormPropertyGUI::getFieldId ( )

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

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

References $id, and getPostVar().

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

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

Reimplemented in ilDateDurationInputGUI, and ilRadioGroupInputGUI.

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

428 : string
429 {
430 return $this->getFieldId();
431 }

◆ getHiddenTag()

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

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

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)

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

+ Here is the caller graph for this function:

◆ getHiddenTitle()

ilFormPropertyGUI::getHiddenTitle ( )

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

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

References $hidden_title.

◆ getInfo()

ilFormPropertyGUI::getInfo ( )

Reimplemented in ilNonEditableValueGUI.

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

134 : string
135 {
136 return $this->info;
137 }

References $info.

Referenced by ilCheckboxInputGUI\render(), and ilDclBaseFieldRepresentation\setupInputField().

+ Here is the caller graph for this function:

◆ getItemByPostVar()

ilFormPropertyGUI::getItemByPostVar ( string  $a_post_var)

Get item by post var.

Reimplemented in ilCheckboxGroupInputGUI, ilRadioGroupInputGUI, ilSubEnabledFormPropertyGUI, and ilIncomingMailInputGUI.

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

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.

References getPostVar().

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

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

356 : string
357 {
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 }
static get(string $a_glyph, string $a_text="")
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...
special template class to simplify handling of ITX/PEAR
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41

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

Referenced by ilSelectInputGUI\render(), and ilNonEditableValueGUI\render().

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

◆ getMultiValues()

ilFormPropertyGUI::getMultiValues ( )

Reimplemented in ilDclMultiTextInputGUI, and ilIdentifiedMultiValuesInputGUI.

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

350 : array
351 {
352 return $this->multi_values;
353 }

Referenced by ilSelectInputGUI\render(), and ilMailQuickFilterInputGUI\render().

+ Here is the caller graph for this function:

◆ getParent()

ilFormPropertyGUI::getParent ( )

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

194 {
195 return $this->parent_gui;
196 }
ilFormPropertyGUI $parent_gui

References $parent_gui.

◆ getParentForm()

ilFormPropertyGUI::getParentForm ( )

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

183 {
184 return $this->parentform;
185 }
ilPropertyFormGUI $parentform
This class represents a property form user interface.

References $parentform.

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

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

259 : ?ilTable2GUI
260 {
261 return $this->parent_table;
262 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $parent_table.

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

+ Here is the caller graph for this function:

◆ getPostVar()

ilFormPropertyGUI::getPostVar ( )

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

117 : string
118 {
119 return $this->postvar;
120 }

References $postvar.

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

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

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 }

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

Referenced by ilFormulaInputGUI\getInput(), and ilEMailInputGUI\sanitize().

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

154 : bool
155 {
156 return $this->required;
157 }

References $required.

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

+ Here is the caller graph for this function:

◆ getSessionKey()

ilFormPropertyGUI::getSessionKey ( )
protected

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

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 }

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

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

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

◆ getSubForm()

ilFormPropertyGUI::getSubForm ( )

Reimplemented in ilSubEnabledFormPropertyGUI.

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

199 {
200 return null;
201 }

◆ getTableFilterLabelFor()

ilFormPropertyGUI::getTableFilterLabelFor ( )

Get label "for" attribute value for filter.

Reimplemented in ilDateDurationInputGUI.

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

420 : string
421 {
422 return $this->getFieldId();
423 }

◆ getTitle()

ilFormPropertyGUI::getTitle ( )

Reimplemented in ilNonEditableValueGUI.

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

107 : string
108 {
109 return $this->title;
110 }

References $title.

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

+ Here is the caller graph for this function:

◆ getType()

ilFormPropertyGUI::getType ( )

Reimplemented in ilNonEditableValueGUI.

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

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

References $type.

◆ hideSubForm()

ilFormPropertyGUI::hideSubForm ( )

Reimplemented in ilCheckboxInputGUI, ilDateDurationInputGUI, ilDateTimeInputGUI, and ilSelectInputGUI.

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.

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 }

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

Referenced by ilDateTimeInputGUI\getDatePickerTimeFormat(), ilLocationInputGUI\getInput(), ilDurationInputGUI\getPostValueForComparison(), ilWidthHeightInputGUI\insert(), ilRepositorySelectorInputGUI\setValue(), and ilDurationInputGUI\setValueByArray().

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

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 }

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

+ Here is the call graph for this function:

◆ isRequestParamArray()

ilFormPropertyGUI::isRequestParamArray ( string  $key)
protected

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

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 }

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

Referenced by ilNonEditableValueGUI\getInput().

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

482 {
483 $t = $this->refinery->custom()->transformation(function ($v) {
484 return $v;
485 });
486 return $this->getRequestParam($key, $t);
487 }

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

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

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

303 : void
304 {
305 $this->checkParentFormTable();
306 if (ilSession::has($this->getSessionKey())) {
308 } else {
309 $this->unserializeData("");
310 }
311 }
unserializeData(string $a_data)
static get(string $a_var)
static has($a_var)

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

Referenced by ilMMSubItemTableGUI\addAndReadFilterItem().

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

400 : string
401 {
402 return str_replace("\x0B", "", $a_text);
403 }

◆ serializeData()

ilFormPropertyGUI::serializeData ( )

Reimplemented in ilCheckboxInputGUI, ilCombinationInputGUI, ilDateTimeInputGUI, and ilDurationInputGUI.

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

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

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

Referenced by writeToSession().

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

139 : void
140 {
141 $this->alert = $a_alert;
142 }

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

+ Here is the caller graph for this function:

◆ setDisabled()

ilFormPropertyGUI::setDisabled ( bool  $a_disabled)

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

159 : void
160 {
161 $this->disabled = $a_disabled;
162 }
disabled()
Example showing how to plug a disabled checkbox into a form.
Definition: disabled.php:10

References ILIAS\UI\examples\Input\Field\Checkbox\disabled().

Referenced by __construct(), ilADTFormBridge\addBasicFieldProperties(), ilIncomingMailInputGUI\addSubOptions(), and ilDclFileuploadFieldRepresentation\requiredWorkaroundForInputField().

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

◆ setHiddenTitle()

ilFormPropertyGUI::setHiddenTitle ( string  $a_val)

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

209 : void
210 {
211 $this->hidden_title = $a_val;
212 }

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

+ Here is the caller graph for this function:

◆ setInfo()

ilFormPropertyGUI::setInfo ( string  $a_info)

Reimplemented in ilNonEditableValueGUI.

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

129 : void
130 {
131 $this->info = $a_info;
132 }

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

Referenced by ilADTFormBridge\addBasicFieldProperties(), assOrderingQuestion\initOrderingElementFormFieldLabels(), and ilDclBaseFieldRepresentation\setupInputField().

+ 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 
)

Reimplemented in ilDclGenericMultiInputGUI, ilOrgUnitGenericMultiInputGUI, and ilOrgUnitMultiLineInputGUI.

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

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

Referenced by ilTaxAssignInputGUI\__construct().

+ Here is the caller graph for this function:

◆ setMultiValues()

ilFormPropertyGUI::setMultiValues ( array  $a_values)

Reimplemented in ilTextInputGUI, ilDclMultiTextInputGUI, and ilIdentifiedMultiValuesInputGUI.

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

345 : void
346 {
347 $this->multi_values = array_unique($a_values);
348 }

Referenced by ilNonEditableValueGUI\setValue(), ilSelectInputGUI\setValue(), and ilManualPlaceholderInputGUI\setValue().

+ Here is the caller graph for this function:

◆ setParent()

ilFormPropertyGUI::setParent ( ilFormPropertyGUI  $a_val)

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

188 : void
189 {
190 $this->parent_gui = $a_val;
191 }

Referenced by ilSubEnabledFormPropertyGUI\addSubItem().

+ Here is the caller graph for this function:

◆ setParentForm()

ilFormPropertyGUI::setParentForm ( ilPropertyFormGUI  $a_parentform)

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

177 : void
178 {
179 $this->parentform = $a_parentform;
180 }

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

112 : void
113 {
114 $this->postvar = $a_postvar;
115 }

Referenced by __construct(), and ilIdentifiedMultiValuesInputGUI\getFieldIdFromPostVar().

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

560 : void
561 {
562 $this->set_params[$key] = $val;
563 }

References ILIAS\LTI\ToolProvider\$key.

◆ setRequired()

ilFormPropertyGUI::setRequired ( bool  $a_required)

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

149 : void
150 {
151 $this->required = $a_required;
152 }

Referenced by ilRandomTestROInputGUI\__construct(), ilADTFormBridge\addBasicFieldProperties(), ilDclGenericMultiInputGUI\addInput(), and ilDclFileuploadFieldRepresentation\requiredWorkaroundForInputField().

+ Here is the caller graph for this function:

◆ setTitle()

ilFormPropertyGUI::setTitle ( string  $a_title)

Reimplemented in ilNonEditableValueGUI.

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

102 : void
103 {
104 $this->title = $a_title;
105 }

Referenced by __construct(), ilMailFormAttachmentPropertyGUI\__construct(), and assOrderingQuestion\initOrderingElementFormFieldLabels().

+ Here is the caller graph for this function:

◆ setType()

ilFormPropertyGUI::setType ( string  $a_type)
protected

Reimplemented in ilNonEditableValueGUI.

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

92 : void
93 {
94 $this->type = $a_type;
95 }

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

+ Here is the caller graph for this function:

◆ str()

ilFormPropertyGUI::str (   $key)
protected

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

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 }
stripSlashesAddSpaceFallback(string $a_str)
Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727.

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

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

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

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 }

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

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

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

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="")

References ilUtil\stripSlashes().

Referenced by ilSamlIdpMetadataInputGUI\checkInput().

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

◆ unserializeData()

ilFormPropertyGUI::unserializeData ( string  $a_data)

Reimplemented in ilCheckboxInputGUI, ilCombinationInputGUI, ilDateTimeInputGUI, ilDurationInputGUI, ilMultiSelectInputGUI, and ilNumberInputGUI.

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

235 : void
236 {
237 $data = unserialize($a_data);
238
239 if ($data) {
240 $this->setValue($data);
241 } else {
242 $this->setValue("");
243 }
244 }

References $data.

Referenced by readFromSession().

+ Here is the caller graph for this function:

◆ writeToSession()

ilFormPropertyGUI::writeToSession ( )
Exceptions
Exception

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

276 : void
277 {
278 $this->checkParentFormTable();
279 ilSession::set($this->getSessionKey(), $this->serializeData());
280 }
static set(string $a_var, $a_val)
Set a value.

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

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

+ 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 getInfo(), and ilNonEditableValueGUI\getInfo().

◆ $lng

ilLanguage ilFormPropertyGUI::$lng
protected

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

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

◆ $multi

bool ilFormPropertyGUI::$multi = false
protected

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

◆ $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.

◆ $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 checkParentFormTable(), and getParentTable().

◆ $parentform

ilPropertyFormGUI ilFormPropertyGUI::$parentform = null
protected

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

Referenced by getParentForm().

◆ $postvar

string ilFormPropertyGUI::$postvar = ""
protected

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