5 include_once
'Services/UIComponent/Toolbar/interfaces/interface.ilToolbarItem.php';
31 include_once(
"./Services/UIComponent/NestedList/classes/class.ilNestedList.php");
33 $this->list->setListClass(
"il_Explorer");
41 function addListNode($a_id, $a_text, $a_parent = 0, $a_checked =
false, $a_disabled =
false,
42 $a_img_src =
"", $a_img_alt =
"", $a_post_var =
"")
44 $this->list_nodes[$a_id] = array(
"text" => $a_text,
45 "parent" => $a_parent,
"checked" => $a_checked,
"disabled" => $a_disabled,
46 "img_src" => $a_img_src,
"img_alt" => $a_img_alt,
"post_var" => $a_post_var);
56 $this->value = $a_value;
100 foreach ($this->list_nodes as $id =>
$n)
102 if (
$n[
"post_var"] ==
"")
109 $post_var =
$n[
"post_var"];
114 if (
$n[
"img_src"] !=
"")
118 $item_html.=
$n[
"text"];
120 $this->list->addListNode($item_html, $id,
$n[
"parent"]);
123 return $this->list->getHTML();
135 $a_tpl->setCurrentBlock(
"prop_generic");
136 $a_tpl->setVariable(
"PROP_GENERIC", $html);
137 $a_tpl->parseCurrentBlock();