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);
64 $this->
setExpand((
int)
$_GET[
'lmshoppublicselectorexpand'] ? (
int)
$_GET[
'lmshoppublicselectorexpand'] : $this->tree->readRootId());
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)
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)
170 if (
$options[
'visible'] and $key != 0)
178 $ilBench->stop(
'Explorer',
'getOutput');
180 return $tpl_tree->get();
__construct($a_target, $a_lm_obj, $a_gui_class)
Constructor public.
formatObject(&$tpl, $a_node_id, $a_option, $a_obj_id=0)
Creates output recursive method private.
setExpandTarget($a_exp_target)
target script for expand icons
handleListEndTags(&$a_tpl_tree, $a_cur_depth, $a_item_depth)
handle list end tags ( and )
buildLinkTarget($a_node_id, $a_type)
if(!is_array($argv)) $options
special template class to simplify handling of ITX/PEAR
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
handleListStartTags(&$a_tpl_tree, $a_cur_depth, $a_item_depth)
handle list start tags (
offlineMode()
get offline mode
buildFrameTarget($a_type, $a_child=0, $a_obj_id=0)
setSessionExpandVariable($a_var_name="expand")
set name of expand session variable
static _isPagePublic($a_node_id, $a_check_public_mode=false)
isClickable($a_type, $a_node_id)
createLines($a_depth)
Creates lines for explorer view private.
setExpand($a_node_id)
set the expand option this value is stored in a SESSION variable to save it different view (lo view...