4 include_once(
"./Services/Table/interfaces/interface.ilTableFilterItem.php");
5 include_once(
"./Services/Form/classes/class.ilSubEnabledFormPropertyGUI.php");
6 include_once
'Services/UIComponent/Toolbar/interfaces/interface.ilToolbarItem.php';
38 $this->validationRegexp =
"";
48 if($this->
getMulti() && is_array($a_value))
51 $a_value = array_shift($a_value);
53 $this->value = $a_value;
66 public function setMulti($a_multi, $a_sortable =
false)
68 $this->multi = (bool)$a_multi;
69 $this->multi_sortable = (bool)$a_sortable;
79 $this->validationFailureMessage = $a_msg;
94 $this->validationRegexp = $a_value;
114 $this->maxlength = $a_maxlength;
134 $this->size = $a_size;
144 $this->style_css = $a_style;
159 $this->css_class = $a_class;
195 $this->suffix = $a_value;
217 $this->input_type = $a_type;
227 return $this->input_type;
237 $this->submit_form_on_enter = $a_val;
264 $this->
setAlert($lng->txt(
"msg_input_is_required"));
275 $lng->txt(
'msg_wrong_format')
291 $this->
setAlert($lng->txt(
"msg_input_is_required"));
311 $lng->txt(
'msg_wrong_format')
336 $this->ajax_datasource = $href;
341 foreach($a_values as $idx =>
$value)
343 $a_values[$idx] = trim(
$value);
344 if($a_values[$idx] ==
"")
346 unset($a_values[$idx]);
357 $tpl =
new ilTemplate(
"tpl.prop_textinput.html",
true,
true,
"Services/Form");
360 $tpl->setCurrentBlock(
"prop_text_propval");
362 $tpl->parseCurrentBlock();
366 $tpl->setCurrentBlock(
"stylecss");
368 $tpl->parseCurrentBlock();
372 $tpl->setCurrentBlock(
"classcss");
374 $tpl->parseCurrentBlock();
378 $tpl->touchBlock(
"submit_form_on_enter");
384 $tpl->setVariable(
'PROP_INPUT_TYPE',
'password');
387 $tpl->setVariable(
'PROP_INPUT_TYPE',
'hidden');
391 $tpl->setVariable(
'PROP_INPUT_TYPE',
'text');
425 $tpl->setVariable(
"DISABLED",
" disabled=\"disabled\"");
426 $tpl->setVariable(
"HIDDEN_INPUT", $hidden);
437 include_once
"Services/jQuery/classes/class.iljQueryUtil.php";
443 $tpl->setCurrentBlock(
"ac_multi");
446 $tpl->parseCurrentBlock();
449 $sel_auto =
'[id^="'.$this->getFieldId().
'"]';
454 $sel_auto =
"#".$this->getFieldId();
456 $tpl->setCurrentBlock(
"prop_text_autocomplete");
457 $tpl->setVariable(
'SEL_AUTOCOMPLETE', $sel_auto);
459 $tpl->parseCurrentBlock();
462 if ($a_mode ==
"toolbar")
467 $tpl->setVariable(
"STYLE_PAR",
'display: -moz-inline-stack; display:inline-block; zoom: 1; *display:inline;');
471 $tpl->setVariable(
"STYLE_PAR",
'');
492 $a_tpl->setCurrentBlock(
"prop_generic");
493 $a_tpl->setVariable(
"PROP_GENERIC", $html);
494 $a_tpl->parseCurrentBlock();
511 $html = $this->
render(
"toolbar");