4 require_once(
"./Services/UIComponent/Explorer/classes/class.ilExplorer.php");
5 #include_once ("./Services/Repository/classes/class.ilRepositoryExplorer.php");
6 include_once
'./Services/Payment/classes/class.ilPaymentObject.php';
50 $this->target = $a_target;
54 $this->tpl->addCss(
'./Services/Payment/css/shop_tree.css');
89 $this->root_id = $tree->getRootId();
91 if($a_parent < $a_depth)
93 foreach($this->payment_objects as
$ref_id)
95 $objects = $tree->getPathFull($ref_id);
97 foreach($objects as $object)
99 if($object[
'child'] == $this->root_id)
101 $href = $ilCtrl->getLinkTargetByClass(
'ilshopgui',
'');
103 $title =
"<span style='white-space:wrap;' class='frmTitle'><a class='small' href='".$href.
"'>"
104 .stripslashes($object[
'title']).
"</a></span>"
105 .
"<div style='white-space:nowrap; margin-bottom:5px;' class='small'></div>";
107 $this->tpl->setVariable(
'TREE_ROOT_NODE_VARIABLE',
'Node'.$object[
'child']);
108 $this->tpl->setVariable(
'TREE_ROOT_NODE_LINK',
$title);
111 $this->
setOutput($object[
'child'], $a_depth);
122 $href = $ilCtrl->getLinkTargetByClass(
'ilshopgui',
'');
123 $title =
"<span style='white-space:wrap;' class='frmTitle'><a class='small' href='".$href.
"&tree_ref_id=".$object[
'child'].
"'>"
124 .stripslashes($object[
'title']).
"</a></span>"
125 .
"<div style='white-space:nowrap; margin-bottom:5px;' class='small'></div>";
127 $this->tpl->setCurrentBlock(
'nodes');
128 $this->tpl->setVariable(
'NODES_VARNAME',
'Node'.$object[
'child']);
129 $this->tpl->setVariable(
'NODES_PARENT_VARNAME',
'Node'.$object[
'parent']);
130 $this->tpl->setVariable(
'NODES_LINK',
$title);
131 $this->tpl->parseCurrentBlock();
134 $this->
setOutput($object[
'child'], $a_depth);