4 include_once
'Services/Form/interfaces/interface.ilMultiValuesItem.php';
27 public function __construct($a_title =
"", $a_id =
"", $a_disable_escaping =
false)
29 parent::__construct($a_title, $a_id);
31 $this->
setType(
"non_editable_value");
32 $this->disable_escaping = (bool) $a_disable_escaping;
70 $this->title = $a_title;
90 $this->info = $a_info;
110 if ($this->
getMulti() && is_array($a_value)) {
112 $a_value = array_shift($a_value);
114 $this->value = $a_value;
132 $tpl =
new ilTemplate(
"tpl.non_editable_value.html",
true,
true,
"Services/Form");
139 $tpl->setCurrentBlock(
"hidden");
143 $tpl->parseCurrentBlock();
146 if (!$this->disable_escaping) {
151 $tpl->parseCurrentBlock();
167 $a_tpl->setCurrentBlock(
"prop_generic");
168 $a_tpl->setVariable(
"PROP_GENERIC", $this->
render());
169 $a_tpl->parseCurrentBlock();
183 $item->setValueByArray($a_values);
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
setTitle($a_title)
Set Title.
Interface for property form input GUI classes that can be used in table filters.
setValue($a_value)
Set Value.
getTableFilterHTML()
Get HTML for table filter.
__construct($a_title="", $a_id="", $a_disable_escaping=false)
Constructor.
setInfo($a_info)
Set Information Text.
setType($a_type)
Set Type.
insert($a_tpl)
Insert property html.
special template class to simplify handling of ITX/PEAR
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
setValueByArray($a_values)
Set value by array.
Interface for multi values support.
This class represents a non editable value in a property form.
getInfo()
Get Information Text.