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;
51 $this->type = $a_type;
71 $this->title = $a_title;
91 $this->info = $a_info;
111 if($this->
getMulti() && is_array($a_value))
114 $a_value = array_shift($a_value);
116 $this->value = $a_value;
134 $tpl =
new ilTemplate(
"tpl.non_editable_value.html",
true,
true,
"Services/Form");
143 $tpl->setCurrentBlock(
"hidden");
147 $tpl->parseCurrentBlock();
150 if(!$this->disable_escaping)
156 $tpl->parseCurrentBlock();
173 $a_tpl->setCurrentBlock(
"prop_generic");
174 $a_tpl->setVariable(
"PROP_GENERIC", $this->
render());
175 $a_tpl->parseCurrentBlock();
191 $item->setValueByArray($a_values);