/** * Constructor * @access public * @param string scriptname * @param int user_id */ function ilAICCExplorer($a_target, &$a_slm_obj) { parent::ilExplorer($a_target); $this->slm_obj =& $a_slm_obj; $this->tree = new ilAICCTree($a_slm_obj->getId()); $this->root_id = $this->tree->readRootId(); $this->checkPermissions(false); $this->outputIcons(false); $this->setOrderColumn(""); }
/** * output table of content */ function explorer($a_target = "sahs_content") { global $ilBench, $ilLog; $ilBench->start("SCORMExplorer", "initExplorer"); $this->tpl = new ilTemplate("tpl.sahs_exp_main.html", true, true, "Modules/ScormAicc"); require_once "./Modules/ScormAicc/classes/SCORM/class.ilSCORMExplorer.php"; $exp = new ilSCORMExplorer($this->ctrl->getLinkTarget($this, "view"), $this->slm); $exp->setTargetGet("obj_id"); $exp->setFrameTarget($a_target); //$exp->setFiltered(true); $jsApi = false; if ($_GET["jsApi"] == "1") { $jsApi = true; } if ($_GET["scexpand"] == "") { $mtree = new ilSCORMTree($this->slm->getId()); $expanded = $mtree->readRootId(); } else { $expanded = $_GET["scexpand"]; } $exp->setExpand($expanded); $exp->forceExpandAll(true, false); $ilBench->stop("SCORMExplorer", "initExplorer"); // build html-output $ilBench->start("SCORMExplorer", "setOutput"); $exp->setOutput(0); $ilBench->stop("SCORMExplorer", "setOutput"); $ilBench->start("SCORMExplorer", "getOutput"); $output = $exp->getOutput($jsApi); $ilBench->stop("SCORMExplorer", "getOutput"); $this->tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation()); $this->tpl->addBlockFile("CONTENT", "content", "tpl.sahs_explorer.html", "Modules/ScormAicc"); //$this->tpl->setVariable("TXT_EXPLORER_HEADER", $this->lng->txt("cont_content")); $this->tpl->setVariable("EXP_REFRESH", $this->lng->txt("refresh")); $this->tpl->setVariable("EXPLORER", $output); $this->tpl->setVariable("ACTION", "ilias.php?baseClass=ilSAHSPresentationGUI&cmd=" . $_GET["cmd"] . "&frame=" . $_GET["frame"] . "&ref_id=" . $this->slm->getRefId() . "&scexpand=" . $_GET["scexpand"]); $this->tpl->parseCurrentBlock(); $this->tpl->show(); }