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, 
"Services/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\"");
   356             $jstpl = 
new ilTemplate(
"tpl.prop_text_autocomplete.js", 
true, 
true, 
"Services/Form");
   359                 $jstpl->setCurrentBlock(
"ac_multi");
   360                 $jstpl->setVariable(
'MURL_AUTOCOMPLETE', $this->
getDataSource());
   361                 $jstpl->setVariable(
'ID_AUTOCOMPLETE', $this->
getFieldId());
   362                 $jstpl->parseCurrentBlock();
   365                 $sel_auto = 
'[id^="' . $this->
getFieldId() . 
'"]';
   371             $jstpl->setCurrentBlock(
"autocomplete_bl");
   373                 $jstpl->setVariable(
'SEL_AUTOCOMPLETE', $sel_auto);
   374                 $jstpl->setVariable(
'URL_AUTOCOMPLETE', $this->
getDataSource());
   376                 $jstpl->setVariable(
'SEL_AUTOCOMPLETE_AUTOSUBMIT', $sel_auto);
   377                 $jstpl->setVariable(
'URL_AUTOCOMPLETE_AUTOSUBMIT_REQ', $this->
getDataSource());
   380                 $jstpl->setVariable(
'AUTOCOMPLETE_DELIMITER', $this->ajax_datasource_delimiter);
   381                 $jstpl->setVariable(
'SEL_AUTOCOMPLETE_DELIMITER', $sel_auto);
   382                 $jstpl->setVariable(
'URL_AUTOCOMPLETE_DELIMITER', $this->
getDataSource());
   384             $jstpl->parseCurrentBlock();
   386             $jstpl->setVariable(
'MORE_TXT', 
$lng->
txt(
'autocomplete_more'));
   387             $this->global_tpl->addOnloadCode($jstpl->get());
   390         if ($a_mode == 
"toolbar") {
   396                 'display: -moz-inline-stack; display:inline-block; zoom: 1; *display:inline;'   399             $tpl->setVariable(
"STYLE_PAR", 
'');
   403             $tpl->setVariable(
"AUTOCOMPLETE", 
"autocomplete=\"off\"");
   407             $tpl->setVariable(
"REQUIRED", 
"required=\"required\"");
   412             $tpl->touchBlock(
"inline_in_bl");
   418             $tpl->setVariable(
'DESCRIBED_BY_FIELD_ID', $this->
getFieldId());
   441         $html = $this->
render(
"toolbar");
   447         $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)
 
static initjQueryUI(ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery-UI JS-File to the global template (see included_components.txt for included components) 
 
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)
 
static initjQuery(ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template 
 
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)