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;
61 parent::ilLMTOCExplorer($a_target, $a_lm_obj);
62 $this->setSessionExpandVariable(
'lmshoppublicselectorexpand');
63 $this->setExpandTarget($a_target);
64 $this->setExpand((
int)
$_GET[
'lmshoppublicselectorexpand'] ? (
int)
$_GET[
'lmshoppublicselectorexpand'] : $this->tree->readRootId());
74 if(!$this->offlineMode())
76 return parent::buildLinkTarget($a_node_id, $a_type);
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)
140 $this->createLines($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)
163 $this->handleListEndTags($tpl_tree, $cur_depth,
$options[
'depth']);
166 $this->handleListStartTags($tpl_tree, $cur_depth,
$options[
'depth']);
170 if (
$options[
'visible'] and $key != 0)
176 $this->handleListEndTags($tpl_tree, $cur_depth, -1);
178 $ilBench->stop(
'Explorer',
'getOutput');
180 return $tpl_tree->get();
__construct($a_target, $a_lm_obj, $a_gui_class)
Constructor public.
buildLinkTarget($a_node_id, $a_type)
if(!is_array($argv)) $options
special template class to simplify handling of ITX/PEAR
buildFrameTarget($a_type, $a_child=0, $a_obj_id=0)
static _isPagePublic($a_node_id, $a_check_public_mode=false)
isClickable($a_type, $a_node_id)