32 require_once(
"classes/class.ilExplorer.php");
33 require_once(
"./Modules/ScormAicc/classes/AICC/class.ilAICCTree.php");
34 require_once(
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMExplorer.php");
48 $this->slm_obj =& $a_slm_obj;
49 $this->tree =
new ilAICCTree($a_slm_obj->getId());
72 return (strlen($block_object->getDescription())>0);
154 if (!isset($a_node_id) or !is_array($a_option))
156 $this->ilias->raiseError(get_class($this).
"::formatObject(): Missing parameter or wrong datatype! ".
157 "node_id: ".$a_node_id.
" options:".var_dump($a_option),$this->ilias->error_obj->WARNING);
160 $tpl =
new ilTemplate(
"tpl.sahs_tree.html",
true,
true,
"Modules/ScormAicc");
162 if ($a_option[
"c_type"]==
"sos")
165 if ($a_option[
"c_type"]==
"srs")
168 if (is_array($a_option[
"tab"])) {
169 foreach ($a_option[
"tab"] as $picture)
172 if ($picture ==
'plus')
175 $tpl->setCurrentBlock(
"expander");
176 $tpl->setVariable(
"LINK_TARGET_EXPANDER",
$target);
178 $tpl->parseCurrentBlock();
182 if ($picture ==
'minus' && $this->show_minus)
185 $tpl->setCurrentBlock(
"expander");
186 $tpl->setVariable(
"LINK_TARGET_EXPANDER",
$target);
188 $tpl->parseCurrentBlock();
195 $tpl->setCurrentBlock(
"lines");
197 $tpl->parseCurrentBlock();
202 if ($this->output_icons) {
203 if ($this->
isClickable($a_option[
"c_type"], $a_node_id) && !$a_option[
"c_type"]==
"sbl")
207 if ($this->
isClickable($a_option[
"c_type"], $a_node_id))
209 $tpl->setCurrentBlock(
"link");
214 $frame_target = $this->
buildFrameTarget($a_option[
"c_type"], $a_node_id, $a_option[
"obj_id"]);
215 if ($frame_target !=
"")
226 if ($a_option[
"c_type"]==
"sbl") {
228 $tpl->setVariable(
"TARGET",
" target=\"".$frame_target.
"\"");
234 $tpl->setVariable(
"LINK_TARGET",
"javascript:void(0);");
235 $tpl->setVariable(
"ONCLICK",
" onclick=\"parent.APIFRAME.setupApi();parent.APIFRAME.API.IliasLaunchSahs('".$a_node_id.
"');return false;\"");
241 $tpl->parseCurrentBlock();
245 $tpl->setCurrentBlock(
"text");
247 $tpl->parseCurrentBlock();
251 $tpl->setCurrentBlock(
"row");
252 $tpl->parseCurrentBlock();
254 $this->output[] =
$tpl->get();