ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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

 symbol ()
 
 setType (string $a_type)
 
 checkParentFormTable ()
 
 getSessionKey ()
 
 getMultiIconsHTML ()
 
 int ($key)
 
 intArray ($key)
 
 str ($key)
 
 raw ($key)
 
 strArray ($key)
 
 arrayArray ($key)
 
 isRequestParamArray (string $key)
 
 getRequestParam (string $key, Refinery\Transformation $t)
 

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
Deprecated:
12 This component will be removed with ILIAS 12

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

Constructor & Destructor Documentation

◆ __construct()

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

Reimplemented in ilRecurrenceInputGUI, ilScheduleInputGUI, ilDclGenericMultiInputGUI, 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, ilOrgUnitGenericMultiInputGUI, ilBackgroundImageInputGUI, ilBackgroundPositionInputGUI, ilFontSizeInputGUI, ilNumericStyleValueInputGUI, ilTRBLBorderStyleInputGUI, ilTRBLBorderWidthInputGUI, ilTRBLColorPickerInputGUI, ilTRBLNumericStyleValueInputGUI, ilCategoryWizardInputGUI, ilMatrixRowWizardInputGUI, ilClozeGapInputBuilderGUI, and ilTagInputGUI.

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

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

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 525 of file class.ilFormPropertyGUI.php.

525 : array
526 {
527 if (!$this->isRequestParamArray($key)) {
528 return [];
529 }
530 $t = $this->refinery->custom()->transformation(
531 function ($arr) {
532 // keep keys(!), transform all values to string
533 return array_column(
534 array_map(
535 function ($k, $v) {
536 return [$k, (array) $v];
537 },
538 array_keys($arr),
539 $arr
540 ),
541 1,
542 0
543 );
544 }
545 );
546 return (array) ($this->getRequestParam($key, $t) ?? []);
547 }
getRequestParam(string $key, Refinery\Transformation $t)

References ILIAS\Repository\refinery().

Referenced by ilBackgroundPositionInputGUI\getInput(), ilTRBLBorderStyleInputGUI\getInput(), ilTRBLBorderWidthInputGUI\getInput(), ilTRBLColorPickerInputGUI\getInput(), ilTRBLNumericStyleValueInputGUI\getInput(), ilCategoryWizardInputGUI\getInput(), ilMatrixRowWizardInputGUI\getInput(), ilIdentifiedMultiValuesInputGUI\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, ilRecurrenceInputGUI, ilChatroomAuthInputGUI, ilDclCheckboxInputGUI, ilDclGenericMultiInputGUI, ilDclTextInputGUI, 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, ilManualPlaceholderInputGUI, ilWidthHeightInputGUI, ilOrgUnitGenericMultiInputGUI, ilLuceneQueryInputGUI, ilBackgroundImageInputGUI, ilBackgroundPositionInputGUI, ilFontSizeInputGUI, ilNumericStyleValueInputGUI, ilTRBLBorderStyleInputGUI, ilTRBLBorderWidthInputGUI, ilTRBLColorPickerInputGUI, ilTRBLNumericStyleValueInputGUI, ilCategoryWizardInputGUI, ilMatrixRowWizardInputGUI, ilRandomTestROInputGUI, ilAnswerWizardInputGUI, ilErrorTextWizardInputGUI, ilEssayKeywordWizardInputGUI, ilKprimChoiceWizardInputGUI, ilMatchingPairWizardInputGUI, ilMatchingWizardInputGUI, ilMultipleChoiceWizardInputGUI, ilSingleChoiceWizardInputGUI, ilSolutionTitleInputGUI, ilSuggestedSolutionSelectorGUI, ilClozeGapInputBuilderGUI, ilAssAnswerCorrectionsInputGUI, ilAssClozeTestCombinationVariantsInputGUI, ilAssErrorTextCorrectionsInputGUI, ilAssLongmenuCorrectionsInputGUI, ilAssMatchingPairCorrectionsInputGUI, ilAssMultipleChoiceCorrectionsInputGUI, ilAssSingleChoiceCorrectionsInputGUI, ilIdentifiedMultiValuesInputGUI, ilImagemapCorrectionsInputGUI, ilImagemapFileInputGUI, ilKprimChoiceCorrectionsInputGUI, ilTagInputGUI, and ilExplorerSelectInputGUI.

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

179 : bool
180 {
181 return false; // please overwrite
182 }

◆ checkParentFormTable()

ilFormPropertyGUI::checkParentFormTable ( )
protected

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

271 : void
272 {
273 $parent = $this->getParentForm();
274 $parent_table = $this->getParentTable();
275 if (!is_object($parent) && !isset($parent_table)) {
276 throw new Exception("Parent form/table not set for " . get_class($this) . " to use serialize feature.");
277 }
278 }
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 301 of file class.ilFormPropertyGUI.php.

301 : void
302 {
303 $this->checkParentFormTable();
305 }
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 87 of file class.ilFormPropertyGUI.php.

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

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ getAlert()

ilFormPropertyGUI::getAlert ( )

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

151 : string
152 {
153 return $this->alert;
154 }

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 398 of file class.ilFormPropertyGUI.php.

398 : string
399 {
400 return "";
401 }

◆ getDisabled()

◆ getFieldId()

ilFormPropertyGUI::getFieldId ( )

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

129 : string
130 {
131 $id = str_replace("[", "__", $this->getPostVar());
132 $id = str_replace("]", "__", $id);
133 return $id;
134 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

References $id, and getPostVar().

Referenced by ilADTSearchBridge\addToParentElement(), ilIdentifiedMultiValuesInputGUI\getFieldIdFromPostVar(), ilExplorerSelectInputGUI\getInitializationOnLoadCode(), getSessionKey(), ilHiddenInputGUI\getToolbarHTML(), ilDclGenericMultiInputGUI\insert(), ilColorPickerInputGUI\insert(), ilCSSRectInputGUI\insert(), ilEMailInputGUI\insert(), ilFileWizardInputGUI\insert(), ilHiddenInputGUI\insert(), ilImageFileInputGUI\insert(), ilSelectBuilderInputGUI\insert(), ilUserLoginInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilImagemapCorrectionsInputGUI\insert(), ilImagemapFileInputGUI\insert(), ilSelectInputGUI\render(), ilRepositorySelectorInputGUI\render(), ilCheckboxGroupInputGUI\render(), ilCheckboxInputGUI\render(), ilMailTemplateSelectInputGUI\render(), ilMultiSelectInputGUI\render(), ilNonEditableValueGUI\render(), ilRadioGroupInputGUI\render(), ilTagInputGUI\render(), ilFileInputGUI\render(), ilTextWizardInputGUI\render(), ilMultipleTextsInputGUI\render(), ilExplorerSelectInputGUI\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 435 of file class.ilFormPropertyGUI.php.

435 : string
436 {
437 return $this->getFieldId();
438 }

◆ getHiddenTag()

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

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

323 : string {
324 return '<input type="hidden" name="' . $a_post_var . '" value="' . ilLegacyFormElementsUtil::prepareFormOutput(
325 $a_value
326 ) . '" />';
327 }
static prepareFormOutput($a_str, bool $a_strip=false)

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

+ Here is the caller graph for this function:

◆ getHiddenTitle()

ilFormPropertyGUI::getHiddenTitle ( )

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

221 : string
222 {
223 return $this->hidden_title;
224 }

References $hidden_title.

◆ getInfo()

ilFormPropertyGUI::getInfo ( )

Reimplemented in ilNonEditableValueGUI.

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

141 : string
142 {
143 return $this->info;
144 }

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 229 of file class.ilFormPropertyGUI.php.

230 {
231 if ($this->getPostVar() == $a_post_var) {
232 return $this;
233 }
234 return null;
235 }
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 363 of file class.ilFormPropertyGUI.php.

363 : string
364 {
366
367 $id = $this->getFieldId();
368
369 $tpl = new ilTemplate("tpl.multi_icons.html", true, true, "components/ILIAS/Form");
370
371 $html = "";
372 if ($this->multi_addremove) {
373 $tpl->setCurrentBlock("addremove");
374 $tpl->setVariable("ID", $id);
375 $tpl->setVariable("TXT_ADD", $lng->txt("add"));
376 $tpl->setVariable("TXT_REMOVE", $lng->txt("remove"));
377 $tpl->setVariable("SRC_ADD", $this->symbol()->glyph("add")->render());
378 $tpl->setVariable("SRC_REMOVE", $this->symbol()->glyph("remove")->render());
379 $tpl->parseCurrentBlock();
380 }
381
382 if ($this->multi_sortable) {
383 $tpl->setCurrentBlock("sortable");
384 $tpl->setVariable("ID", $id);
385 $tpl->setVariable("TXT_DOWN", $lng->txt("down"));
386 $tpl->setVariable("TXT_UP", $lng->txt("up"));
387 $tpl->setVariable("SRC_UP", $this->symbol()->glyph("up")->render());
388 $tpl->setVariable("SRC_DOWN", $this->symbol()->glyph("down")->render());
389 $tpl->parseCurrentBlock();
390 }
391
392 return $tpl->get();
393 }
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

References $id, $lng, and ILIAS\Repository\symbol().

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

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

357 : array
358 {
359 return $this->multi_values;
360 }

Referenced by ilSelectInputGUI\render().

+ Here is the caller graph for this function:

◆ getParent()

ilFormPropertyGUI::getParent ( )

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

201 {
202 return $this->parent_gui;
203 }
ilFormPropertyGUI $parent_gui

References $parent_gui.

◆ getParentForm()

ilFormPropertyGUI::getParentForm ( )

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

190 {
191 return $this->parentform;
192 }
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 266 of file class.ilFormPropertyGUI.php.

266 : ?ilTable2GUI
267 {
268 return $this->parent_table;
269 }
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 124 of file class.ilFormPropertyGUI.php.

124 : string
125 {
126 return $this->postvar;
127 }

References $postvar.

Referenced by ilMultipleImagesInputGUI\__construct(), ilOrgUnitGenericMultiInputGUI\addInput(), ilAssLongmenuCorrectionsInputGUI\buildTagInput(), ilScheduleInputGUI\checkInput(), ilDclCheckboxInputGUI\checkInput(), ilDclTextInputGUI\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(), ilOrgUnitGenericMultiInputGUI\checkInput(), ilLuceneQueryInputGUI\checkInput(), ilAnswerWizardInputGUI\checkInput(), ilErrorTextWizardInputGUI\checkInput(), ilEssayKeywordWizardInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\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(), ilKprimChoiceWizardInputGUI\checkUploads(), ilKprimChoiceWizardInputGUI\collectValidFiles(), ilOrgUnitGenericMultiInputGUI\createInputPostVar(), ilImageFileInputGUI\getDeletionFlag(), getFieldId(), ilIdentifiedMultiValuesInputGUI\getFieldIdFromPostVar(), ilScheduleInputGUI\getInput(), ilDclGenericMultiInputGUI\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(), ilCategoryWizardInputGUI\getInput(), ilMatrixRowWizardInputGUI\getInput(), ilLogicalAnswerComparisonExpressionInputGUI\getInput(), ilIdentifiedMultiValuesInputGUI\getInput(), ilExplorerSelectInputGUI\getInput(), ilCheckboxGroupInputGUI\getItemByPostVar(), getItemByPostVar(), ilRadioGroupInputGUI\getItemByPostVar(), ilSubEnabledFormPropertyGUI\getItemByPostVar(), ilIdentifiedMultiValuesInputGUI\getMultiValuePostVar(), ilCategoryWizardInputGUI\getNeutralInput(), ilCategoryWizardInputGUI\getNeutralScaleInput(), ilImagemapFileInputGUI\getPostBody(), ilIdentifiedMultiValuesInputGUI\getPostVarSubField(), ilIdentifiedMultiValuesInputGUI\getSubFieldCompletedPostVar(), ilHiddenInputGUI\getToolbarHTML(), ilRandomTestROInputGUI\insert(), ilSuggestedSolutionSelectorGUI\insert(), ilColorPickerInputGUI\insert(), ilCSSRectInputGUI\insert(), ilEMailInputGUI\insert(), ilFileWizardInputGUI\insert(), ilHiddenInputGUI\insert(), ilImageFileInputGUI\insert(), ilLocationInputGUI\insert(), ilSelectBuilderInputGUI\insert(), ilUserLoginInputGUI\insert(), ilWidthHeightInputGUI\insert(), ilBackgroundImageInputGUI\insert(), ilBackgroundPositionInputGUI\insert(), ilFontSizeInputGUI\insert(), ilNumericStyleValueInputGUI\insert(), ilTRBLBorderStyleInputGUI\insert(), ilTRBLBorderWidthInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilTRBLNumericStyleValueInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilErrorTextWizardInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilKprimChoiceWizardInputGUI\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(), ilMultipleImagesInputGUI\onCheckInput(), ilSelectInputGUI\render(), ilRepositorySelectorInputGUI\render(), ilCheckboxGroupInputGUI\render(), ilCheckboxInputGUI\render(), ilDateTimeInputGUI\render(), ilDurationInputGUI\render(), ilMultiSelectInputGUI\render(), ilNestedListInputGUI\render(), ilNonEditableValueGUI\render(), ilRadioGroupInputGUI\render(), ilTagInputGUI\render(), ilDclGenericMultiInputGUI\render(), ilFileInputGUI\render(), ilTextWizardInputGUI\render(), ilMultipleImagesInputGUI\render(), ilExplorerSelectInputGUI\render(), ilAssQuestionAuthoringFormGUI\replaceFormItemByPostVar(), ilIdentifiedMultiValuesInputGUI\setIdentifiedMultiValuesByArray(), ILIAS\LegalDocuments\Legacy\Table\setupFilter(), ilSuggestedSolutionSelectorGUI\setValueByArray(), ilTagInputGUI\setValueByArray(), ilScheduleInputGUI\setValueByArray(), ilDclGenericMultiInputGUI\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(), ilOrgUnitGenericMultiInputGUI\setValueByArray(), ilBackgroundImageInputGUI\setValueByArray(), ilBackgroundPositionInputGUI\setValueByArray(), ilFontSizeInputGUI\setValueByArray(), ilNumericStyleValueInputGUI\setValueByArray(), ilTRBLBorderStyleInputGUI\setValueByArray(), ilTRBLBorderWidthInputGUI\setValueByArray(), ilTRBLNumericStyleValueInputGUI\setValueByArray(), ilSingleChoiceWizardInputGUI\setValueByArray(), ilIdentifiedMultiValuesInputGUI\setValueByArray(), ilImagemapCorrectionsInputGUI\setValueByArray(), ilImagemapFileInputGUI\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 575 of file class.ilFormPropertyGUI.php.

576 {
577 if (isset($this->set_params[$key])) {
578 return $this->set_params[$key];
579 }
580 $w = $this->http->wrapper();
581 if ($w->post()->has($key)) {
582 return $w->post()->retrieve($key, $t);
583 }
584 if ($w->query()->has($key)) {
585 return $w->query()->retrieve($key, $t);
586 }
587 return null;
588 }

References ILIAS\FileDelivery\http().

Referenced by ilFormulaInputGUI\getInput(), ilLogicalAnswerComparisonExpressionInputGUI\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 161 of file class.ilFormPropertyGUI.php.

161 : bool
162 {
163 return $this->required;
164 }

References $required.

Referenced by ilScheduleInputGUI\checkInput(), ilDclCheckboxInputGUI\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(), ilBackgroundImageInputGUI\checkInput(), ilFontSizeInputGUI\checkInput(), ilNumericStyleValueInputGUI\checkInput(), ilCategoryWizardInputGUI\checkInput(), ilMatrixRowWizardInputGUI\checkInput(), ilErrorTextWizardInputGUI\checkInput(), ilMatchingPairWizardInputGUI\checkInput(), ilMultipleChoiceWizardInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), ilSuggestedSolutionSelectorGUI\checkInput(), ilAssErrorTextCorrectionsInputGUI\checkInput(), ilAssMatchingPairCorrectionsInputGUI\checkInput(), ilAssMultipleChoiceCorrectionsInputGUI\checkInput(), ilAssSingleChoiceCorrectionsInputGUI\checkInput(), ilImagemapCorrectionsInputGUI\checkInput(), ilImagemapFileInputGUI\checkInput(), ilTagInputGUI\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 289 of file class.ilFormPropertyGUI.php.

289 : string
290 {
291 $parent = $this->getParentForm();
292 if (!is_object($parent)) {
293 $parent = $this->getParentTable();
294 }
295 return "form_" . $parent->getId() . "_" . $this->getFieldId();
296 }

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 205 of file class.ilFormPropertyGUI.php.

206 {
207 return null;
208 }

◆ getTableFilterLabelFor()

ilFormPropertyGUI::getTableFilterLabelFor ( )

Get label "for" attribute value for filter.

Reimplemented in ilDateDurationInputGUI.

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

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

◆ getTitle()

ilFormPropertyGUI::getTitle ( )

Reimplemented in ilNonEditableValueGUI.

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

114 : string
115 {
116 return $this->title;
117 }

References $title.

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

+ Here is the caller graph for this function:

◆ getType()

ilFormPropertyGUI::getType ( )

Reimplemented in ilNonEditableValueGUI.

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

104 : string
105 {
106 return $this->type;
107 }

References $type.

◆ hideSubForm()

ilFormPropertyGUI::hideSubForm ( )

Reimplemented in ilCheckboxInputGUI, ilDateDurationInputGUI, ilDateTimeInputGUI, and ilSelectInputGUI.

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

210 : bool
211 {
212 return false;
213 }

◆ int()

ilFormPropertyGUI::int (   $key)
protected

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

441 : int
442 {
443 if (is_null($this->refinery)) {
444 return 0;
445 }
446 $t = $this->refinery->kindlyTo()->int();
447 return (int) ($this->getRequestParam($key, $t) ?? 0);
448 }

References ILIAS\Repository\refinery().

Referenced by 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 451 of file class.ilFormPropertyGUI.php.

451 : array
452 {
453 if (!$this->isRequestParamArray($key)) {
454 return [];
455 }
456 $t = $this->refinery->custom()->transformation(
457 function ($arr) {
458 // keep keys(!), transform all values to int
459 return array_column(
460 array_map(
461 function ($k, $v) {
462 return [$k, (int) $v];
463 },
464 array_keys($arr),
465 $arr
466 ),
467 1,
468 0
469 );
470 }
471 );
472 return (array) ($this->getRequestParam($key, $t) ?? []);
473 }

References ILIAS\Repository\int(), and ILIAS\Repository\refinery().

+ Here is the call graph for this function:

◆ isRequestParamArray()

ilFormPropertyGUI::isRequestParamArray ( string  $key)
protected

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

549 : bool
550 {
551 $no_transform = $this->refinery->identity();
552 $w = $this->http->wrapper();
553 if ($w->post()->has($key)) {
554 return is_array($w->post()->retrieve($key, $no_transform));
555 }
556 if ($w->query()->has($key)) {
557 return is_array($w->query()->retrieve($key, $no_transform));
558 }
559 return false;
560 }

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

Referenced by ilNonEditableValueGUI\getInput(), and ilLogicalAnswerComparisonExpressionInputGUI\getInput().

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

◆ raw()

◆ readFromSession()

ilFormPropertyGUI::readFromSession ( )
Exceptions
Exception

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

310 : void
311 {
312 $this->checkParentFormTable();
313 if (ilSession::has($this->getSessionKey())) {
315 } else {
316 $this->unserializeData("");
317 }
318 }
unserializeData(string $a_data)
static get(string $a_var)
static has($a_var)

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

Referenced by ILIAS\LegalDocuments\Legacy\Table\setupFilter().

+ 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 407 of file class.ilFormPropertyGUI.php.

407 : string
408 {
409 return str_replace("\x0B", "", $a_text);
410 }

Referenced by ilLMObject\saveTitle().

+ Here is the caller graph for this function:

◆ serializeData()

ilFormPropertyGUI::serializeData ( )

Reimplemented in ilCheckboxInputGUI, ilCombinationInputGUI, ilDateTimeInputGUI, and ilDurationInputGUI.

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

237 : string
238 {
239 return serialize($this->getValue());
240 }
getValue()
Get the value that is displayed in the input client side.
Definition: Group.php:49

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 146 of file class.ilFormPropertyGUI.php.

146 : void
147 {
148 $this->alert = $a_alert;
149 }

Referenced by ilScheduleInputGUI\checkInput(), ilRecurrenceInputGUI\checkInput(), ilDclCheckboxInputGUI\checkInput(), ilDclTextInputGUI\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(), ilOrgUnitGenericMultiInputGUI\checkInput(), ilLuceneQueryInputGUI\checkInput(), ilBackgroundImageInputGUI\checkInput(), ilBackgroundPositionInputGUI\checkInput(), ilFontSizeInputGUI\checkInput(), ilNumericStyleValueInputGUI\checkInput(), ilTRBLBorderWidthInputGUI\checkInput(), ilTRBLNumericStyleValueInputGUI\checkInput(), ilCategoryWizardInputGUI\checkInput(), ilMatrixRowWizardInputGUI\checkInput(), ilAnswerWizardInputGUI\checkInput(), ilErrorTextWizardInputGUI\checkInput(), ilEssayKeywordWizardInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\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(), 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 166 of file class.ilFormPropertyGUI.php.

166 : void
167 {
168 $this->disabled = $a_disabled;
169 }

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

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

+ 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 216 of file class.ilFormPropertyGUI.php.

216 : void
217 {
218 $this->hidden_title = $a_val;
219 }

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 136 of file class.ilFormPropertyGUI.php.

136 : void
137 {
138 $this->info = $a_info;
139 }

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

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

333 : void {
334 if (!$this instanceof ilMultiValuesItem) {
335 throw new ilFormException(sprintf(
336 "%s not supported for form property type %s",
337 __FUNCTION__,
338 get_class($this)
339 ));
340 }
341
342 $this->multi = $a_multi;
343 $this->multi_sortable = $a_sortable;
344 $this->multi_addremove = $a_addremove;
345 }
Interface for multi values support.

Referenced by ilTaxAssignInputGUI\__construct().

+ Here is the caller graph for this function:

◆ setMultiValues()

ilFormPropertyGUI::setMultiValues ( array  $a_values)

Reimplemented in ilTextInputGUI, and ilIdentifiedMultiValuesInputGUI.

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

352 : void
353 {
354 $this->multi_values = array_unique($a_values);
355 }

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 195 of file class.ilFormPropertyGUI.php.

195 : void
196 {
197 $this->parent_gui = $a_val;
198 }

Referenced by ilSubEnabledFormPropertyGUI\addSubItem().

+ Here is the caller graph for this function:

◆ setParentForm()

ilFormPropertyGUI::setParentForm ( ilPropertyFormGUI  $a_parentform)

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

184 : void
185 {
186 $this->parentform = $a_parentform;
187 }

◆ setParentTable()

ilFormPropertyGUI::setParentTable (   $a_val)

Set parent table.

Parameters
ilTable2GUI$a_valtable object

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

257 : void
258 {
259 $this->parent_table = $a_val;
260 }

◆ setPostVar()

ilFormPropertyGUI::setPostVar ( string  $a_postvar)

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

119 : void
120 {
121 $this->postvar = $a_postvar;
122 }

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

+ 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 567 of file class.ilFormPropertyGUI.php.

567 : void
568 {
569 $this->set_params[$key] = $val;
570 }

◆ setRequired()

ilFormPropertyGUI::setRequired ( bool  $a_required)

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

156 : void
157 {
158 $this->required = $a_required;
159 }

Referenced by ilRandomTestROInputGUI\__construct(), and ilADTFormBridge\addBasicFieldProperties().

+ Here is the caller graph for this function:

◆ setTitle()

ilFormPropertyGUI::setTitle ( string  $a_title)

Reimplemented in ilNonEditableValueGUI.

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

109 : void
110 {
111 $this->title = $a_title;
112 }

Referenced by ilMailFormAttachmentPropertyGUI\__construct(), __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 99 of file class.ilFormPropertyGUI.php.

99 : void
100 {
101 $this->type = $a_type;
102 }

Referenced by ilSuggestedSolutionSelectorGUI\__construct(), ilTaxAssignInputGUI\__construct(), ilTaxSelectInputGUI\__construct(), ilHiddenInputGUI\__construct(), ilRepositorySelector2InputGUI\__construct(), ilExplorerSelectInputGUI\__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(), ilOrgUnitGenericMultiInputGUI\__construct(), ilBackgroundImageInputGUI\__construct(), ilBackgroundPositionInputGUI\__construct(), ilFontSizeInputGUI\__construct(), ilNumericStyleValueInputGUI\__construct(), ilTRBLBorderStyleInputGUI\__construct(), ilTRBLBorderWidthInputGUI\__construct(), ilTRBLColorPickerInputGUI\__construct(), ilTRBLNumericStyleValueInputGUI\__construct(), and ilTagInputGUI\__construct().

+ Here is the caller graph for this function:

◆ str()

ilFormPropertyGUI::str (   $key)
protected

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

476 : string
477 {
478 if (is_null($this->refinery)) {
479 return "";
480 }
481 $t = $this->refinery->kindlyTo()->string();
482 return $this->stripSlashesAddSpaceFallback(
483 (string) ($this->getRequestParam($key, $t) ?? "")
484 );
485 }
stripSlashesAddSpaceFallback(string $a_str)
Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727.

References ILIAS\Repository\refinery().

Referenced by ilLinkInputGUI\__construct(), ilAlphabetInputGUI\checkInput(), ilDateTimeInputGUI\checkInput(), ilEMailInputGUI\checkInput(), ilFileInputGUI\checkInput(), ilRepositorySelectorInputGUI\checkInput(), ilSelectInputGUI\checkInput(), ilTextInputGUI\checkInput(), ilSuggestedSolutionSelectorGUI\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(), ilRepositorySelector2InputGUI\render(), ilCategoryWizardInputGUI\setValue(), and ilKprimChoiceWizardInputGUI\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 497 of file class.ilFormPropertyGUI.php.

497 : array
498 {
499 if (!$this->isRequestParamArray($key)) {
500 return [];
501 }
502 $t = $this->refinery->custom()->transformation(
503 function ($arr) {
504 // keep keys(!), transform all values to string
505 return array_column(
506 array_map(
507 function ($k, $v) {
508 if (is_array($v)) {
509 $v = "";
510 }
511 return [$k, $this->stripSlashesAddSpaceFallback((string) $v)];
512 },
513 array_keys($arr),
514 $arr
515 ),
516 1,
517 0
518 );
519 }
520 );
521 return (array) ($this->getRequestParam($key, $t) ?? []);
522 }

References ILIAS\Repository\refinery().

Referenced by ilCheckboxGroupInputGUI\checkInput(), ilLocationInputGUI\checkInput(), ilSelectBuilderInputGUI\checkInput(), ilSelectInputGUI\checkInput(), ilTextInputGUI\checkInput(), ilTagInputGUI\checkInput(), ilDclGenericMultiInputGUI\getInput(), 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 415 of file class.ilFormPropertyGUI.php.

415 : string
416 {
417 $str = ilUtil::stripSlashes($a_str);
418 if ($str != $a_str) {
419 $str = ilUtil::stripSlashes(str_replace("<", "< ", $a_str));
420 }
421 return $str;
422 }
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")

References ilUtil\stripSlashes().

+ Here is the call graph for this function:

◆ symbol()

ilFormPropertyGUI::symbol ( )
protected

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

94 {
95 global $DIC;
96 return $DIC->repository()->internal()->gui()->symbol();
97 }

References $DIC.

Referenced by ilSelectBuilderInputGUI\insert(), and ilTextWizardInputGUI\render().

+ 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 242 of file class.ilFormPropertyGUI.php.

242 : void
243 {
244 $data = unserialize($a_data);
245
246 if ($data) {
247 $this->setValue($data);
248 } else {
249 $this->setValue("");
250 }
251 }

References $data.

Referenced by readFromSession().

+ Here is the caller graph for this function:

◆ writeToSession()

ilFormPropertyGUI::writeToSession ( )
Exceptions
Exception

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

283 : void
284 {
285 $this->checkParentFormTable();
286 ilSession::set($this->getSessionKey(), $this->serializeData());
287 }
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 42 of file class.ilFormPropertyGUI.php.

Referenced by getAlert().

◆ $ctrl

◆ $disabled

bool ilFormPropertyGUI::$disabled = false
protected

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

Referenced by getDisabled().

◆ $global_tpl

ilGlobalTemplateInterface ilFormPropertyGUI::$global_tpl = null
protected

◆ $hidden_title

string ilFormPropertyGUI::$hidden_title = ""
protected

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

Referenced by getHiddenTitle().

◆ $http

HTTP Services ilFormPropertyGUI::$http
protected

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

◆ $info

string ilFormPropertyGUI::$info = ""
protected

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

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

◆ $lng

ilLanguage ilFormPropertyGUI::$lng
protected

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

Referenced by ilKprimChoiceWizardInputGUI\__construct(), ilMatchingWizardInputGUI\__construct(), ilTaxAssignInputGUI\__construct(), ilTaxSelectInputGUI\__construct(), ilImageFileInputGUI\__construct(), ilRepositorySelectorInputGUI\__construct(), ilCategoryWizardInputGUI\__construct(), ilMatrixRowWizardInputGUI\__construct(), ilScheduleInputGUI\checkInput(), ilRecurrenceInputGUI\checkInput(), ilDclCheckboxInputGUI\checkInput(), ilDclTextInputGUI\checkInput(), ilAlphabetInputGUI\checkInput(), ilCheckboxGroupInputGUI\checkInput(), ilCSSRectInputGUI\checkInput(), ilCustomInputGUI\checkInput(), ilDateTimeInputGUI\checkInput(), ilEMailInputGUI\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(), ilCategoryWizardInputGUI\checkInput(), ilMatrixRowWizardInputGUI\checkInput(), ilImagemapFileInputGUI\checkInput(), ilTagInputGUI\checkInput(), ilExplorerSelectInputGUI\checkInput(), ilCountrySelectInputGUI\getOptions(), ilTaxAssignInputGUI\getOptions(), ilAnswerWizardInputGUI\getPointsInputLabel(), ilLogicalAnswerComparisonExpressionInputGUI\getPointsInputLabel(), ilAnswerWizardInputGUI\getTextInputLabel(), ilLogicalAnswerComparisonExpressionInputGUI\getTextInputLabel(), ilCSSRectInputGUI\insert(), ilEMailInputGUI\insert(), ilFileWizardInputGUI\insert(), ilImageFileInputGUI\insert(), ilLocationInputGUI\insert(), ilSelectBuilderInputGUI\insert(), ilWidthHeightInputGUI\insert(), ilBackgroundPositionInputGUI\insert(), ilTRBLBorderStyleInputGUI\insert(), ilTRBLBorderWidthInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilTRBLNumericStyleValueInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilErrorTextWizardInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilAssAnswerCorrectionsInputGUI\insert(), ilAssErrorTextCorrectionsInputGUI\insert(), ilAssSingleChoiceCorrectionsInputGUI\insert(), ilImagemapCorrectionsInputGUI\insert(), ilImagemapFileInputGUI\insert(), ilMultipleTextsInputGUI\onCheckInput(), ilRepositorySelectorInputGUI\render(), ilDateTimeInputGUI\render(), ilDurationInputGUI\render(), ilMultiSelectInputGUI\render(), and ilExplorerSelectInputGUI\render().

◆ $multi

bool ilFormPropertyGUI::$multi = false
protected

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

◆ $multi_addremove

bool ilFormPropertyGUI::$multi_addremove = true
protected

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

◆ $multi_sortable

bool ilFormPropertyGUI::$multi_sortable = false
protected

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

◆ $multi_values

array ilFormPropertyGUI::$multi_values = []
protected

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

◆ $parent_gui

ilFormPropertyGUI ilFormPropertyGUI::$parent_gui = null
protected

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

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

◆ $parent_table

ilTable2GUI ilFormPropertyGUI::$parent_table = null
protected

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

Referenced by checkParentFormTable(), and getParentTable().

◆ $parentform

ilPropertyFormGUI ilFormPropertyGUI::$parentform = null
protected

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

Referenced by getParentForm().

◆ $postvar

string ilFormPropertyGUI::$postvar = ""
protected

◆ $refinery

Refinery Factory ilFormPropertyGUI::$refinery = null
protected

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

◆ $request

RequestInterface ilFormPropertyGUI::$request
protected

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

◆ $required

bool ilFormPropertyGUI::$required = false
protected

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

Referenced by getRequired().

◆ $set_params

array ilFormPropertyGUI::$set_params = []
protected

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

◆ $title

◆ $type


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