24 $this->childs[0] = array();
34 $this->item_class = $a_val;
54 $this->list_class = $a_val;
75 $this->nodes[$a_id] = $a_content;
76 $this->childs[$a_parent][] = $a_id;
87 $tpl =
new ilTemplate(
"tpl.nested_list.html",
true,
true,
"Services/UIComponent/NestedList");
89 if (is_array($this->childs[0]) && count($this->childs[0]) > 0)
92 foreach ($this->childs[0] as $child)
111 $tpl->setCurrentBlock(
"content");
112 $tpl->setVariable(
"CONTENT", $this->nodes[$a_id]);
114 $tpl->parseCurrentBlock();
115 $tpl->touchBlock(
"tag");
117 if (is_array($this->childs[$a_id]) && count($this->childs[$a_id]) > 0)
120 foreach ($this->childs[$a_id] as $child)
140 $tpl->setCurrentBlock(
"list_item_start");
142 $tpl->parseCurrentBlock();
146 $tpl->touchBlock(
"list_item_start");
148 $tpl->touchBlock(
"tag");
159 $tpl->touchBlock(
"list_item_end");
160 $tpl->touchBlock(
"tag");
174 $tpl->setCurrentBlock(
"list_start");
176 $tpl->parseCurrentBlock();
180 $tpl->touchBlock(
"list_start");
182 $tpl->touchBlock(
"tag");
194 $tpl->touchBlock(
"list_end");
195 $tpl->touchBlock(
"tag");