4 include_once
'Services/Form/interfaces/interface.ilMultiValuesItem.php';
27 function __construct($a_title =
"", $a_id =
"", $a_disable_escaping =
false)
31 $this->
setType(
"non_editable_value");
32 $this->disable_escaping = (bool)$a_disable_escaping;
48 $this->type = $a_type;
68 $this->title = $a_title;
88 $this->info = $a_info;
108 if($this->
getMulti() && is_array($a_value))
111 $a_value = array_shift($a_value);
113 $this->value = $a_value;
131 $tpl =
new ilTemplate(
"tpl.non_editable_value.html",
true,
true,
"Services/Form");
140 $tpl->setCurrentBlock(
"hidden");
143 $tpl->parseCurrentBlock();
146 if(!$this->disable_escaping)
152 $tpl->parseCurrentBlock();
169 $a_tpl->setCurrentBlock(
"prop_generic");
170 $a_tpl->setVariable(
"PROP_GENERIC", $this->
render());
171 $a_tpl->parseCurrentBlock();
187 $item->setValueByArray($a_values);