24 require_once(
"./Modules/LearningModule/classes/class.ilLMTOCExplorer.php");
25 require_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
55 public function __construct($a_target, $a_lm_obj, $a_gui_class)
60 $this->gui_class = $a_gui_class;
64 $this->
setExpand((
int)
$_GET[
'lmshoppublicselectorexpand'] ? (
int)
$_GET[
'lmshoppublicselectorexpand'] : $this->tree->readRootId());
82 $a_node_id = $this->tree->getRootId();
86 $a_node = $this->tree->fetchSuccessorNode($a_node_id,
'pg');
87 $a_node_id = $a_node[
'child'];
89 if (!$this->lm_obj->cleanFrames())
91 return 'frame_'.$a_node_id.
'_maincontent.html';
95 return 'lm_pg_'.$a_node_id.
'.html';
106 $a_node = $this->tree->fetchSuccessorNode($a_node_id,
'pg');
107 $a_node_id = $a_node[
'child'];
117 include_once(
'./Modules/LearningModule/classes/class.ilLMObject.php');
118 if ($this->lm_obj->getPublicAccessMode() ==
'selected'
132 $ilBench->start(
'Explorer',
'getOutput');
134 $this->format_options[0][
'tab'] = array();
136 $depth = $this->tree->getMaximumDepth();
138 for ($i=0;$i<$depth;++$i)
144 $tpl->setBodyClass(
"il_Explorer");
146 $tpl_tree =
new ilTemplate(
'tpl.tree_form.html',
true,
true,
'Modules/LearningModule');
149 foreach ($this->format_options as $key => $options)
152 if (!$options[
'visible'])
168 $cur_depth = $options[
'depth'];
170 if ($options[
'visible'] and $key != 0)
172 $this->
formatObject($tpl_tree, $options[
'child'], $options, $options[
'obj_id']);
178 $ilBench->stop(
'Explorer',
'getOutput');
180 return $tpl_tree->get();