19 declare(strict_types=1);
    50         string $a_postvar = 
""    53         $this->
lng = $DIC->language();
    57         $this->validationRegexp = 
"";
    65         if ($this->
getMulti() && is_array($a_value)) {
    67             $a_value = array_shift($a_value);
    69         $this->value = $a_value;
    82         $this->validationFailureMessage = $a_msg;
    92         $this->validationRegexp = $a_value;
   102         $this->maxlength = $a_maxlength;
   112         $this->size = $a_size;
   117         $this->style_css = $a_style;
   127         $this->css_class = $a_class;
   147         $this->suffix = $a_value;
   161         $this->input_type = $a_type;
   171         $this->submit_form_on_enter = $a_val;
   240         string $a_delimiter = null
   242         $this->ajax_datasource = $href;
   243         $this->ajax_datasource_delimiter = $a_delimiter;
   248         $this->ajax_datasource_commit = $a_stat;
   258         $this->ajax_datasource_commit_url = $a_url;
   268         foreach ($a_values as $idx => 
$value) {
   269             $a_values[$idx] = trim(
$value);
   270             if ($a_values[$idx] == 
"") {
   271                 unset($a_values[$idx]);
   274         parent::setMultiValues($a_values);
   277     public function render(
string $a_mode = 
""): string
   281         $tpl = 
new ilTemplate(
"tpl.prop_textinput.html", 
true, 
true, 
"components/ILIAS/Form");
   282         if (strlen((
string) $this->
getValue())) {
   283             $tpl->setCurrentBlock(
"prop_text_propval");
   288             $tpl->parseCurrentBlock();
   291             $tpl->setCurrentBlock(
"stylecss");
   296             $tpl->parseCurrentBlock();
   299             $tpl->setCurrentBlock(
"classcss");
   301             $tpl->parseCurrentBlock();
   304             $tpl->touchBlock(
"submit_form_on_enter");
   309                 $tpl->setVariable(
'PROP_INPUT_TYPE', 
'password');
   312                 $tpl->setVariable(
'PROP_INPUT_TYPE', 
'hidden');
   316                 $tpl->setVariable(
'PROP_INPUT_TYPE', 
'text');
   319         $tpl->setVariable(
"SIZE", $this->
getSize());
   324             $tpl->setVariable(
"INPUT_SUFFIX", $this->
getSuffix());
   332         $tpl->setVariable(
"POST_VAR", 
$postvar);
   338                     foreach (
$value as $item) {
   346                 $tpl->setVariable(
"HIDDEN_INPUT", $hidden);
   348             $tpl->setVariable(
"DISABLED", 
" disabled=\"disabled\"");
   353             $tpl->setVariable(
'AUTOCOMPLETE', 
'autocomplete="off"');
   354             $this->global_tpl->addJavaScript(
'assets/js/legacyAutocomplete.js', 
true, 3);
   355             $config = json_encode([
   356                 'delimiter' => $this->ajax_datasource_delimiter,
   357                 'dataSource' => $this->ajax_datasource,
   358                 'submitOnSelection' => $this->ajax_datasource_commit,
   359                 'submitUrl' => $this->ajax_datasource_commit_url,
   360                 'autocompleteLength' => 3,
   361                 'moreText' => $this->
lng->txt(
'autocomplete_more')
   365                 $sel_auto = 
'[id^="' . $this->
getFieldId() . 
'"]';
   371             $this->global_tpl->addOnLoadCode(
   372                 "il.LegacyForm.autocomplete.init(document.querySelector(`{$sel_auto}`), {$config});"   376         if ($a_mode == 
"toolbar") {
   382                 'display: -moz-inline-stack; display:inline-block; zoom: 1; *display:inline;'   385             $tpl->setVariable(
"STYLE_PAR", 
'');
   389             $tpl->setVariable(
"AUTOCOMPLETE", 
"autocomplete=\"off\"");
   393             $tpl->setVariable(
"REQUIRED", 
"required=\"required\"");
   398             $tpl->touchBlock(
"inline_in_bl");
   404             $tpl->setVariable(
'DESCRIBED_BY_FIELD_ID', $this->
getFieldId());
   427         $html = $this->
render(
"toolbar");
   433         $this->autocomplete_disabled = $autocomplete;
 parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
string $validationFailureMessage
 
setSuffix(string $a_value)
 
getDataSourceSubmitOnSelection()
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
bool $ajax_datasource_commit
 
setValueByArray(array $a_values)
 
setDataSourceSubmitOnSelection(bool $a_stat)
 
getToolbarHTML()
Get input item HTML to be inserted into ilToolbarGUI. 
 
getValidationFailureMessage()
 
getTableFilterHTML()
Get input item HTML to be inserted into table filters. 
 
isHtmlAutoCompleteDisabled()
 
setCssClass(string $a_class)
 
bool $autocomplete_disabled
 
setInputType(string $a_type)
set input type 
 
string $ajax_datasource_commit_url
 
setVariable($variable, $value='')
Sets a variable value. 
 
string $ajax_datasource_delimiter
 
insert(ilTemplate $a_tpl)
 
setMultiValues(array $a_values)
 
setDataSourceSubmitUrl(string $a_url)
 
setDisableHtmlAutoComplete(bool $autocomplete)
 
bool $submit_form_on_enter
 
render(string $a_mode="")
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
setMaxLength(?int $a_maxlength)
 
setSubmitFormOnEnter(bool $a_val)
 
__construct(Container $dic, ilPlugin $plugin)
 
setValidationFailureMessage(string $a_msg)
 
setDataSource(string $href, string $a_delimiter=null)
 
setInlineStyle(string $a_style)
 
getPostValueForComparison()
 
__construct(string $a_title="", string $a_postvar="")
 
setValidationRegexp(string $a_value)