ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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...
 
 getTableFilterLabelFor ()
 Get label "for" attribute value for filter. More...
 
 getFormLabelFor ()
 Get label "for" attribute value for form. 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

 $ctrl
 
 $lng
 
 $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

Reimplemented in ilRecurrenceInputGUI, ilLuceneQueryInputGUI, ilGloAdvColSortInputGUI, ilScheduleInputGUI, ilDclGenericMultiInputGUI, ilOrgUnitGenericMultiInputGUI, ilOrgUnitMultiLineInputGUI, ilCategoryWizardInputGUI, ilMatrixRowWizardInputGUI, ilRandomTestROInputGUI, ilAnswerWizardInputGUI, ilErrorTextWizardInputGUI, ilImageWizardInputGUI, ilKprimChoiceWizardInputGUI, ilKVPWizardInputGUI, ilMatchingPairWizardInputGUI, ilMatchingWizardInputGUI, ilSingleChoiceWizardInputGUI, ilSuggestedSolutionSelectorGUI, ilImagemapFileInputGUI, ilAdvSelectInputGUI, ilAlphabetInputGUI, ilCheckboxGroupInputGUI, ilCheckboxInputGUI, ilColorPickerInputGUI, ilCombinationInputGUI, ilCountrySelectInputGUI, ilCSSRectInputGUI, ilCustomInputGUI, ilDateDurationInputGUI, ilDateTimeInputGUI, ilDragDropFileInputGUI, ilDurationInputGUI, ilEMailInputGUI, ilFeedUrlInputGUI, ilFileInputGUI, ilFileWizardInputGUI, ilFlashFileInputGUI, ilFormulaInputGUI, ilIdentifiedMultiValuesInputGUI, ilImageFileInputGUI, ilLinkInputGUI, ilLocationInputGUI, ilMultipleImagesInputGUI, ilMultipleTextsInputGUI, ilMultiSelectInputGUI, ilNestedListInputGUI, ilNumberInputGUI, ilPasswordInputGUI, ilRadioGroupInputGUI, ilRegExpInputGUI, ilRepositorySelectorInputGUI, ilSelectBuilderInputGUI, ilSelectInputGUI, ilTagInputGUI, ilTextAreaInputGUI, ilTextInputGUI, ilTextWizardInputGUI, ilUriInputGUI, ilUserLoginInputGUI, ilWidthHeightInputGUI, ilCopyrightInputGUI, ilTypicalLearningTimeInputGUI, ilBackgroundImageInputGUI, ilBackgroundPositionInputGUI, ilFontSizeInputGUI, ilNumericStyleValueInputGUI, ilTRBLBorderStyleInputGUI, ilTRBLBorderWidthInputGUI, ilTRBLColorPickerInputGUI, ilTRBLNumericStyleValueInputGUI, ilCharSelectorRadioGroupInputGUI, ilCaptchaInputGUI, and ilMultipleNestedOrderingElementsInputGUI.

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

44 {
45 global $DIC;
46
47 $this->ctrl = $DIC->ctrl();
48 $this->lng = $DIC->language();
49 $this->setTitle($a_title);
50 $this->setPostVar($a_postvar);
51 $this->setDisabled(false);
52 }
setTitle($a_title)
Set Title.
setDisabled($a_disabled)
Set Disabled.
setPostVar($a_postvar)
Set Post Variable.
$DIC
Definition: xapitoken.php:46

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

+ 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

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

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

226 {
227 return false; // please overwrite
228 }

◆ clearFromSession()

ilFormPropertyGUI::clearFromSession ( )

Clear session value.

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

361 {
362 $parent = $this->getParent();
363 if (!is_object($parent)) {
364 die("You must set parent for " . get_class($this) . " to use serialize feature.");
365 }
366 $_SESSION["form_" . $parent->getId()][$this->getFieldId()] = false;
367 }
$_SESSION["AccountId"]
getFieldId()
Get Post Variable.
getParent()
Get Parent GUI object.

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

+ Here is the call graph for this function:

◆ executeCommand()

ilFormPropertyGUI::executeCommand ( )

Execute command.

Reimplemented in ilLinkInputGUI.

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

58 {
60
61 $next_class = $ilCtrl->getNextClass($this);
62 $cmd = $ilCtrl->getCmd();
63
64 return $this->$cmd();
65 }
global $ilCtrl
Definition: ilias.php:18

References $ctrl, and $ilCtrl.

◆ getAlert()

ilFormPropertyGUI::getAlert ( )

Get Alert Text.

Returns
string Alert Text

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

176 {
177 return $this->alert;
178 }

References $alert.

◆ getContentOutsideFormTag()

ilFormPropertyGUI::getContentOutsideFormTag ( )

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

panels/layers

Returns
string

Reimplemented in ilLinkInputGUI.

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

486 {
487 }

◆ getDisabled()

ilFormPropertyGUI::getDisabled ( )

Get Disabled.

Returns
boolean Disabled

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

216 {
217 return $this->disabled;
218 }

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

+ Here is the caller graph for this function:

◆ getFieldId()

ilFormPropertyGUI::getFieldId ( )

Get Post Variable.

Returns
string Post Variable

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

133 {
134 $id = str_replace("[", "__", $this->getPostVar());
135 $id = str_replace("]", "__", $id);
136
137 return $id;
138 }
getPostVar()
Get Post Variable.

References getPostVar().

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

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

Returns
string

Reimplemented in ilDateDurationInputGUI, and ilRadioGroupInputGUI.

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

528 {
529 return $this->getFieldId();
530 }

References getFieldId().

+ Here is the call graph for this function:

◆ getHiddenTag()

ilFormPropertyGUI::getHiddenTag (   $a_post_var,
  $a_value 
)

Get hidden tag (used for disabled properties)

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

385 {
386 return '<input type="hidden" name="' . $a_post_var . '" value="' . ilUtil::prepareFormOutput($a_value) . '" />';
387 }
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public

References ilUtil\prepareFormOutput().

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

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

References $hidden_title.

◆ getInfo()

ilFormPropertyGUI::getInfo ( )

Get Information Text.

Returns
string Information Text

Reimplemented in ilNonEditableValueGUI.

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

156 {
157 return $this->info;
158 }

References $info.

Referenced by ilDclBaseFieldRepresentation\setupInputField().

+ 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

Reimplemented in ilCheckboxGroupInputGUI, ilRadioGroupInputGUI, ilSubEnabledFormPropertyGUI, and ilIncomingMailInputGUI.

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

314 {
315 if ($this->getPostVar() == $a_post_var) {
316 return $this;
317 }
318
319 return false;
320 }

References getPostVar().

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

447 {
449
450 $id = $this->getFieldId();
451
452 $tpl = new ilTemplate("tpl.multi_icons.html", true, true, "Services/Form");
453
454 $html = "";
455 if ($this->multi_addremove) {
456 $tpl->setCurrentBlock("addremove");
457 $tpl->setVariable("ID", $id);
458 $tpl->setVariable("TXT_ADD", $lng->txt("add"));
459 $tpl->setVariable("TXT_REMOVE", $lng->txt("remove"));
460 include_once("./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
461 $tpl->setVariable("SRC_ADD", ilGlyphGUI::get(ilGlyphGUI::ADD));
462 $tpl->setVariable("SRC_REMOVE", ilGlyphGUI::get(ilGlyphGUI::REMOVE));
463 $tpl->parseCurrentBlock();
464 }
465
466 if ($this->multi_sortable) {
467 $tpl->setCurrentBlock("sortable");
468 $tpl->setVariable("ID", $id);
469 $tpl->setVariable("TXT_DOWN", $lng->txt("down"));
470 $tpl->setVariable("TXT_UP", $lng->txt("up"));
471 include_once("./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
472 $tpl->setVariable("SRC_UP", ilGlyphGUI::get(ilGlyphGUI::UP));
473 $tpl->setVariable("SRC_DOWN", ilGlyphGUI::get(ilGlyphGUI::DOWN));
474 $tpl->parseCurrentBlock();
475 }
476
477 return $tpl->get();
478 }
static get($a_glyph, $a_text="")
Get glyph html.
special template class to simplify handling of ITX/PEAR
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl

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

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

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

◆ getMultiValues()

ilFormPropertyGUI::getMultiValues ( )

Get multi values.

Returns
array

Reimplemented in ilDclMultiTextInputGUI, and ilIdentifiedMultiValuesInputGUI.

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

References $multi_values.

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

+ Here is the caller graph for this function:

◆ getParent()

ilFormPropertyGUI::getParent ( )

Get Parent GUI object.

Returns
object parent gui object

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

266 {
267 return $this->parent_gui;
268 }

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

+ Here is the caller graph for this function:

◆ getParentForm()

ilFormPropertyGUI::getParentForm ( )

Get Parent Form.

Returns
object Parent Form

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

246 {
247 return $this->getParent();
248 }

References getParent().

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

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

123 {
124 return $this->postvar;
125 }

References $postvar.

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

+ Here is the caller graph for this function:

◆ getRequired()

ilFormPropertyGUI::getRequired ( )

Get Required.

Returns
boolean Required

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

196 {
197 return $this->required;
198 }

References $required.

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

+ Here is the caller graph for this function:

◆ getSubForm()

ilFormPropertyGUI::getSubForm ( )

Get sub form html.

Reimplemented in ilSubEnabledFormPropertyGUI.

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

275 {
276 return "";
277 }

◆ getTableFilterLabelFor()

ilFormPropertyGUI::getTableFilterLabelFor ( )

Get label "for" attribute value for filter.

Returns
string

Reimplemented in ilDateDurationInputGUI.

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

520 {
521 return $this->getFieldId();
522 }

References getFieldId().

+ Here is the call graph for this function:

◆ getTitle()

ilFormPropertyGUI::getTitle ( )

Get Title.

Returns
string Title

Reimplemented in ilNonEditableValueGUI.

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

103 {
104 return $this->title;
105 }

References $title.

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

+ Here is the caller graph for this function:

◆ getType()

ilFormPropertyGUI::getType ( )

Get Type.

Returns
string Type

Reimplemented in ilNonEditableValueGUI.

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

References $type.

◆ hideSubForm()

ilFormPropertyGUI::hideSubForm ( )

Sub form hidden on init?

Reimplemented in ilCheckboxInputGUI, ilDateDurationInputGUI, ilDateTimeInputGUI, and ilSelectInputGUI.

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

284 {
285 return false;
286 }

◆ readFromSession()

ilFormPropertyGUI::readFromSession ( )

Read from session.

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

373 {
374 $parent = $this->getParent();
375 if (!is_object($parent)) {
376 die("You must set parent for " . get_class($this) . " to use serialize feature.");
377 }
378 $this->unserializeData($_SESSION["form_" . $parent->getId()][$this->getFieldId()]);
379 }
unserializeData($a_data)
unserialize data

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

Referenced by ilBiblAdminFieldTableGUI\addAndReadFilterItem(), ilBiblFieldFilterTableGUI\addAndReadFilterItem(), and ilMMSubItemTableGUI\addAndReadFilterItem().

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

497 {
498 return str_replace("\x0B", "", $a_text);
499 }

Referenced by ilTextAreaInputGUI\checkInput(), and ilLMObject\saveTitles().

+ Here is the caller graph for this function:

◆ serializeData()

ilFormPropertyGUI::serializeData ( )

serialize data

Reimplemented in ilCheckboxInputGUI, ilCombinationInputGUI, ilDateTimeInputGUI, and ilDurationInputGUI.

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

326 {
327 return serialize($this->getValue());
328 }

Referenced by writeToSession().

+ Here is the caller graph for this function:

◆ setAlert()

ilFormPropertyGUI::setAlert (   $a_alert)

Set Alert Text.

Parameters
string$a_alertAlert Text

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

166 {
167 $this->alert = $a_alert;
168 }

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

+ Here is the caller graph for this function:

◆ setDisabled()

ilFormPropertyGUI::setDisabled (   $a_disabled)

Set Disabled.

Parameters
boolean$a_disabledDisabled

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

206 {
207 $this->disabled = $a_disabled;
208 }
disabled()
Example showing how to plug a disabled checkbox into a form.
Definition: disabled.php:5

References 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 (   $a_val)

Set hidden title (for screenreaders)

Parameters
stringhidden title

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

294 {
295 $this->hidden_title = $a_val;
296 }

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

+ Here is the caller graph for this function:

◆ setInfo()

ilFormPropertyGUI::setInfo (   $a_info)

Set Information Text.

Parameters
string$a_infoInformation Text

Reimplemented in ilNonEditableValueGUI.

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

146 {
147 $this->info = $a_info;
148 }
info()
Definition: info.php:2

References 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 (   $a_multi,
  $a_sortable = false,
  $a_addremove = true 
)

Set Multi.

Parameters
bool$a_multiMulti

Reimplemented in ilDclGenericMultiInputGUI, ilOrgUnitGenericMultiInputGUI, and ilOrgUnitMultiLineInputGUI.

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

395 {
396 if (!$this instanceof ilMultiValuesItem) {
397 require_once 'Services/Form/exceptions/class.ilFormException.php';
398 throw new ilFormException(sprintf(
399 "%s not supported for form property type %s",
400 __FUNCTION__,
401 get_class($this)
402 ));
403 }
404
405 $this->multi = (bool) $a_multi;
406 $this->multi_sortable = (bool) $a_sortable;
407 $this->multi_addremove = (bool) $a_addremove;
408 }
Class ilFormException.
Interface for multi values support.

Referenced by ilTaxAssignInputGUI\__construct().

+ Here is the caller graph for this function:

◆ setMultiValues()

ilFormPropertyGUI::setMultiValues ( array  $a_values)

Set multi values.

Parameters
array$a_values

Reimplemented in ilTextInputGUI, ilDclMultiTextInputGUI, and ilIdentifiedMultiValuesInputGUI.

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

426 {
427 $this->multi_values = array_unique($a_values);
428 }

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

+ Here is the caller graph for this function:

◆ setParent()

ilFormPropertyGUI::setParent (   $a_val)

Set Parent GUI object.

Parameters
objectparent gui object

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

256 {
257 $this->parent_gui = $a_val;
258 }

Referenced by setParentForm().

+ Here is the caller graph for this function:

◆ setParentForm()

ilFormPropertyGUI::setParentForm (   $a_parentform)

Set Parent Form.

Parameters
object$a_parentformParent Form

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

236 {
237 $this->setParent($a_parentform);
238 }
setParent($a_val)
Set Parent GUI object.

References setParent().

+ Here is the call graph for this function:

◆ setPostVar()

ilFormPropertyGUI::setPostVar (   $a_postvar)

Set Post Variable.

Parameters
string$a_postvarPost Variable

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

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

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

+ Here is the caller graph for this function:

◆ setRequired()

ilFormPropertyGUI::setRequired (   $a_required)

Set Required.

Parameters
boolean$a_requiredRequired

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

186 {
187 $this->required = $a_required;
188 }

Referenced by ilRandomTestROInputGUI\__construct(), ilADTFormBridge\addBasicFieldProperties(), ilDclGenericMultiInputGUI\addInput(), assOrderingQuestion\initOrderingElementAuthoringProperties(), and ilDclBaseFieldRepresentation\setupInputField().

+ Here is the caller graph for this function:

◆ setTitle()

ilFormPropertyGUI::setTitle (   $a_title)

Set Title.

Parameters
string$a_titleTitle

Reimplemented in ilNonEditableValueGUI.

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

93 {
94 $this->title = $a_title;
95 }

Referenced by __construct(), assOrderingQuestion\initOrderingElementFormFieldLabels(), and ilDclBaseFieldRepresentation\setupFilterInputField().

+ Here is the caller graph for this function:

◆ setType()

ilFormPropertyGUI::setType (   $a_type)
protected

Set Type.

Parameters
string$a_typeType

Reimplemented in ilNonEditableValueGUI.

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

73 {
74 $this->type = $a_type;
75 }
$a_type
Definition: workflow.php:92

References $a_type.

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

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

508 {
509 $str = ilUtil::stripSlashes($a_str);
510 if ($str != $a_str) {
511 $str = ilUtil::stripSlashes(str_replace("<", "< ", $a_str));
512 }
513 return $str;
514 }
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled

References ilUtil\stripSlashes().

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

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

◆ unserializeData()

ilFormPropertyGUI::unserializeData (   $a_data)

unserialize data

Reimplemented in ilCheckboxInputGUI, ilCombinationInputGUI, ilDateTimeInputGUI, and ilDurationInputGUI.

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

334 {
335 $data = unserialize($a_data);
336
337 if ($data) {
338 $this->setValue($data);
339 } else {
340 $this->setValue(false);
341 }
342 }
$data
Definition: storeScorm.php:23

References $data.

Referenced by readFromSession().

+ Here is the caller graph for this function:

◆ writeToSession()

ilFormPropertyGUI::writeToSession ( )

Write to session.

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

348 {
349 $parent = $this->getParent();
350 if (!is_object($parent)) {
351 die("You must set parent for " . get_class($this) . " to use serialize feature.");
352 }
353 $_SESSION["form_" . $parent->getId()][$this->getFieldId()] =
354 $this->serializeData();
355 }

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

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

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

Referenced by getAlert().

◆ $ctrl

◆ $hidden_title

ilFormPropertyGUI::$hidden_title = ""
protected

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

Referenced by getHiddenTitle().

◆ $info

ilFormPropertyGUI::$info
protected

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

Referenced by getInfo().

◆ $lng

ilFormPropertyGUI::$lng
protected

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

Referenced by ilTaxAssignInputGUI\__construct(), ilTaxSelectInputGUI\__construct(), ilExplorerSelectInputGUI\__construct(), ilCategoryWizardInputGUI\__construct(), ilMatrixRowWizardInputGUI\__construct(), ilMatchingWizardInputGUI\__construct(), ilRepositorySelectorInputGUI\__construct(), ilCopyrightInputGUI\__construct(), ilTypicalLearningTimeInputGUI\__construct(), ilScheduleInputGUI\checkInput(), ilDclGenericMultiInputGUI\checkInput(), ilDclTextInputGUI\checkInput(), ilOrgUnitGenericMultiInputGUI\checkInput(), ilOrgUnitMultiLineInputGUI\checkInput(), ilCategoryWizardInputGUI\checkInput(), ilMatrixRowWizardInputGUI\checkInput(), ilAnswerWizardInputGUI\checkInput(), ilErrorTextWizardInputGUI\checkInput(), ilEssayKeywordWizardInputGUI\checkInput(), ilImageWizardInputGUI\checkInput(), ilKVPWizardInputGUI\checkInput(), ilMatchingPairWizardInputGUI\checkInput(), ilMatchingWizardInputGUI\checkInput(), ilMultipleChoiceWizardInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), ilSuggestedSolutionSelectorGUI\checkInput(), ilAssAnswerCorrectionsInputGUI\checkInput(), ilAssClozeTestCombinationVariantsInputGUI\checkInput(), ilAssErrorTextCorrectionsInputGUI\checkInput(), ilAssMatchingPairCorrectionsInputGUI\checkInput(), ilAssMultipleChoiceCorrectionsInputGUI\checkInput(), ilAssSingleChoiceCorrectionsInputGUI\checkInput(), ilFormulaInputGUI\checkInput(), ilLinkInputGUI\checkInput(), ilLocationInputGUI\checkInput(), ilMultiSelectInputGUI\checkInput(), ilNestedListInputGUI\checkInput(), ilNumberInputGUI\checkInput(), ilPasswordInputGUI\checkInput(), ilRadioGroupInputGUI\checkInput(), ilRegExpInputGUI\checkInput(), ilRepositorySelectorInputGUI\checkInput(), ilSelectBuilderInputGUI\checkInput(), ilSelectInputGUI\checkInput(), ilTagInputGUI\checkInput(), ilTextAreaInputGUI\checkInput(), ilTextInputGUI\checkInput(), ilTextWizardInputGUI\checkInput(), ilUserLoginInputGUI\checkInput(), ilWidthHeightInputGUI\checkInput(), ilCopyrightInputGUI\checkInput(), ilTypicalLearningTimeInputGUI\checkInput(), ilLuceneQueryInputGUI\checkInput(), ilBackgroundImageInputGUI\checkInput(), ilBackgroundPositionInputGUI\checkInput(), ilFontSizeInputGUI\checkInput(), ilNumericStyleValueInputGUI\checkInput(), ilTRBLBorderStyleInputGUI\checkInput(), ilTRBLBorderWidthInputGUI\checkInput(), ilTRBLNumericStyleValueInputGUI\checkInput(), ilCharSelectorRadioGroupInputGUI\checkInput(), ilExplorerSelectInputGUI\checkInput(), ilLinkInputGUI\executeCommand(), ilAssNestedOrderingElementsInputGUI\getCorrectnessText(), getMultiIconsHTML(), ilTaxAssignInputGUI\getOptions(), ilAnswerWizardInputGUI\getPointsInputLabel(), ilLogicalAnswerComparisonExpressionInputGUI\getPointsInputLabel(), ilAnswerWizardInputGUI\getTextInputLabel(), ilLogicalAnswerComparisonExpressionInputGUI\getTextInputLabel(), ilLinkInputGUI\getTranslatedValue(), ilCategoryWizardInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilErrorTextWizardInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilImageWizardInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilAssAnswerCorrectionsInputGUI\insert(), ilAssErrorTextCorrectionsInputGUI\insert(), ilAssMatchingPairCorrectionsInputGUI\insert(), ilAssMultipleChoiceCorrectionsInputGUI\insert(), ilAssSingleChoiceCorrectionsInputGUI\insert(), ilLocationInputGUI\insert(), ilSelectBuilderInputGUI\insert(), ilTextAreaInputGUI\insert(), ilUserLoginInputGUI\insert(), ilWidthHeightInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilRandomTestROInputGUI\insert(), ilSuggestedSolutionSelectorGUI\insert(), ilBackgroundPositionInputGUI\insert(), ilTRBLBorderStyleInputGUI\insert(), ilTRBLBorderWidthInputGUI\insert(), ilTRBLNumericStyleValueInputGUI\insert(), ilClozeGapInputBuilderGUI\insert(), ilMultipleImagesInputGUI\onCheckInput(), ilMultipleTextsInputGUI\onCheckInput(), ilScheduleInputGUI\render(), ilMultipleImagesInputGUI\render(), ilRepositorySelectorInputGUI\render(), ilExplorerSelectInputGUI\render(), ilGloAdvColSortInputGUI\render(), ilLinkInputGUI\render(), ilMultiSelectInputGUI\render(), ilNumberInputGUI\render(), ilPasswordInputGUI\render(), and ilRepositorySelectorInputGUI\showRepositorySelection().

◆ $multi

ilFormPropertyGUI::$multi = false
protected

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

Referenced by getMulti().

◆ $multi_addremove

ilFormPropertyGUI::$multi_addremove = true
protected

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

◆ $multi_sortable

ilFormPropertyGUI::$multi_sortable = false
protected

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

◆ $multi_values

ilFormPropertyGUI::$multi_values
protected

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

Referenced by getMultiValues().

◆ $parentform

ilFormPropertyGUI::$parentform
protected

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

◆ $parentgui

ilFormPropertyGUI::$parentgui
protected

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

◆ $postvar

ilFormPropertyGUI::$postvar
protected

◆ $required

ilFormPropertyGUI::$required = false
protected

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

Referenced by getRequired().

◆ $title

◆ $type


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