5 include_once
'Services/UIComponent/Toolbar/interfaces/interface.ilToolbarItem.php';
31 include_once(
"./Services/UIComponent/NestedList/classes/class.ilNestedList.php");
40 function addListNode($a_id, $a_text, $a_parent = 0, $a_checked =
false, $a_disabled =
false,
41 $a_img_src =
"", $a_img_alt =
"", $a_post_var =
"")
43 $this->list_nodes[$a_id] = array(
"text" => $a_text,
44 "parent" => $a_parent,
"checked" => $a_checked,
"disabled" => $a_disabled,
45 "img_src" => $a_img_src,
"img_alt" => $a_img_alt,
"post_var" => $a_post_var);
55 $this->value = $a_value;
99 foreach ($this->list_nodes as $id => $n)
101 if ($n[
"post_var"] ==
"")
108 $post_var = $n[
"post_var"];
113 if ($n[
"img_src"] !=
"")
115 $item_html.=
ilUtil::img($n[
"img_src"], $n[
"img_alt"]).
" ";
117 $item_html.= $n[
"text"];
119 $this->list->addListNode($item_html, $id, $n[
"parent"]);
122 return $this->list->getHTML();
134 $a_tpl->setCurrentBlock(
"prop_generic");
135 $a_tpl->setVariable(
"PROP_GENERIC", $html);
136 $a_tpl->parseCurrentBlock();