ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilTextInputGUI Class Reference

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

+ Inheritance diagram for ilTextInputGUI:
+ Collaboration diagram for ilTextInputGUI:

Public Member Functions

 __construct ($a_title="", $a_postvar="")
 Constructor. More...
 
 setValue ($a_value)
 Set Value. More...
 
 getValue ()
 Get Value. More...
 
 setValidationFailureMessage ($a_msg)
 Set message string for validation failure. More...
 
 getValidationFailureMessage ()
 
 setValidationRegexp ($a_value)
 Set validation regexp. More...
 
 getValidationRegexp ()
 Get validation regexp. More...
 
 setMaxLength ($a_maxlength)
 Set Max Length. More...
 
 getMaxLength ()
 Get Max Length. More...
 
 setSize ($a_size)
 Set Size. More...
 
 setInlineStyle ($a_style)
 Set inline style. More...
 
 getInlineStyle ()
 Get inline style. More...
 
 setCssClass ($a_class)
 
 getCssClass ()
 
 setValueByArray ($a_values)
 Set value by array. More...
 
 getSize ()
 Get Size. More...
 
 setSuffix ($a_value)
 Set suffix. More...
 
 getSuffix ()
 Get suffix. More...
 
 setInputType ($a_type)
 set input type More...
 
 getInputType ()
 get input type More...
 
 setSubmitFormOnEnter ($a_val)
 Set submit form on enter. More...
 
 getSubmitFormOnEnter ()
 Get submit form on enter. More...
 
 checkInput ()
 Check input, strip slashes etc. More...
 
 getDataSource ()
 get datasource link for js autocomplete More...
 
 setDataSource ($href, $a_delimiter=null)
 set datasource link for js autocomplete More...
 
 setDataSourceSubmitOnSelection ($a_stat)
 
 getDataSourceSubmitOnSelection ()
 
 setDataSourceSubmitUrl ($a_url)
 
 getDataSourceSubmitUrl ()
 
 setMultiValues (array $a_values)
 
 insert ($a_tpl)
 Insert property html. More...
 
 getTableFilterHTML ()
 Get HTML for table filter. More...
 
 getToolbarHTML ()
 Get HTML for toolbar. More...
 
 setDisableHtmlAutoComplete ($autocomplete)
 
 isHtmlAutoCompleteDisabled ()
 
- Public Member Functions inherited from ilSubEnabledFormPropertyGUI
 addSubItem ($a_item)
 Add Subitem. More...
 
 getSubItems ()
 Get Subitems. More...
 
 getSubInputItemsRecursive ()
 returns a flat array of possibly existing subitems recursively More...
 
 checkSubItemsInput ()
 Check SubItems. More...
 
 getSubForm ()
 Get sub form html. More...
 
 getItemByPostVar ($a_post_var)
 Get item by post var. More...
 
- Public Member Functions inherited from ilFormPropertyGUI
 __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...
 
- Public Member Functions inherited from ilTableFilterItem
 getTableFilterLabelFor ()
 Get label "for" attribute value. More...
 

Protected Attributes

 $value
 
 $maxlength = 200
 
 $size = 40
 
 $validationRegexp
 
 $validationFailureMessage = ''
 
 $suffix
 
 $style_css
 
 $css_class
 
 $ajax_datasource
 
 $ajax_datasource_delimiter
 
 $ajax_datasource_commit = false
 
 $ajax_datasource_commit_url
 
 $submit_form_on_enter = false
 
 $autocomplete_disabled = false
 
- Protected Attributes inherited from ilSubEnabledFormPropertyGUI
 $sub_items = array()
 
- Protected Attributes inherited from ilFormPropertyGUI
 $ctrl
 
 $lng
 
 $type
 
 $title
 
 $postvar
 
 $info
 
 $alert
 
 $required = false
 
 $parentgui
 
 $parentform
 
 $hidden_title = ""
 
 $multi = false
 
 $multi_sortable = false
 
 $multi_addremove = true
 
 $multi_values
 

Additional Inherited Members

- Static Public Member Functions inherited from ilFormPropertyGUI
static removeProhibitedCharacters ($a_text)
 Remove prohibited characters see #19159. More...
 
- Protected Member Functions inherited from ilFormPropertyGUI
 setType ($a_type)
 Set Type. More...
 
 getMultiIconsHTML ()
 Get HTML for multiple value icons. More...
 

Detailed Description

This class represents a text 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 16 of file class.ilTextInputGUI.php.

Constructor & Destructor Documentation

◆ __construct()

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

Constructor.

Parameters
string$a_titleTitle
string$a_postvarPost Variable

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

References $DIC, setInputType(), and ilFormPropertyGUI\setType().

44  {
45  global $DIC;
46 
47  $this->lng = $DIC->language();
48  parent::__construct($a_title, $a_postvar);
49  $this->setInputType("text");
50  $this->setType("text");
51  $this->validationRegexp = "";
52  }
global $DIC
Definition: saml.php:7
setType($a_type)
Set Type.
setInputType($a_type)
set input type
+ Here is the call graph for this function:

Member Function Documentation

◆ checkInput()

ilTextInputGUI::checkInput ( )

Check input, strip slashes etc.

set alert, if input is not ok.

Returns
boolean Input ok, true/false

Definition at line 262 of file class.ilTextInputGUI.php.

References $_POST, ilFormPropertyGUI\$lng, $value, ilSubEnabledFormPropertyGUI\checkSubItemsInput(), ilFormPropertyGUI\getMulti(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), getValidationFailureMessage(), getValidationRegexp(), ilFormPropertyGUI\setAlert(), and ilFormPropertyGUI\stripSlashesAddSpaceFallback().

263  {
264  $lng = $this->lng;
265 
266  if (!$this->getMulti()) {
267  //$_POST[$this->getPostVar()] = ilUtil::stripSlashes($_POST[$this->getPostVar()]);
268  $_POST[$this->getPostVar()] = $this->stripSlashesAddSpaceFallback($_POST[$this->getPostVar()]);
269  if ($this->getRequired() && trim($_POST[$this->getPostVar()]) == "") {
270  $this->setAlert($lng->txt("msg_input_is_required"));
271 
272  return false;
273  } elseif (strlen($this->getValidationRegexp())) {
274  if (!preg_match($this->getValidationRegexp(), $_POST[$this->getPostVar()])) {
275  $this->setAlert(
276  $this->getValidationFailureMessage() ?
277  $this->getValidationFailureMessage() :
278  $lng->txt('msg_wrong_format')
279  );
280  return false;
281  }
282  }
283  } else {
284  // #17296
285  if (!is_array($_POST[$this->getPostVar()])) {
286  $_POST[$this->getPostVar()] = array();
287  }
288  foreach ($_POST[$this->getPostVar()] as $idx => $value) {
289  //$_POST[$this->getPostVar()][$idx] = ilUtil::stripSlashes($value);
290  $_POST[$this->getPostVar()][$idx] = $this->stripSlashesAddSpaceFallback($value);
291  }
292  $_POST[$this->getPostVar()] = array_unique($_POST[$this->getPostVar()]);
293 
294  if ($this->getRequired() && !trim(implode("", $_POST[$this->getPostVar()]))) {
295  $this->setAlert($lng->txt("msg_input_is_required"));
296 
297  return false;
298  } elseif (strlen($this->getValidationRegexp())) {
299  $reg_valid = true;
300  foreach ($_POST[$this->getPostVar()] as $value) {
301  if (!preg_match($this->getValidationRegexp(), $value)) {
302  $reg_valid = false;
303  break;
304  }
305  }
306  if (!$reg_valid) {
307  $this->setAlert(
308  $this->getValidationFailureMessage() ?
309  $this->getValidationFailureMessage() :
310  $lng->txt('msg_wrong_format')
311  );
312  return false;
313  }
314  }
315  }
316 
317  return $this->checkSubItemsInput();
318  }
getPostVar()
Get Post Variable.
setAlert($a_alert)
Set Alert Text.
getValidationRegexp()
Get validation regexp.
stripSlashesAddSpaceFallback($a_str)
Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727.
$_POST["username"]
+ Here is the call graph for this function:

◆ getCssClass()

ilTextInputGUI::getCssClass ( )

Definition at line 169 of file class.ilTextInputGUI.php.

References $css_class.

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

170  {
171  return $this->css_class;
172  }
+ Here is the caller graph for this function:

◆ getDataSource()

ilTextInputGUI::getDataSource ( )

get datasource link for js autocomplete

Returns
String link to data generation script

Definition at line 324 of file class.ilTextInputGUI.php.

References $ajax_datasource.

Referenced by setMultiValues().

325  {
326  return $this->ajax_datasource;
327  }
+ Here is the caller graph for this function:

◆ getDataSourceSubmitOnSelection()

ilTextInputGUI::getDataSourceSubmitOnSelection ( )

Definition at line 344 of file class.ilTextInputGUI.php.

References $ajax_datasource_commit.

Referenced by setMultiValues().

345  {
347  }
+ Here is the caller graph for this function:

◆ getDataSourceSubmitUrl()

ilTextInputGUI::getDataSourceSubmitUrl ( )

Definition at line 353 of file class.ilTextInputGUI.php.

References $ajax_datasource_commit_url.

Referenced by setMultiValues().

354  {
356  }
+ Here is the caller graph for this function:

◆ getInlineStyle()

ilTextInputGUI::getInlineStyle ( )

Get inline style.

Returns
string style

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

References $style_css.

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

160  {
161  return $this->style_css;
162  }
+ Here is the caller graph for this function:

◆ getInputType()

ilTextInputGUI::getInputType ( )

get input type

public

Definition at line 232 of file class.ilTextInputGUI.php.

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

233  {
234  return $this->input_type;
235  }
+ Here is the caller graph for this function:

◆ getMaxLength()

◆ getSize()

◆ getSubmitFormOnEnter()

ilTextInputGUI::getSubmitFormOnEnter ( )

Get submit form on enter.

Returns
boolean

Definition at line 252 of file class.ilTextInputGUI.php.

References $submit_form_on_enter.

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

253  {
255  }
+ Here is the caller graph for this function:

◆ getSuffix()

ilTextInputGUI::getSuffix ( )

Get suffix.

Returns
string suffix

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

References $suffix.

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

211  {
212  return $this->suffix;
213  }
+ Here is the caller graph for this function:

◆ getTableFilterHTML()

ilTextInputGUI::getTableFilterHTML ( )

Get HTML for table filter.

Implements ilTableFilterItem.

Definition at line 527 of file class.ilTextInputGUI.php.

References $html.

528  {
529  $html = $this->render();
530  return $html;
531  }
$html
Definition: example_001.php:87

◆ getToolbarHTML()

ilTextInputGUI::getToolbarHTML ( )

Get HTML for toolbar.

Implements ilToolbarItem.

Definition at line 536 of file class.ilTextInputGUI.php.

References $html.

537  {
538  $html = $this->render("toolbar");
539  return $html;
540  }
$html
Definition: example_001.php:87

◆ getValidationFailureMessage()

ilTextInputGUI::getValidationFailureMessage ( )

Definition at line 89 of file class.ilTextInputGUI.php.

References $validationFailureMessage.

Referenced by checkInput().

90  {
92  }
+ Here is the caller graph for this function:

◆ getValidationRegexp()

ilTextInputGUI::getValidationRegexp ( )

Get validation regexp.

Returns
string regexp

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

References $validationRegexp.

Referenced by ilSelectBuilderInputGUI\checkInput(), ilTextWizardInputGUI\checkInput(), checkInput(), and ilMultipleTextsInputGUI\onCheckInput().

110  {
112  }
+ Here is the caller graph for this function:

◆ getValue()

ilTextInputGUI::getValue ( )

Get Value.

Returns
string Value

Definition at line 73 of file class.ilTextInputGUI.php.

References $value.

Referenced by ilColorPickerInputGUI\insert(), ilMailQuickFilterInputGUI\render(), and setMultiValues().

74  {
75  return $this->value;
76  }
+ Here is the caller graph for this function:

◆ insert()

ilTextInputGUI::insert (   $a_tpl)

Insert property html.

Returns
int Size

Definition at line 515 of file class.ilTextInputGUI.php.

References $html.

516  {
517  $html = $this->render();
518 
519  $a_tpl->setCurrentBlock("prop_generic");
520  $a_tpl->setVariable("PROP_GENERIC", $html);
521  $a_tpl->parseCurrentBlock();
522  }
$html
Definition: example_001.php:87

◆ isHtmlAutoCompleteDisabled()

ilTextInputGUI::isHtmlAutoCompleteDisabled ( )
Returns
boolean

Definition at line 553 of file class.ilTextInputGUI.php.

References $autocomplete_disabled.

Referenced by setMultiValues().

554  {
556  }
+ Here is the caller graph for this function:

◆ setCssClass()

ilTextInputGUI::setCssClass (   $a_class)

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

165  {
166  $this->css_class = $a_class;
167  }

◆ setDataSource()

ilTextInputGUI::setDataSource (   $href,
  $a_delimiter = null 
)

set datasource link for js autocomplete

Parameters
Stringlink to data generation script

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

Referenced by ilRoleAutoCompleteInputGUI\__construct(), ilTermsOfServiceAcceptanceHistoryTableGUI\initFilter(), ilUserTableGUI\initFilter(), ilObjSurveyGUI\initPropertiesForm(), and ilMDEditorGUI\initQuickEditForm().

334  {
335  $this->ajax_datasource = $href;
336  $this->ajax_datasource_delimiter = $a_delimiter;
337  }
+ Here is the caller graph for this function:

◆ setDataSourceSubmitOnSelection()

ilTextInputGUI::setDataSourceSubmitOnSelection (   $a_stat)

Definition at line 339 of file class.ilTextInputGUI.php.

340  {
341  $this->ajax_datasource_commit = $a_stat;
342  }

◆ setDataSourceSubmitUrl()

ilTextInputGUI::setDataSourceSubmitUrl (   $a_url)

Definition at line 349 of file class.ilTextInputGUI.php.

350  {
351  $this->ajax_datasource_commit_url = $a_url;
352  }

◆ setDisableHtmlAutoComplete()

ilTextInputGUI::setDisableHtmlAutoComplete (   $autocomplete)
Parameters
boolean$autocomplete

Definition at line 545 of file class.ilTextInputGUI.php.

546  {
547  $this->autocomplete_disabled = $autocomplete;
548  }

◆ setInlineStyle()

ilTextInputGUI::setInlineStyle (   $a_style)

Set inline style.

Parameters
string$a_stylestyle

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

Referenced by assClozeTestGUI\populateNumericGapFormPart().

150  {
151  $this->style_css = $a_style;
152  }
+ Here is the caller graph for this function:

◆ setInputType()

ilTextInputGUI::setInputType (   $a_type)

set input type

public

Parameters
stringinput type password | text

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

References $a_type.

Referenced by ilRoleAutoCompleteInputGUI\__construct(), and __construct().

223  {
224  $this->input_type = $a_type;
225  }
$a_type
Definition: workflow.php:92
+ Here is the caller graph for this function:

◆ setMaxLength()

ilTextInputGUI::setMaxLength (   $a_maxlength)

Set Max Length.

Parameters
int$a_maxlengthMax Length

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

Referenced by ilRoleAutoCompleteInputGUI\__construct(), ilMatrixRowWizardInputGUI\__construct(), ilCategoryWizardInputGUI\__construct(), ilObjStyleSheetGUI\createObject(), ilObjMediaCastGUI\editCastItemObject(), ilSystemStyleSettingsGUI\editSystemStyleForm(), ilObjForumGUI\getCensorshipFormHTML(), ilObjMediaCastGUI\initAddCastItemForm(), ilPCIIMTriggerEditorGUI\initAreaEditingForm(), ilImageMapEditorGUI\initAreaEditingForm(), ilExAssignmentEditorGUI\initAssignmentForm(), ilLPTableBaseGUI\initBaseFilter(), ilRatingCategoryGUI\initCategoryForm(), ilSetupGUI\initClientIniForm(), ilSetupGUI\initClientLoginForm(), ilSetupGUI\initContactDataForm(), ilObjSystemFolderGUI\initContactInformationForm(), ilObjPortfolioGUI\initCopyPageFormOptions(), ilObjPortfolioGUI\initCreateForm(), ilSetupGUI\initDbSlaveForm(), ilPCFileListGUI\initEditForm(), ilWorkflowEngineDefinitionsTableGUI\initFilter(), ilLPObjectStatisticsDailyTableGUI\initFilter(), ilLPObjectStatisticsTableGUI\initFilter(), ilSurveyQuestionblockbrowserTableGUI\initFilter(), ilAccountCodesTableGUI\initFilter(), ilLPObjectStatisticsLPTableGUI\initFilter(), ilSurveyQuestionsTableGUI\initFilter(), ilSurveyQuestionbrowserTableGUI\initFilter(), ilPresentationListTableGUI\initFilter(), ilRegistrationCodesTableGUI\initFilter(), ilTermListTableGUI\initFilter(), ilEvaluationAllTableGUI\initFilter(), ilMediaPoolTableGUI\initFilter(), ilSessionMaterialsTableGUI\initFilter(), ilQuestionBrowserTableGUI\initFilter(), ilTestQuestionBrowserTableGUI\initFilter(), ilObjMediaPoolGUI\initFolderForm(), ilLOTestAssignmentForm\initForm(), ilBasicSkillTemplateGUI\initForm(), ilSkillCategoryGUI\initForm(), ilPCInteractiveImageGUI\initForm(), ilBasicSkillGUI\initForm(), ilSkillTreeNodeGUI\initForm(), ilObjUserFolderGUI\initFormGeneralSettings(), ilObjSystemFolderGUI\initJavaServerForm(), ilBasicSkillGUI\initLevelForm(), ilObjMediaPoolGUI\initMediaPoolPageForm(), ilObjContentObjectGUI\initMenuEntryForm(), ilObjPortfolioBaseGUI\initPageForm(), ilSkillProfileGUI\initProfileForm(), ilObjStyleSheetGUI\initPropertiesForm(), ilObjSCORM2004LearningModuleGUI\initPropertiesForm(), ilMDEditorGUI\initQuickEditForm(), ilWikiPageGUI\initRenameForm(), ilObjTaxonomyGUI\initSettingsForm(), ilSettingsTemplateGUI\initSettingsTemplateForm(), ilObjStyleSheetGUI\initTagStyleForm(), ilObjTaxonomyGUI\initTaxNodeForm(), ilFileSystemGUI\listFiles(), ilObjGlossaryGUI\listTerms(), ilObjSCORMLearningModuleGUI\properties(), ilFileSystemGUI\renameFileForm(), ilObjSystemFolderGUI\showBasicSettingsObject(), and ilObjContentObjectGUI\showTooltipList().

120  {
121  $this->maxlength = $a_maxlength;
122  }
+ Here is the caller graph for this function:

◆ setMultiValues()

ilTextInputGUI::setMultiValues ( array  $a_values)

◆ setSize()

ilTextInputGUI::setSize (   $a_size)

Set Size.

Parameters
int$a_sizeSize

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

References size.

Referenced by ilRoleAutoCompleteInputGUI\__construct(), ilImageWizardInputGUI\__construct(), ilAnswerWizardInputGUI\__construct(), ilSingleChoiceWizardInputGUI\__construct(), ilMatchingWizardInputGUI\__construct(), ilMultipleImagesInputGUI\__construct(), FormMailCodesGUI\__construct(), ilObjTestSettingsGeneralGUI\addQuestionBehaviourProperties(), ilTestInfoScreenToolbarGUI\build(), ilCertificateSettingsFormRepository\createForm(), ilObjMailGUI\getExternalSettingsForm(), ilSingleUserShareGUI\getShareForm(), ilObjUserGUI\getValues(), ilObjSurveyGUI\infoScreen(), ilPageLayoutAdministrationGUI\initAddPageLayoutForm(), ilSetupGUI\initClientLoginForm(), ilObjectPluginGUI\initCreateForm(), ilObjCloudGUI\initCreateForm(), ilObjPortfolioGUI\initCreateForm(), ilObjGlossaryGUI\initCreateForm(), ilObjectGUI\initCreateForm(), ilObjSAHSLearningModuleGUI\initCreationForm(), ilObjFolderGUI\initEditForm(), ilObjectPluginGUI\initEditForm(), ilObjPortfolioGUI\initEditForm(), ilObjectGUI\initEditForm(), ilSurveyParticipantsGUI\initExternalRaterForm(), ilObjectCustomUserFieldsGUI\initFieldForm(), ilCalendarRecurrenceGUI\initForm(), ilRegistrationSettingsGUI\initForm(), ilPageLayoutGUI\initForm(), ilLDAPSettingsGUI\initForm(), ilObjGroupGUI\initForm(), ilObjLinkResourceGUI\initFormLink(), ilAuthShibbolethSettingsGUI\initFormRoleAssignment(), ilLDAPSettingsGUI\initFormRoleAssignments(), ilObjectCopyGUI\initFormSearch(), ilConsultationHoursGUI\initFormSequence(), ilIndividualAssessmentSettingsGUI\initInfoSettingsForm(), ilSurveyParticipantsGUI\initMailRatersForm(), ilPCTableGUI\initPropertiesForm(), ilPCSourceCodeGUI\initPropertyForm(), ilMailSearchGUI\initSearchForm(), ilObjSurveyAdministrationGUI\initSettingsForm(), ilIndividualAssessmentSettingsGUI\initSettingsForm(), ilObjFileBasedLMGUI\initSettingsForm(), ilECSSettingsGUI\initSettingsForm(), ilStartUpGUI\initStandardLoginForm(), ilWikiPageGUI\insertWikiLink(), assNumericGUI\populateAnswerSpecificFormPart(), assNumericGUI\populateCorrectionsFormProperties(), ilPCPlaceHolderGUI\propertyGUI(), ilSurveyExecutionGUI\runShowFinishedPage(), ilMailFormGUI\searchUsers(), ilMailFormGUI\showForm(), and ilObjTaggingSettingsGUI\showUsers().

140  {
141  $this->size = $a_size;
142  }
font size
Definition: langcheck.php:162
+ Here is the caller graph for this function:

◆ setSubmitFormOnEnter()

ilTextInputGUI::setSubmitFormOnEnter (   $a_val)

Set submit form on enter.

Parameters
boolean

Definition at line 242 of file class.ilTextInputGUI.php.

Referenced by ilMailFolderTableGUI\initFilter().

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

◆ setSuffix()

ilTextInputGUI::setSuffix (   $a_value)

Set suffix.

Parameters
string$a_valuesuffix

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

201  {
202  $this->suffix = $a_value;
203  }

◆ setValidationFailureMessage()

ilTextInputGUI::setValidationFailureMessage (   $a_msg)

Set message string for validation failure.

Returns
Parameters
string$a_msg

Definition at line 84 of file class.ilTextInputGUI.php.

85  {
86  $this->validationFailureMessage = $a_msg;
87  }

◆ setValidationRegexp()

ilTextInputGUI::setValidationRegexp (   $a_value)

Set validation regexp.

Parameters
string$a_valueregexp

Definition at line 99 of file class.ilTextInputGUI.php.

100  {
101  $this->validationRegexp = $a_value;
102  }

◆ setValue()

ilTextInputGUI::setValue (   $a_value)

Set Value.

Parameters
string$a_valueValue

Definition at line 59 of file class.ilTextInputGUI.php.

References ilFormPropertyGUI\getMulti(), and setMultiValues().

Referenced by assClozeTestGUI\addBasicQuestionFormProperties(), assQuestionGUI\addBasicQuestionFormProperties(), ilDAVCronDiskQuota\addCustomSettingsToForm(), ilUserProfile\addStandardFieldsToForm(), ilWorkflowArmerGUI\addStartEventInputItems(), ilObjTestSettingsGeneralGUI\addTestFinishProperties(), ilOrgUnitTypeFormGUI\addTranslationInputs(), ilStudyProgrammeTypeFormGUI\addTranslationInputs(), ilObjSystemFolderGUI\benchmarkObject(), ilObjPDFGenerationGUI\configForm(), ilObjExternalToolsSettingsGUI\editMapsObject(), ilObjPersonalDesktopSettingsGUI\editSettings(), ilExerciseManagementGUI\getEvaluationModal(), ilCalendarCategoryGUI\getSearchToolbar(), ilAdvancedSearchGUI\initAdvancedMetaDataForm(), ilECSSettingsGUI\initCategoryMappingForm(), ilObjMDSettingsGUI\initCopyrightEditForm(), ilSetupGUI\initDbSlaveForm(), ilLearningProgressBaseGUI\initEditUserForm(), ilDclTableViewEditFormGUI\initForm(), ilCalendarAppointmentGUI\initForm(), ilAttendanceList\initForm(), ilObjGroupGUI\initForm(), ilObjSessionGUI\initForm(), ilBookmarkAdministrationGUI\initFormBookmark(), ilECSMappingSettingsGUI\initFormCSettings(), ilObjLoggingSettingsGUI\initFormErrorSettings(), ilObjLinkResourceGUI\initFormSettings(), ilObjMediaPoolGUI\initMediaBulkForm(), ilObjUserFolderGUI\initNewAccountMailForm(), ilObjSurveyGUI\initPropertiesForm(), ilOpenIdConnectSettingsGUI\initSettingsForm(), ilECSSettingsGUI\initSettingsForm(), ilObjMediaCastGUI\initSettingsForm(), ilInternalLinkGUI\initUserSearchForm(), assJavaAppletGUI\populateQuestionSpecificFormPart(), assKprimChoiceGUI\populateQuestionSpecificFormPart(), ilObjOrgUnitSettingsFormGUI\saveObject(), and setValueByArray().

60  {
61  if ($this->getMulti() && is_array($a_value)) {
62  $this->setMultiValues($a_value);
63  $a_value = array_shift($a_value);
64  }
65  $this->value = $a_value;
66  }
setMultiValues(array $a_values)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setValueByArray()

ilTextInputGUI::setValueByArray (   $a_values)

Set value by array.

Parameters
array$a_valuesvalue array

Definition at line 180 of file class.ilTextInputGUI.php.

References ilFormPropertyGUI\getPostVar(), and setValue().

181  {
182  $this->setValue($a_values[$this->getPostVar()]);
183  }
getPostVar()
Get Post Variable.
setValue($a_value)
Set Value.
+ Here is the call graph for this function:

Field Documentation

◆ $ajax_datasource

ilTextInputGUI::$ajax_datasource
protected

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

Referenced by getDataSource().

◆ $ajax_datasource_commit

ilTextInputGUI::$ajax_datasource_commit = false
protected

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

Referenced by getDataSourceSubmitOnSelection().

◆ $ajax_datasource_commit_url

ilTextInputGUI::$ajax_datasource_commit_url
protected

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

Referenced by getDataSourceSubmitUrl().

◆ $ajax_datasource_delimiter

ilTextInputGUI::$ajax_datasource_delimiter
protected

Definition at line 27 of file class.ilTextInputGUI.php.

◆ $autocomplete_disabled

ilTextInputGUI::$autocomplete_disabled = false
protected

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

Referenced by isHtmlAutoCompleteDisabled().

◆ $css_class

ilTextInputGUI::$css_class
protected

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

Referenced by getCssClass().

◆ $maxlength

ilTextInputGUI::$maxlength = 200
protected

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

Referenced by getMaxLength().

◆ $size

ilTextInputGUI::$size = 40
protected

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

Referenced by getSize().

◆ $style_css

ilTextInputGUI::$style_css
protected

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

Referenced by getInlineStyle().

◆ $submit_form_on_enter

ilTextInputGUI::$submit_form_on_enter = false
protected

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

Referenced by getSubmitFormOnEnter().

◆ $suffix

◆ $validationFailureMessage

ilTextInputGUI::$validationFailureMessage = ''
protected

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

Referenced by getValidationFailureMessage().

◆ $validationRegexp

ilTextInputGUI::$validationRegexp
protected

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

Referenced by getValidationRegexp().

◆ $value

ilTextInputGUI::$value
protected

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

Referenced by ilKprimChoiceCorrectionsInputGUI\checkInput(), ilSelectBuilderInputGUI\checkInput(), ilRegExpInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkInput(), ilTextWizardInputGUI\checkInput(), ilTRBLColorPickerInputGUI\checkInput(), checkInput(), ilMultipleImagesInputGUI\fetchContentImageSourceFromValue(), ilMultipleImagesInputGUI\fetchContentImageTitleFromValue(), ilMultipleTextsInputGUI\fetchContentTextFromValue(), getValue(), ilAssSingleChoiceCorrectionsInputGUI\insert(), ilAssErrorTextCorrectionsInputGUI\insert(), ilAssMultipleChoiceCorrectionsInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilAssAnswerCorrectionsInputGUI\insert(), ilSelectBuilderInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilImageWizardInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilErrorTextWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilMailQuickFilterInputGUI\render(), ilDclMultiTextInputGUI\render(), ilMultipleTextsInputGUI\render(), ilTextWizardInputGUI\render(), ilMultipleImagesInputGUI\render(), ilMultipleNestedOrderingElementsInputGUI\renderListItem(), ilMultipleNestedOrderingElementsInputGUI\renderMainList(), setMultiValues(), ilEssayKeywordWizardInputGUI\setValue(), ilAssClozeTestCombinationVariantsInputGUI\setValue(), ilKprimChoiceCorrectionsInputGUI\setValue(), ilMultipleChoiceWizardInputGUI\setValue(), ilAssMultipleChoiceCorrectionsInputGUI\setValue(), ilAssSingleChoiceCorrectionsInputGUI\setValue(), ilDclMultiTextInputGUI\setValue(), ilAssAnswerCorrectionsInputGUI\setValue(), ilImageWizardInputGUI\setValue(), ilAnswerWizardInputGUI\setValue(), ilSingleChoiceWizardInputGUI\setValue(), ilKprimChoiceWizardInputGUI\setValue(), ilMatrixRowWizardInputGUI\setValue(), ilCategoryWizardInputGUI\setValue(), ilMatchingWizardInputGUI\setValue(), ilMultipleImagesInputGUI\valueHasContentImageSource(), ilMultipleImagesInputGUI\valueHasContentImageTitle(), ilAssOrderingTextsInputGUI\valueHasContentText(), and ilMultipleTextsInputGUI\valueHasContentText().


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