19 declare(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);
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
getTableFilterHTML()
Get input item HTML to be inserted into table filters.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
info()
description: > Example for rendering a info message box.
setValueByArray(array $a_values)
setVariable($variable, $value='')
Sets a variable value.
insert(ilTemplate $a_tpl)
Interface for multi values support.
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
__construct(string $a_title="", string $a_id="", bool $a_disable_escaping=false)
__construct(Container $dic, ilPlugin $plugin)
setTitle(string $a_title)