19declare(strict_types=1);
39 bool $a_disable_escaping =
false
43 $this->
setType(
"non_editable_value");
44 $this->disable_escaping = $a_disable_escaping;
63 protected function setType(
string $a_type): void
65 $this->type = $a_type;
73 public function setTitle(
string $a_title): void
75 $this->title = $a_title;
83 public function setInfo(
string $a_info): void
85 $this->
info = $a_info;
98 if ($this->
getMulti() && is_array($a_value)) {
100 $a_value = array_shift($a_value);
102 $this->value = $a_value;
117 $tpl =
new ilTemplate(
"tpl.non_editable_value.html",
true,
true,
"components/ILIAS/Form");
124 $tpl->setCurrentBlock(
"hidden");
125 $tpl->setVariable(
'NON_EDITABLE_ID',
$postvar);
126 $tpl->setVariable(
'MULTI_HIDDEN_ID', $this->
getFieldId());
128 $tpl->parseCurrentBlock();
131 if (!$this->disable_escaping) {
134 $tpl->setVariable(
"VALUE",
$value);
136 $tpl->setVariable(
"ID",
' id="' . $this->
getFieldId() .
'" ');
138 $tpl->parseCurrentBlock();
161 $item->setValueByArray($a_values);
setVariable($variable, $value='')
Sets a variable value.
This class represents a non editable value in a property form.
checkInput()
Check input, strip slashes etc.
insert(ilTemplate $a_tpl)
setTitle(string $a_title)
setValueByArray(array $a_values)
__construct(string $a_title="", string $a_id="", bool $a_disable_escaping=false)
getTableFilterHTML()
Get input item HTML to be inserted into table filters.
special template class to simplify handling of ITX/PEAR
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
Interface for multi values support.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc