ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 ($a_title="", $a_postvar="")
 Constructor. More...
 
 executeCommand ()
 Execute command. More...
 
 getType ()
 Get Type. More...
 
 setTitle ($a_title)
 Set Title. More...
 
 getTitle ()
 Get Title. More...
 
 setPostVar ($a_postvar)
 Set Post Variable. More...
 
 getPostVar ()
 Get Post Variable. More...
 
 getFieldId ()
 Get Post Variable. More...
 
 setInfo ($a_info)
 Set Information Text. More...
 
 getInfo ()
 Get Information Text. More...
 
 setAlert ($a_alert)
 Set Alert Text. More...
 
 getAlert ()
 Get Alert Text. More...
 
 setRequired ($a_required)
 Set Required. More...
 
 getRequired ()
 Get Required. More...
 
 setDisabled ($a_disabled)
 Set Disabled. More...
 
 getDisabled ()
 Get Disabled. More...
 
 checkInput ()
 Check input, strip slashes etc. More...
 
 setParentForm ($a_parentform)
 Set Parent Form. More...
 
 getParentForm ()
 Get Parent Form. More...
 
 setParent ($a_val)
 Set Parent GUI object. More...
 
 getParent ()
 Get Parent GUI object. More...
 
 getSubForm ()
 Get sub form html. More...
 
 hideSubForm ()
 Sub form hidden on init? More...
 
 setHiddenTitle ($a_val)
 Set hidden title (for screenreaders) More...
 
 getHiddenTitle ()
 Get hidden title. More...
 
 getItemByPostVar ($a_post_var)
 Get item by post var. More...
 
 serializeData ()
 serialize data More...
 
 unserializeData ($a_data)
 unserialize data More...
 
 writeToSession ()
 Write to session. More...
 
 clearFromSession ()
 Clear session value. More...
 
 readFromSession ()
 Read from session. More...
 
 getHiddenTag ($a_post_var, $a_value)
 Get hidden tag (used for disabled properties) More...
 
 setMulti ($a_multi, $a_sortable=false, $a_addremove=true)
 Set Multi. More...
 
 getMulti ()
 Get Multi. More...
 
 setMultiValues (array $a_values)
 Set multi values. More...
 
 getMultiValues ()
 Get multi values. More...
 
 getContentOutsideFormTag ()
 Get content that has to reside outside of the parent form tag, e.g. More...
 
 stripSlashesAddSpaceFallback ($a_str)
 Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727. More...
 

Static Public Member Functions

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

Protected Member Functions

 setType ($a_type)
 Set Type. More...
 
 getMultiIconsHTML ()
 Get HTML for multiple value icons. More...
 

Protected Attributes

 $type
 
 $title
 
 $postvar
 
 $info
 
 $alert
 
 $required = false
 
 $parentgui
 
 $parentform
 
 $hidden_title = ""
 
 $multi = false
 
 $multi_sortable = false
 
 $multi_addremove = true
 
 $multi_values
 

Detailed Description

This class represents a property in a property form.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

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

Constructor & Destructor Documentation

◆ __construct()

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

Constructor.

Parameters
string$a_titleTitle
string$a_postvarPost Variable

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

References setDisabled(), setPostVar(), and setTitle().

34  {
35  $this->setTitle($a_title);
36  $this->setPostVar($a_postvar);
37  $this->setDisabled(false);
38  }
setPostVar($a_postvar)
Set Post Variable.
setTitle($a_title)
Set Title.
setDisabled($a_disabled)
Set Disabled.
+ Here is the call graph for this function:

Member Function Documentation

◆ checkInput()

ilFormPropertyGUI::checkInput ( )

Check input, strip slashes etc.

set alert, if input is not ok.

Returns
boolean Input ok, true/false

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

Referenced by ilChatroomAuthInputGUI\setValueByArray().

212  {
213  return false; // please overwrite
214  }
+ Here is the caller graph for this function:

◆ clearFromSession()

ilFormPropertyGUI::clearFromSession ( )

Clear session value.

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

References $_SESSION, getFieldId(), and getParent().

352  {
353  $parent = $this->getParent();
354  if (!is_object($parent))
355  {
356  die("You must set parent for ".get_class($this)." to use serialize feature.");
357  }
358  $_SESSION["form_".$parent->getId()][$this->getFieldId()] = false;
359  }
$_SESSION["AccountId"]
getFieldId()
Get Post Variable.
getParent()
Get Parent GUI object.
+ Here is the call graph for this function:

◆ executeCommand()

ilFormPropertyGUI::executeCommand ( )

Execute command.

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

References $cmd, and $ilCtrl.

44  {
45  global $ilCtrl;
46 
47  $next_class = $ilCtrl->getNextClass($this);
48  $cmd = $ilCtrl->getCmd();
49 
50  return $this->$cmd();
51  }
$cmd
Definition: sahs_server.php:35
global $ilCtrl
Definition: ilias.php:18

◆ getAlert()

ilFormPropertyGUI::getAlert ( )

Get Alert Text.

Returns
string Alert Text

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

References $alert.

162  {
163  return $this->alert;
164  }

◆ getContentOutsideFormTag()

ilFormPropertyGUI::getContentOutsideFormTag ( )

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

panels/layers

Returns
string

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

482  {
483 
484  }

◆ getDisabled()

ilFormPropertyGUI::getDisabled ( )

Get Disabled.

Returns
boolean Disabled

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

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

202  {
203  return $this->disabled;
204  }
+ Here is the caller graph for this function:

◆ getFieldId()

ilFormPropertyGUI::getFieldId ( )

Get Post Variable.

Returns
string Post Variable

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

References getPostVar().

Referenced by ilADTSearchBridge\addToParentElement(), ilMailQuickFilterInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkInput(), ilCaptchaInputGUI\checkInput(), clearFromSession(), ilIdentifiedMultiValuesInputGUI\getFieldIdFromPostVar(), getMultiIconsHTML(), ilHiddenInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilImageFileInputGUI\insert(), ilSelectBuilderInputGUI\insert(), ilChatroomAuthInputGUI\insert(), ilCopyrightInputGUI\insert(), ilEMailInputGUI\insert(), ilUserLoginInputGUI\insert(), ilTextWizardInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilColorPickerInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilCSSRectInputGUI\insert(), ilFileWizardInputGUI\insert(), ilImagemapFileInputGUI\insert(), ilImageWizardInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilFlashFileInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilTextAreaInputGUI\insert(), readFromSession(), ilMailTemplateSelectInputGUI\render(), ilGloAdvColSortInputGUI\render(), ilMultipleTextsInputGUI\render(), ilNonEditableValueGUI\render(), ilExplorerSelectInputGUI\render(), ilRadioGroupInputGUI\render(), ilSelectInputGUI\render(), ilScheduleInputGUI\render(), ilCheckboxInputGUI\render(), ilTagInputGUI\render(), ilMultiSelectInputGUI\render(), ilCheckboxGroupInputGUI\render(), ilRepositorySelectorInputGUI\render(), ilPasswordInputGUI\render(), ilFileInputGUI\render(), ilNumberInputGUI\render(), ilRepositorySelectorInputGUI\reset(), ilRepositorySelectorInputGUI\selectRepositoryItem(), ilSelectInputGUI\setHideSubForm(), ilTextInputGUI\setMultiValues(), and writeToSession().

119  {
120  $id = str_replace("[", "__", $this->getPostVar());
121  $id = str_replace("]", "__", $id);
122 
123  return $id;
124  }
getPostVar()
Get Post Variable.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getHiddenTag()

ilFormPropertyGUI::getHiddenTag (   $a_post_var,
  $a_value 
)

Get hidden tag (used for disabled properties)

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

References ilUtil\prepareFormOutput().

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

378  {
379  return '<input type="hidden" name="'.$a_post_var.'" value="'.ilUtil::prepareFormOutput($a_value).'" />';
380  }
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getHiddenTitle()

ilFormPropertyGUI::getHiddenTitle ( )

Get hidden title.

Returns
string hidden title

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

References $hidden_title.

290  {
291  return $this->hidden_title;
292  }

◆ getInfo()

ilFormPropertyGUI::getInfo ( )

Get Information Text.

Returns
string Information Text

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

References $info.

Referenced by ilDclBaseFieldRepresentation\setupInputField().

142  {
143  return $this->info;
144  }
+ Here is the caller graph for this function:

◆ getItemByPostVar()

ilFormPropertyGUI::getItemByPostVar (   $a_post_var)

Get item by post var.

Returns
mixed false or item object

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

References getPostVar().

300  {
301  if ($this->getPostVar() == $a_post_var)
302  {
303  return $this;
304  }
305 
306  return false;
307  }
getPostVar()
Get Post Variable.
+ Here is the call graph for this function:

◆ getMulti()

◆ getMultiIconsHTML()

ilFormPropertyGUI::getMultiIconsHTML ( )
protected

Get HTML for multiple value icons.

Parameters
bool$a_sortable
Returns
string;

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

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

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

440  {
441  global $lng;
442 
443  $id = $this->getFieldId();
444 
445  $tpl = new ilTemplate("tpl.multi_icons.html", true, true, "Services/Form");
446 
447  $html = "";
448  if ($this->multi_addremove)
449  {
450  $tpl->setCurrentBlock("addremove");
451  $tpl->setVariable("ID", $id);
452  $tpl->setVariable("TXT_ADD", $lng->txt("add"));
453  $tpl->setVariable("TXT_REMOVE", $lng->txt("remove"));
454  include_once("./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
455  $tpl->setVariable("SRC_ADD", ilGlyphGUI::get(ilGlyphGUI::ADD));
456  $tpl->setVariable("SRC_REMOVE", ilGlyphGUI::get(ilGlyphGUI::REMOVE));
457  $tpl->parseCurrentBlock();
458  }
459 
460  if ($this->multi_sortable)
461  {
462 
463  $tpl->setCurrentBlock("sortable");
464  $tpl->setVariable("ID", $id);
465  $tpl->setVariable("TXT_DOWN", $lng->txt("down"));
466  $tpl->setVariable("TXT_UP", $lng->txt("up"));
467  include_once("./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
468  $tpl->setVariable("SRC_UP", ilGlyphGUI::get(ilGlyphGUI::UP));
469  $tpl->setVariable("SRC_DOWN", ilGlyphGUI::get(ilGlyphGUI::DOWN));
470  $tpl->parseCurrentBlock();
471  }
472 
473  return $tpl->get();
474  }
static get($a_glyph, $a_text="")
Get glyph html.
global $tpl
Definition: ilias.php:8
getFieldId()
Get Post Variable.
special template class to simplify handling of ITX/PEAR
global $lng
Definition: privfeed.php:17
$html
Definition: example_001.php:87
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMultiValues()

ilFormPropertyGUI::getMultiValues ( )

Get multi values.

Returns
array

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

References $multi_values.

Referenced by ilMailQuickFilterInputGUI\checkInput(), ilSelectInputGUI\render(), and ilTextInputGUI\setMultiValues().

429  {
430  return $this->multi_values;
431  }
+ Here is the caller graph for this function:

◆ getParent()

ilFormPropertyGUI::getParent ( )

Get Parent GUI object.

Returns
object parent gui object

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

Referenced by clearFromSession(), getParentForm(), readFromSession(), ilRepositorySelectorInputGUI\render(), ilLinkInputGUI\render(), and writeToSession().

252  {
253  return $this->parent_gui;
254  }
+ Here is the caller graph for this function:

◆ getParentForm()

ilFormPropertyGUI::getParentForm ( )

Get Parent Form.

Returns
object Parent Form

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

References getParent().

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

232  {
233  return $this->getParent();
234  }
getParent()
Get Parent GUI object.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPostVar()

ilFormPropertyGUI::getPostVar ( )

Get Post Variable.

Returns
string Post Variable

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

References $postvar.

Referenced by ilTypicalLearningTimeInputGUI\__buildDaysSelect(), ilTypicalLearningTimeInputGUI\__buildMonthsSelect(), ilMultipleImagesInputGUI\__construct(), arIndexTableGUI\addFilterField(), ilDclCheckboxInputGUI\checkInput(), ilMailQuickFilterInputGUI\checkInput(), ilDclTextInputGUI\checkInput(), ilFormulaInputGUI\checkInput(), ilEssayKeywordWizardInputGUI\checkInput(), ilNonEditableValueGUI\checkInput(), ilColorPickerInputGUI\checkInput(), ilMultipleChoiceWizardInputGUI\checkInput(), ilLuceneQueryInputGUI\checkInput(), ilFeedUrlInputGUI\checkInput(), ilGloAdvColSortInputGUI\checkInput(), ilSelectBuilderInputGUI\checkInput(), ilFontSizeInputGUI\checkInput(), ilFlashFileInputGUI\checkInput(), ilScheduleInputGUI\checkInput(), ilAdvSelectInputGUI\checkInput(), ilAlphabetInputGUI\checkInput(), ilRegExpInputGUI\checkInput(), ilBackgroundImageInputGUI\checkInput(), ilWidthHeightInputGUI\checkInput(), ilNumericStyleValueInputGUI\checkInput(), ilCustomInputGUI\checkInput(), ilSelectInputGUI\checkInput(), ilTypicalLearningTimeInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkInput(), ilEMailInputGUI\checkInput(), ilTextWizardInputGUI\checkInput(), ilUserLoginInputGUI\checkInput(), ilExplorerSelectInputGUI\checkInput(), ilRadioGroupInputGUI\checkInput(), ilFileWizardInputGUI\checkInput(), ilCopyrightInputGUI\checkInput(), ilMatchingPairWizardInputGUI\checkInput(), ilCaptchaInputGUI\checkInput(), ilTRBLBorderStyleInputGUI\checkInput(), ilBackgroundPositionInputGUI\checkInput(), ilImagemapFileInputGUI\checkInput(), ilImageWizardInputGUI\checkInput(), ilDragDropFileInputGUI\checkInput(), ilSuggestedSolutionSelectorGUI\checkInput(), ilLocationInputGUI\checkInput(), ilCheckboxInputGUI\checkInput(), ilCheckboxGroupInputGUI\checkInput(), ilTRBLBorderWidthInputGUI\checkInput(), ilRepositorySelectorInputGUI\checkInput(), ilTagInputGUI\checkInput(), ilMatchingWizardInputGUI\checkInput(), ilTRBLNumericStyleValueInputGUI\checkInput(), ilDateTimeInputGUI\checkInput(), ilMatrixRowWizardInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), ilCSSRectInputGUI\checkInput(), ilMultiSelectInputGUI\checkInput(), ilAnswerWizardInputGUI\checkInput(), ilErrorTextWizardInputGUI\checkInput(), ilKVPWizardInputGUI\checkInput(), ilCategoryWizardInputGUI\checkInput(), ilIdentifiedMultiValuesInputGUI\checkInput(), ilTRBLColorPickerInputGUI\checkInput(), ilFileInputGUI\checkInput(), ilDateDurationInputGUI\checkInput(), ilLinkInputGUI\checkInput(), ilPasswordInputGUI\checkInput(), ilTextInputGUI\checkInput(), ilDurationInputGUI\checkInput(), ilNumberInputGUI\checkInput(), ilTextAreaInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkUploads(), ilKprimChoiceWizardInputGUI\collectValidFiles(), ilImageFileInputGUI\getDeletionFlag(), ilFlashFileInputGUI\getDeletionFlag(), ilFileInputGUI\getDeletionFlag(), getFieldId(), ilIdentifiedMultiValuesInputGUI\getFieldIdFromPostVar(), ilDclTreePickInputGUI\getHtml(), ilLinkInputGUI\getIntLinkAttributes(), ilSubEnabledFormPropertyGUI\getItemByPostVar(), ilCheckboxGroupInputGUI\getItemByPostVar(), ilRadioGroupInputGUI\getItemByPostVar(), getItemByPostVar(), ilIdentifiedMultiValuesInputGUI\getMultiValuePostVar(), ilDateTimeInputGUI\getPostValueForComparison(), ilNumberInputGUI\getPostValueForComparison(), ilIdentifiedMultiValuesInputGUI\getPostVarSubField(), ilIdentifiedMultiValuesInputGUI\getSubFieldCompletedPostVar(), ilRandomTestROInputGUI\insert(), ilHiddenInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilAdvSelectInputGUI\insert(), ilImageFileInputGUI\insert(), ilFontSizeInputGUI\insert(), ilSelectBuilderInputGUI\insert(), ilBackgroundImageInputGUI\insert(), ilChatroomAuthInputGUI\insert(), ilNumericStyleValueInputGUI\insert(), ilWidthHeightInputGUI\insert(), ilCopyrightInputGUI\insert(), ilEMailInputGUI\insert(), ilUserLoginInputGUI\insert(), ilTextWizardInputGUI\insert(), ilTypicalLearningTimeInputGUI\insert(), ilSuggestedSolutionSelectorGUI\insert(), ilLocationInputGUI\insert(), ilTRBLBorderStyleInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilBackgroundPositionInputGUI\insert(), ilColorPickerInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilTRBLBorderWidthInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilTRBLNumericStyleValueInputGUI\insert(), ilCSSRectInputGUI\insert(), ilFileWizardInputGUI\insert(), ilImagemapFileInputGUI\insert(), ilImageWizardInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilErrorTextWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilFlashFileInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilTextAreaInputGUI\insert(), ilAssNestedOrderingElementsInputGUI\isPostSubmit(), ilMultipleTextsInputGUI\onCheckInput(), ilMultipleImagesInputGUI\onCheckInput(), ilGloAdvColSortInputGUI\render(), ilNestedListInputGUI\render(), ilNonEditableValueGUI\render(), ilExplorerSelectInputGUI\render(), ilRadioGroupInputGUI\render(), ilSelectInputGUI\render(), ilScheduleInputGUI\render(), ilCheckboxInputGUI\render(), ilTagInputGUI\render(), ilMultiSelectInputGUI\render(), ilCheckboxGroupInputGUI\render(), ilRepositorySelectorInputGUI\render(), ilDateTimeInputGUI\render(), ilMultipleImagesInputGUI\render(), ilPasswordInputGUI\render(), ilDurationInputGUI\render(), ilLinkInputGUI\render(), ilFileInputGUI\render(), ilNumberInputGUI\render(), ilDateDurationInputGUI\render(), ilAssQuestionAuthoringFormGUI\replaceFormItemByPostVar(), ilLogicalAnswerComparisonExpressionInputGUI\sanitizeSuperGlobalSubmitValue(), ilAnswerWizardInputGUI\sanitizeSuperGlobalSubmitValue(), ilTaxAssignInputGUI\saveInput(), ilIdentifiedMultiValuesInputGUI\setIdentifiedMultiValuesByArray(), ilTextInputGUI\setMultiValues(), ilFlashFileInputGUI\setValueByArray(), ilFileInputGUI\setValueByArray(), ilUserLoginInputGUI\setValueByArray(), ilAlphabetInputGUI\setValueByArray(), ilScheduleInputGUI\setValueByArray(), ilAdvSelectInputGUI\setValueByArray(), ilEMailInputGUI\setValueByArray(), ilHiddenInputGUI\setValueByArray(), ilRepositorySelectorInputGUI\setValueByArray(), ilSelectInputGUI\setValueByArray(), ilChatroomAuthInputGUI\setValueByArray(), ilDclTreePickInputGUI\setValueByArray(), ilTypicalLearningTimeInputGUI\setValueByArray(), ilManualPlaceholderInputGUI\setValueByArray(), ilRadioGroupInputGUI\setValueByArray(), ilExplorerSelectInputGUI\setValueByArray(), ilCopyrightInputGUI\setValueByArray(), ilSelectBuilderInputGUI\setValueByArray(), ilCheckboxInputGUI\setValueByArray(), ilGloAdvColSortInputGUI\setValueByArray(), ilImagemapFileInputGUI\setValueByArray(), ilPasswordInputGUI\setValueByArray(), ilCheckboxGroupInputGUI\setValueByArray(), ilLocationInputGUI\setValueByArray(), ilSuggestedSolutionSelectorGUI\setValueByArray(), ilTagInputGUI\setValueByArray(), ilDateTimeInputGUI\setValueByArray(), ilCSSRectInputGUI\setValueByArray(), ilBackgroundImageInputGUI\setValueByArray(), ilWidthHeightInputGUI\setValueByArray(), ilNumberInputGUI\setValueByArray(), ilMultiSelectInputGUI\setValueByArray(), ilNumericStyleValueInputGUI\setValueByArray(), ilTextInputGUI\setValueByArray(), ilNonEditableValueGUI\setValueByArray(), ilFontSizeInputGUI\setValueByArray(), ilCaptchaInputGUI\setValueByArray(), ilIdentifiedMultiValuesInputGUI\setValueByArray(), ilLinkInputGUI\setValueByArray(), ilTRBLBorderStyleInputGUI\setValueByArray(), ilDateDurationInputGUI\setValueByArray(), ilDurationInputGUI\setValueByArray(), ilBackgroundPositionInputGUI\setValueByArray(), ilTRBLNumericStyleValueInputGUI\setValueByArray(), ilTRBLBorderWidthInputGUI\setValueByArray(), ilTextAreaInputGUI\setValueByArray(), and ilRepositorySelectorInputGUI\showRepositorySelection().

109  {
110  return $this->postvar;
111  }
+ Here is the caller graph for this function:

◆ getRequired()

ilFormPropertyGUI::getRequired ( )

Get Required.

Returns
boolean Required

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

References $required.

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

182  {
183  return $this->required;
184  }
+ Here is the caller graph for this function:

◆ getSubForm()

ilFormPropertyGUI::getSubForm ( )

Get sub form html.

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

261  {
262  return "";
263  }

◆ getTitle()

ilFormPropertyGUI::getTitle ( )

Get Title.

Returns
string Title

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

References $title.

89  {
90  return $this->title;
91  }

◆ getType()

ilFormPropertyGUI::getType ( )

Get Type.

Returns
string Type

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

References $type.

69  {
70  return $this->type;
71  }

◆ hideSubForm()

ilFormPropertyGUI::hideSubForm ( )

Sub form hidden on init?

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

270  {
271  return false;
272  }

◆ readFromSession()

ilFormPropertyGUI::readFromSession ( )

Read from session.

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

References $_SESSION, getFieldId(), getParent(), and unserializeData().

Referenced by arIndexTableGUI\addFilterField().

365  {
366  $parent = $this->getParent();
367  if (!is_object($parent))
368  {
369  die("You must set parent for ".get_class($this)." to use serialize feature.");
370  }
371  $this->unserializeData($_SESSION["form_".$parent->getId()][$this->getFieldId()]);
372  }
$_SESSION["AccountId"]
unserializeData($a_data)
unserialize data
getFieldId()
Get Post Variable.
getParent()
Get Parent GUI object.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeProhibitedCharacters()

static ilFormPropertyGUI::removeProhibitedCharacters (   $a_text)
static

Remove prohibited characters see #19159.

Parameters
string$a_text
Returns
string

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

Referenced by ilLMObject\saveTitles().

494  {
495  return str_replace("\x0B", "", $a_text);
496  }
+ Here is the caller graph for this function:

◆ serializeData()

ilFormPropertyGUI::serializeData ( )

serialize data

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

Referenced by writeToSession().

313  {
314  return serialize($this->getValue());
315  }
+ Here is the caller graph for this function:

◆ setAlert()

ilFormPropertyGUI::setAlert (   $a_alert)

Set Alert Text.

Parameters
string$a_alertAlert Text

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

Referenced by ilDclCheckboxInputGUI\checkInput(), ilCharSelectorRadioGroupInputGUI\checkInput(), ilMailQuickFilterInputGUI\checkInput(), ilDclTextInputGUI\checkInput(), ilChatroomMessageDeletionThresholdInputGUI\checkInput(), ilFormulaInputGUI\checkInput(), ilEssayKeywordWizardInputGUI\checkInput(), ilMultipleChoiceWizardInputGUI\checkInput(), ilLuceneQueryInputGUI\checkInput(), ilFeedUrlInputGUI\checkInput(), ilSelectBuilderInputGUI\checkInput(), ilFontSizeInputGUI\checkInput(), ilFlashFileInputGUI\checkInput(), ilScheduleInputGUI\checkInput(), ilRecurrenceInputGUI\checkInput(), ilAdvSelectInputGUI\checkInput(), ilAlphabetInputGUI\checkInput(), ilRegExpInputGUI\checkInput(), ilBackgroundImageInputGUI\checkInput(), ilNumericStyleValueInputGUI\checkInput(), ilCustomInputGUI\checkInput(), ilSelectInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkInput(), ilTypicalLearningTimeInputGUI\checkInput(), ilEMailInputGUI\checkInput(), ilTextWizardInputGUI\checkInput(), ilUserLoginInputGUI\checkInput(), ilExplorerSelectInputGUI\checkInput(), ilRadioGroupInputGUI\checkInput(), ilFileWizardInputGUI\checkInput(), ilMatchingPairWizardInputGUI\checkInput(), ilCaptchaInputGUI\checkInput(), ilBackgroundPositionInputGUI\checkInput(), ilImagemapFileInputGUI\checkInput(), ilImageWizardInputGUI\checkInput(), ilDragDropFileInputGUI\checkInput(), ilSuggestedSolutionSelectorGUI\checkInput(), ilLocationInputGUI\checkInput(), ilCheckboxGroupInputGUI\checkInput(), ilTRBLBorderWidthInputGUI\checkInput(), ilRepositorySelectorInputGUI\checkInput(), ilTagInputGUI\checkInput(), ilMatchingWizardInputGUI\checkInput(), ilTRBLNumericStyleValueInputGUI\checkInput(), ilMatrixRowWizardInputGUI\checkInput(), ilDateTimeInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), ilCSSRectInputGUI\checkInput(), ilMultiSelectInputGUI\checkInput(), ilAnswerWizardInputGUI\checkInput(), ilErrorTextWizardInputGUI\checkInput(), ilKVPWizardInputGUI\checkInput(), ilCategoryWizardInputGUI\checkInput(), ilFileInputGUI\checkInput(), ilDateDurationInputGUI\checkInput(), ilLinkInputGUI\checkInput(), ilPasswordInputGUI\checkInput(), ilTextInputGUI\checkInput(), ilNumberInputGUI\checkInput(), ilTextAreaInputGUI\checkInput(), ilAssQuestionSkillAssignmentsGUI\checkSolutionCompareExpressionInput(), ilKprimChoiceWizardInputGUI\checkUploads(), ilCourseRegistrationGUI\fillRegistrationType(), ilMultipleTextsInputGUI\onCheckInput(), ilMultipleImagesInputGUI\onCheckInput(), and ilChatroomAuthInputGUI\setValueByArray().

152  {
153  $this->alert = $a_alert;
154  }
+ Here is the caller graph for this function:

◆ setDisabled()

◆ setHiddenTitle()

ilFormPropertyGUI::setHiddenTitle (   $a_val)

Set hidden title (for screenreaders)

Parameters
stringhidden title

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

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

280  {
281  $this->hidden_title = $a_val;
282  }
+ Here is the caller graph for this function:

◆ setInfo()

ilFormPropertyGUI::setInfo (   $a_info)

Set Information Text.

Parameters
string$a_infoInformation Text

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

Referenced by ilSCORMCertificateAdapter\addAdditionalFormElements(), ilObjTestSettingsGeneralGUI\addAvailabilityProperties(), ilADTFormBridge\addBasicFieldProperties(), ilMailCronNotification\addCustomSettingsToForm(), ilSCCronTrash\addCustomSettingsToForm(), ilMailCronOrphanedMails\addCustomSettingsToForm(), ilCronDeleteInactivatedUserAccounts\addCustomSettingsToForm(), ilCronDeleteInactiveUserAccounts\addCustomSettingsToForm(), SurveyMatrixQuestionGUI\addFieldsToEditForm(), ilCharSelectorGUI\addFormProperties(), ilObjTestSettingsGeneralGUI\addGeneralProperties(), ilObjTestSettingsScoringResultsGUI\addResultDetailsSettingsFormSection(), ilObjTestSettingsScoringResultsGUI\addResultSummarySettingsFormSection(), ilSystemStyleOverviewGUI\addSubStyleForms(), ilObjTestSettingsGeneralGUI\addTestAccessProperties(), ilObjTestSettingsGeneralGUI\addTestFinishProperties(), ilObjTestSettingsGeneralGUI\addTestRunProperties(), ilChatroomFormFactory\applyValues(), ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilDclTextFieldRepresentation\buildFieldCreationInput(), ilDclFileuploadFieldRepresentation\buildFieldCreationInput(), ilDclReferenceFieldRepresentation\buildFieldCreationInput(), ilObjQuestionPoolSettingsGeneralGUI\buildForm(), ilObjTestSettingsGeneralGUI\buildForm(), ilObjForumGUI\cancelDraftObject(), ilSystemStyleOverviewGUI\createSystemStyleForm(), ilSetupGUI\displayDatabase(), ilSetupGUI\displaySessions(), ilPCQuestionOverviewGUI\edit(), ilObjExternalToolsSettingsGUI\editMathJaxObject(), ilObjNewsSettingsGUI\editSettings(), ilObjPersonalDesktopSettingsGUI\editSettings(), ilObjLearningResourcesSettingsGUI\editSettings(), ilSystemStyleSettingsGUI\editSystemStyleForm(), ilObjLanguageExtGUI\exportObject(), ilObjTestGUI\formTimingObject(), ilObjAuthSettingsGUI\getApacheAuthSettingsForm(), ilMarkSchemaGUI\getEctsForm(), ilNewsItemGUI\getEditForm(), ilDclTextFieldRepresentation\getInputField(), ilObjForumAdministrationGUI\getSettingsForm(), ilMailFormGUI\getTemplateDataById(), ilObjUserGUI\getValues(), ilSurveyParticipantsGUI\importAccessCodesObject(), ilSurveyParticipantsGUI\importExternalMailRecipientsFromFileFormObject(), ilObjLanguageExtGUI\importObject(), ilPageObjectGUI\initActivationForm(), ilObjMediaCastGUI\initAddCastItemForm(), ilRegistrationSettingsGUI\initAddCodesForm(), ilExAssignmentEditorGUI\initAssignmentForm(), ilObjAuthSettingsGUI\initAuthModeDetermination(), ilSetupGUI\initBasicSettingsForm(), ilSetupGUI\initControlStructureForm(), ilObjPortfolioGUI\initCreatePortfolioFromTemplateForm(), ilExcCriteriaText\initCustomForm(), ilObjRepositorySettingsGUI\initCustomIconsForm(), ilObjPortfolioTemplateGUI\initDidacticTemplate(), ilObjFileAccessSettingsGUI\initDownloadingSettingsForm(), ilObjPollGUI\initEditCustomForm(), ilObjBlogGUI\initEditCustomForm(), ilObjItemGroupGUI\initEditCustomForm(), ilObjBookingPoolGUI\initEditCustomForm(), ilObjExerciseGUI\initEditCustomForm(), ilObjPortfolioTemplateGUI\initEditCustomForm(), ilObjDataCollectionGUI\initEditCustomForm(), ilObjSurveyQuestionPoolGUI\initEditForm(), SurveyQuestionGUI\initEditForm(), ilObjCourseGUI\initEditForm(), ilDidacticTemplateSettingsGUI\initEditTemplate(), arConfigFormGUI\initForm(), ilObjMailGUI\initForm(), ilContainerNewsSettingsGUI\initForm(), ilPCMyCoursesGUI\initForm(), ilRegistrationSettingsGUI\initForm(), ilObjWikiSettingsGUI\initForm(), ilBookingScheduleGUI\initForm(), ilPersonalChatSettingsFormGUI\initForm(), ilCalendarAppointmentGUI\initForm(), ilSkillCategoryGUI\initForm(), ilPCSectionGUI\initForm(), ilSkillTemplateReferenceGUI\initForm(), ilBasicSkillGUI\initForm(), ilDclTableEditGUI\initForm(), ilDclFieldEditGUI\initForm(), ilLDAPSettingsGUI\initForm(), ilObjGroupGUI\initForm(), ilObjSessionGUI\initForm(), ilObjectActivationGUI\initFormEdit(), ilExternalFeedBlockGUIGen\initFormFeedBlock(), ilPDExternalFeedBlockGUI\initFormFeedBlock(), ilExternalFeedBlockGUI\initFormFeedBlock(), ilObjUserFolderGUI\initFormGeneralSettings(), ilLDAPSettingsGUI\initFormRoleAssignments(), ilConsultationHoursGUI\initFormSequence(), ilCASSettingsGUI\initFormSettings(), ilObjWebResourceAdministrationGUI\initFormSettings(), ilMembershipAdministrationGUI\initFormSettings(), ilObjExerciseAdministrationGUI\initFormSettings(), ilObjBadgeAdministrationGUI\initFormSettings(), ilObjBlogAdministrationGUI\initFormSettings(), ilObjPortfolioAdministrationGUI\initFormSettings(), ilObjTaggingSettingsGUI\initFormSettings(), ilObjSearchSettingsGUI\initFormSettings(), ilObjAwarenessAdministrationGUI\initFormSettings(), ilObjLoggingSettingsGUI\initFormSettings(), ilObjCalendarSettingsGUI\initFormSettings(), ilObjSystemCheckGUI\initFormTrash(), ilObjForumGUI\initForumCreateForm(), ilObjAdvancedEditingGUI\initGeneralPageSettingsForm(), ilObjMDSettingsGUI\initGeneralSettingsForm(), ilPersonalSettingsGUI\initGeneralSettingsForm(), ilIndividualAssessmentMemberGUI\initGradingForm(), ilDclRecordListGUI\initImportForm(), ilObjContentObjectGUI\initImportForm(), ilObjTestGUI\initImportForm(), ilObjGroupGUI\initInfoEditor(), ilIndividualAssessmentSettingsGUI\initInfoSettingsForm(), ilObjSystemFolderGUI\initJavaServerForm(), ilObjSystemFolderGUI\initJavaServerIniForm(), ilLicenseGUI\initLicenseForm(), ilObjUserFolderGUI\initLoginSettingsForm(), ilPersonalSettingsGUI\initMailOptionsForm(), ilMailOptionsGUI\initMailOptionsForm(), ilObjMediaObjectsSettingsGUI\initMediaObjectsSettingsForm(), ilObjContentObjectGUI\initMenuForm(), assOrderingQuestion\initOrderingElementFormFieldLabels(), ilObjAdvancedEditingGUI\initPageEditorForm(), ilExAssignmentEditorGUI\initPeerReviewForm(), ilObjSCORM2004LearningModuleGUI\initPropertiesEditableForm(), ilPCTableGUI\initPropertiesForm(), ilObjStyleSheetGUI\initPropertiesForm(), ilObjContentObjectGUI\initPropertiesForm(), ilObjFileGUI\initPropertiesForm(), ilObjSurveyGUI\initPropertiesForm(), ilObjSystemFolderGUI\initProxyForm(), ilSetupGUI\initProxyForm(), ilPersonalProfileGUI\initPublicProfileForm(), ilSurveyEditorGUI\initQuestionblockForm(), ilPermissionGUI\initRoleForm(), ilObjRepositorySettingsGUI\initSettingsForm(), ilIndividualAssessmentSettingsGUI\initSettingsForm(), ilObjSurveyAdministrationGUI\initSettingsForm(), ilObjTermsOfServiceGUI\initSettingsForm(), ilObjUserTrackingGUI\initSettingsForm(), ilBadgeProfileGUI\initSettingsForm(), ilObjGlossaryGUI\initSettingsForm(), ilObjWikiGUI\initSettingsForm(), ilObjRoleFolderGUI\initSettingsForm(), ilNewsForContextBlockGUI\initSettingsForm(), ilObjMediaCastGUI\initSettingsForm(), ilConsultationHoursGUI\initSettingsForm(), ilObjFileGUI\initSingleUploadForm(), ilObjFileAccessSettingsGUI\initUploadSettingsForm(), ilObjSystemFolderGUI\initWebServicesForm(), ilObjFileGUI\initZipUploadForm(), ilSurveyParticipantsGUI\inviteObject(), assFormulaQuestionGUI\isSaveCommand(), ilObjForumGUI\isWritingWithPseudonymAllowed(), ilObjLanguageExtGUI\maintainObject(), ilAdvancedMDRecordGUI\parseRecordSelection(), ilExerciseSubmissionTableGUI\parseRow(), assKprimChoiceGUI\populateAnswerSpecificFormPart(), assFileUploadGUI\populateQuestionSpecificFormPart(), assKprimChoiceGUI\populateQuestionSpecificFormPart(), assNumericGUI\populateQuestionSpecificFormPart(), assMultipleChoiceGUI\populateQuestionSpecificFormPart(), ilLDAPSettingsGUI\roleMapping(), ilRadiusSettingsGUI\settings(), ilObjAssessmentFolderGUI\settingsObject(), ilDclBaseFieldRepresentation\setupInputField(), ilObjSystemFolderGUI\showBasicSettingsObject(), ilConditionHandlerGUI\showObligatoryForm(), and ilSCORM2004ScoGUI\showProperties().

132  {
133  $this->info = $a_info;
134  }
+ Here is the caller graph for this function:

◆ setMulti()

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

Set Multi.

Parameters
bool$a_multiMulti

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

Referenced by ilTaxAssignInputGUI\__construct(), ilUserProfile\addStandardFieldsToForm(), ilObjUserGUI\getValues(), ilRegistrationSettingsGUI\initAddCodesForm(), ilAttendanceList\initForm(), and ilECSMappingSettingsGUI\initFormCSettings().

388  {
389  if(!$this instanceof ilMultiValuesItem)
390  {
391  require_once 'Services/Form/exceptions/class.ilFormException.php';
392  throw new ilFormException(sprintf(
393  "%s not supported for form property type %s",
394  __FUNCTION__, get_class($this)
395  ));
396  }
397 
398  $this->multi = (bool)$a_multi;
399  $this->multi_sortable = (bool)$a_sortable;
400  $this->multi_addremove = (bool)$a_addremove;
401  }
Class ilFormException.
Interface for multi values support.
+ Here is the caller graph for this function:

◆ setMultiValues()

ilFormPropertyGUI::setMultiValues ( array  $a_values)

Set multi values.

Parameters
array$a_values

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

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

419  {
420  $this->multi_values = array_unique($a_values);
421  }
+ Here is the caller graph for this function:

◆ setParent()

ilFormPropertyGUI::setParent (   $a_val)

Set Parent GUI object.

Parameters
objectparent gui object

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

Referenced by ilLanguageExtTableGUI\initFilter(), ilPCSectionGUI\initForm(), and setParentForm().

242  {
243  $this->parent_gui = $a_val;
244  }
+ Here is the caller graph for this function:

◆ setParentForm()

ilFormPropertyGUI::setParentForm (   $a_parentform)

Set Parent Form.

Parameters
object$a_parentformParent Form

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

References setParent().

222  {
223  $this->setParent($a_parentform);
224  }
setParent($a_val)
Set Parent GUI object.
+ Here is the call graph for this function:

◆ setPostVar()

ilFormPropertyGUI::setPostVar (   $a_postvar)

Set Post Variable.

Parameters
string$a_postvarPost Variable

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

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

99  {
100  $this->postvar = $a_postvar;
101  }
+ Here is the caller graph for this function:

◆ setRequired()

ilFormPropertyGUI::setRequired (   $a_required)

Set Required.

Parameters
boolean$a_requiredRequired

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

Referenced by ilRandomTestROInputGUI\__construct(), FormMailCodesGUI\__construct(), ilAccountRegistrationGUI\__initForm(), ilSCORMCertificateAdapter\addAdditionalFormElements(), ilADTFormBridge\addBasicFieldProperties(), ilMemberAgreementGUI\addCustomFields(), ilAdvancedMDFieldDefinitionSelect\addCustomFieldToDefinitionForm(), SurveyMultipleChoiceQuestionGUI\addFieldsToEditForm(), SurveyMetricQuestionGUI\addFieldsToEditForm(), SurveySingleChoiceQuestionGUI\addFieldsToEditForm(), SurveyTextQuestionGUI\addFieldsToEditForm(), SurveyMatrixQuestionGUI\addFieldsToEditForm(), ilTestExpressPageObjectGUI\addQuestion(), ilObjTestGUI\addQuestionObject(), ilObjTestSettingsScoringResultsGUI\addResultDetailsSettingsFormSection(), ilObjTestSettingsScoringResultsGUI\addResultSummarySettingsFormSection(), ilSystemStyleIconsGUI\addSelectIconToolbar(), ilECSObjectSettings\addSettingsToForm(), ilUserProfile\addStandardFieldsToForm(), ilSystemStyleOverviewGUI\addSubStyleForms(), ilObjTestSettingsGeneralGUI\addTestAccessProperties(), ilObjTestSettingsGeneralGUI\addTestFinishProperties(), ilObjTestSettingsGeneralGUI\addTestIntroProperties(), ilMembershipNotifications\addToSettingsForm(), ilChatroomFormFactory\applyValues(), ilTestRandomQuestionSetGeneralConfigFormGUI\build(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilAssQuestionHintGUI\buildForm(), ilObjStudyProgrammeSettingsGUI\buildForm(), ilTestPasswordProtectionGUI\buildPasswordForm(), ilAssQuestionSkillAssignmentPropertyFormGUI\buildResultSkillPointsInputField(), ilObjForumGUI\cancelDraftObject(), ilCertificateGUI\certificateEditor(), ilSetupGUI\cloneInitForm(), ilSystemStyleOverviewGUI\cloneSystemStyleForm(), ilObjStyleSheetGUI\createObject(), ilSurveyEditorGUI\createQuestionObject(), ilObjTestGUI\createQuestionObject(), ilPasswordAssistanceGUI\getAssignPasswordForm(), ilPasswordAssistanceGUI\getAssistanceForm(), ilGlossaryTermGUI\getEditTermForm(), ilObjAssessmentFolderGUI\getLogDataOutputForm(), ilMailFormGUI\getTemplateDataById(), ilMailTemplateGUI\getTemplateForm(), ilObjForumGUI\getThreadEditingForm(), ilMailAttachmentGUI\getToolbarForm(), ilPasswordAssistanceGUI\getUsernameAssistanceForm(), ilObjUserGUI\getValues(), ilSystemStyleOverviewGUI\importSystemStyleForm(), ilObjUserFolderGUI\initAccessRestrictionForm(), ilPageObjectGUI\initActivationForm(), ilObjMediaCastGUI\initAddCastItemForm(), ilAccountCodesGUI\initAddCodesForm(), ilRegistrationSettingsGUI\initAddCodesForm(), ilPCFileItemGUI\initAddFileForm(), ilObjLanguageExtGUI\initAddNewEntryForm(), ilExAssignmentEditorGUI\initAssignmentForm(), ilBadgeManagementGUI\initBadgeForm(), ilSetupGUI\initBasicSettingsForm(), ilObjPortfolioTemplateGUI\initBlogForm(), ilObjPortfolioGUI\initBlogForm(), ilObjBookingPoolGUI\initBookingNumbersForm(), ilECSSettingsGUI\initCategoryMappingForm(), ilSetupGUI\initClientIniForm(), ilStartUpGUI\initCodeForm(), ilObjStyleSheetGUI\initColorForm(), ilObjRoleFolderGUI\initCopyBehaviourForm(), ilObjPortfolioTemplateGUI\initCopyPageFormOptions(), ilObjPortfolioGUI\initCopyPageFormOptions(), ilCloudPluginCreateFolderGUI\initCreateFolder(), ilObjPortfolioGUI\initCreateForm(), ilObjCloudGUI\initCreateForm(), ilObjPortfolioGUI\initCreatePortfolioFromTemplateForm(), ilBlogPostingGUI\initDateForm(), ilObjFileAccessSettingsGUI\initDiskQuotaMailTemplateForm(), ilObjPollGUI\initEditCustomForm(), ilObjBlogGUI\initEditCustomForm(), ilObjBookingPoolGUI\initEditCustomForm(), ilCronManagerGUI\initEditForm(), SurveyQuestionGUI\initEditForm(), ilPCFileListGUI\initEditForm(), ilDidacticTemplateSettingsGUI\initEditTemplate(), ilObjectCustomUserFieldsGUI\initFieldForm(), ilObjBibliographicAdminLibrariesFormGUI\initForm(), ilPCContentTemplateGUI\initForm(), ilLOTestAssignmentForm\initForm(), ilCalendarRecurrenceGUI\initForm(), ilPCConsultationHoursGUI\initForm(), ilPCBlogGUI\initForm(), ilPCVerificationGUI\initForm(), ilBookingScheduleGUI\initForm(), ilOrgUnitSimpleImportGUI\initForm(), ilOrgUnitSimpleUserImportGUI\initForm(), ilPCMapGUI\initForm(), ilCalendarAppointmentGUI\initForm(), ilPCSkillsGUI\initForm(), ilCustomUserFieldsGUI\initForm(), ilSkillTemplateReferenceGUI\initForm(), ilObjCourseGroupingGUI\initForm(), ilBookingObjectGUI\initForm(), ilDclTableEditGUI\initForm(), ilDclFieldEditGUI\initForm(), ilContainerReferenceGUI\initForm(), ilMailingListsGUI\initForm(), ilLDAPSettingsGUI\initForm(), ilObjSessionGUI\initForm(), ilBookmarkAdministrationGUI\initFormBookmarkFolder(), ilConditionHandlerGUI\initFormCondition(), ilECSMappingSettingsGUI\initFormCSettings(), ilObjectActivationGUI\initFormEdit(), ilObjLinkResourceGUI\initFormLink(), ilObjSearchSettingsGUI\initFormLuceneSettings(), ilContainerGUI\initFormPasswordInstruction(), ilAuthShibbolethSettingsGUI\initFormRoleAssignment(), ilLDAPSettingsGUI\initFormRoleAssignments(), ilLPListOfSettingsGUI\initFormSettings(), ilCASSettingsGUI\initFormSettings(), ilObjBlogAdministrationGUI\initFormSettings(), ilObjPortfolioAdministrationGUI\initFormSettings(), ilObjSearchSettingsGUI\initFormSettings(), ilObjLinkResourceGUI\initFormSettings(), ilObjSystemCheckGUI\initFormTrash(), ilObjSCORM2004LearningModuleGUI\initGlossaryCreationForm(), ilObjStyleSheetGUI\initImageForm(), ilObjBadgeAdministrationGUI\initImageTemplateForm(), ilBookmarkAdministrationGUI\initImportBookmarksForm(), ilObjSCORMLearningModuleGUI\initImportForm(), ilSurveyParticipantsGUI\initMailRatersForm(), assOrderingQuestion\initOrderingElementAuthoringProperties(), ilObjPortfolioBaseGUI\initPageForm(), ilWorkspaceAccessGUI\initPasswordForm(), ilPersonalSettingsGUI\initPasswordForm(), ilPersonalProfileGUI\initPersonalDataImportForm(), SurveyQuestionGUI\initPhrasesForm(), ilExSubmissionObjectGUI\initPortfolioTemplateForm(), ilPCBlogGUI\initPostingForm(), ilPDNewsBlockGUI\initPrivateSettingsForm(), ilObjContentObjectGUI\initPropertiesForm(), ilObjSurveyGUI\initPropertiesForm(), ilObjPollGUI\initQuestionForm(), ilObjRoleFolderGUI\initRoleSearchForm(), ilCloudPluginSettingsGUI\initSettingsForm(), ilObjSurveyAdministrationGUI\initSettingsForm(), ilECSSettingsGUI\initSettingsForm(), ilLOEditorGUI\initSettingsForm(), ilObjWikiGUI\initSettingsForm(), ilNewsForContextBlockGUI\initSettingsForm(), ilObjFileGUI\initSingleUploadForm(), ilChatroomAdminSmileyGUI\initSmiliesForm(), ilStartUpGUI\initStandardLoginForm(), ilSystemStyleLessGUI\initSystemStyleLessForm(), ilObjWikiGUI\initTemplateSelectionForm(), ilObjSAHSLearningModuleGUI\initUploadForm(), ilObjFileGUI\initZipUploadForm(), ilPageObjectGUI\insertJSAtPlaceholder(), assFormulaQuestionGUI\isSaveCommand(), ilObjForumGUI\isWritingWithPseudonymAllowed(), SurveyQuestionGUI\material(), ilMailingListsGUI\performDeleteMembers(), ilSurveyPhrasesGUI\phraseEditor(), assMatchingQuestionGUI\populateAnswerSpecificFormPart(), assTextSubsetGUI\populateAnswerSpecificFormPart(), assTextQuestionGUI\populateAnswerSpecificFormPart(), assSingleChoiceGUI\populateAnswerSpecificFormPart(), assMultipleChoiceGUI\populateAnswerSpecificFormPart(), ilAssQuestionSkillAssignmentPropertyFormGUI\populateFullProperties(), assLongMenuGUI\populateQuestionSpecificFormPart(), assKprimChoiceGUI\populateQuestionSpecificFormPart(), assFlashQuestionGUI\populateQuestionSpecificFormPart(), assImagemapQuestionGUI\populateQuestionSpecificFormPart(), assMatchingQuestionGUI\populateQuestionSpecificFormPart(), assClozeTestGUI\populateQuestionSpecificFormPart(), assSingleChoiceGUI\populateQuestionSpecificFormPart(), assMultipleChoiceGUI\populateQuestionSpecificFormPart(), assClozeTestGUI\populateSelectGapFormPart(), assClozeTestGUI\populateTextGapFormPart(), ilSystemStyleIconsGUI\preview(), ilObjOrgUnitSettingsFormGUI\saveObject(), ilRadiusSettingsGUI\settings(), ilObjCertificateSettingsGUI\settings(), ilObjAssessmentFolderGUI\settingsObject(), ilDclBaseFieldRepresentation\setupInputField(), and ilUnitConfigurationGUI\showUnitCreationForm().

172  {
173  $this->required = $a_required;
174  }
+ Here is the caller graph for this function:

◆ setTitle()

◆ setType()

ilFormPropertyGUI::setType (   $a_type)
protected

Set Type.

Parameters
string$a_typeType

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

References $a_type.

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

59  {
60  $this->type = $a_type;
61  }
$a_type
Definition: workflow.php:93
+ Here is the caller graph for this function:

◆ stripSlashesAddSpaceFallback()

ilFormPropertyGUI::stripSlashesAddSpaceFallback (   $a_str)

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

Parameters
string$a_strstring
Returns
string

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

References ilUtil\stripSlashes().

Referenced by ilTextInputGUI\checkInput(), and ilTextAreaInputGUI\checkInput().

505  {
506  $str = ilUtil::stripSlashes($a_str);
507  if ($str != $a_str)
508  {
509  $str = ilUtil::stripSlashes(str_replace("<", "< ", $a_str));
510  }
511  return $str;
512  }
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unserializeData()

ilFormPropertyGUI::unserializeData (   $a_data)

unserialize data

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

References $data.

Referenced by readFromSession().

321  {
322  $data = unserialize($a_data);
323 
324  if ($data)
325  {
326  $this->setValue($data);
327  }
328  else
329  {
330  $this->setValue(false);
331  }
332  }
+ Here is the caller graph for this function:

◆ writeToSession()

ilFormPropertyGUI::writeToSession ( )

Write to session.

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

References $_SESSION, getFieldId(), getParent(), and serializeData().

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

338  {
339  $parent = $this->getParent();
340  if (!is_object($parent))
341  {
342  die("You must set parent for ".get_class($this)." to use serialize feature.");
343  }
344  $_SESSION["form_".$parent->getId()][$this->getFieldId()] =
345  $this->serializeData();
346  }
$_SESSION["AccountId"]
getFieldId()
Get Post Variable.
getParent()
Get Parent GUI object.
serializeData()
serialize data
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $alert

ilFormPropertyGUI::$alert
protected

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

Referenced by getAlert().

◆ $hidden_title

ilFormPropertyGUI::$hidden_title = ""
protected

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

Referenced by getHiddenTitle().

◆ $info

ilFormPropertyGUI::$info
protected

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

Referenced by getInfo().

◆ $multi

ilFormPropertyGUI::$multi = false
protected

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

Referenced by getMulti().

◆ $multi_addremove

ilFormPropertyGUI::$multi_addremove = true
protected

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

◆ $multi_sortable

ilFormPropertyGUI::$multi_sortable = false
protected

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

◆ $multi_values

ilFormPropertyGUI::$multi_values
protected

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

Referenced by getMultiValues().

◆ $parentform

ilFormPropertyGUI::$parentform
protected

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

◆ $parentgui

ilFormPropertyGUI::$parentgui
protected

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

◆ $postvar

◆ $required

ilFormPropertyGUI::$required = false
protected

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

Referenced by getRequired().

◆ $title

◆ $type


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