32 require_once(
"./classes/class.ilExplorer.php");
53 $this->tree =
new ilTree($a_slm_obj->getId());
54 $this->tree->
setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
55 $this->tree->setTreeTablePK(
"slm_id");
56 $this->root_id = $this->tree->readRootId();
57 $this->slm_obj = $a_slm_obj;
58 $this->order_column =
"";
62 $this->textwidth = 200;
64 $this->force_open_path = array();
72 $this->force_open_path = $a_path;
86 $tpl->setCurrentBlock(
"icon");
88 $tpl->setVariable(
"TXT_ALT_IMG", $this->slm_obj->getTitle());
89 $tpl->parseCurrentBlock();
91 $tpl->setCurrentBlock(
"link");
93 $this->textwidth,
true));
94 $tpl->setVariable(
"LINK_TARGET",
95 $ilCtrl->getLinkTargetByClass(
"ilobjscorm2004learningmodulegui",
"showOrganization"));
96 $tpl->setVariable(
"TARGET",
" target=\"".$this->frame_target.
"\"");
97 $tpl->parseCurrentBlock();
99 $tpl->touchBlock(
"element");
113 $tpl->setCurrentBlock(
"icon");
114 $tpl->setVariable(
"ICON_IMAGE" , $this->
getImage(
"icon_".$a_option[
"type"].
"_s.gif", $a_option[
"type"], $a_obj_id));
115 $tpl->setVariable(
"TARGET_ID" ,
"iconid_".$a_node_id);
116 $this->iconList[] =
"iconid_".$a_node_id;
117 $tpl->setVariable(
"TXT_ALT_IMG", $lng->txt($a_option[
"desc"]));
118 $tpl->parseCurrentBlock();
147 $ilCtrl->setParameterByClass(
"ilScorm2004ChapterGUI",
"obj_id", $a_node_id);
148 return $ilCtrl->getLinkTargetByClass(
"ilScorm2004ChapterGUI",
"showOrganization");
152 $ilCtrl->setParameterByClass(
"ilScorm2004SeqChapterGUI",
"obj_id", $a_node_id);
153 return $ilCtrl->getLinkTargetByClass(
"ilScorm2004SeqChapterGUI",
"showOrganization");
157 $ilCtrl->setParameterByClass(
"ilScorm2004PageNodeGUI",
"obj_id", $a_node_id);
158 return $ilCtrl->getLinkTargetByClass(
"ilScorm2004PageNodeGUI",
"edit");
162 $ilCtrl->setParameterByClass(
"ilScorm2004ScoGUI",
"obj_id", $a_node_id);
163 return $ilCtrl->getLinkTargetByClass(
"ilScorm2004ScoGUI",
"showOrganization");
173 if (in_array($a_obj_id, $this->force_open_path))