/**
  * output table of content
  */
 function explorer($a_target = "sahs_content")
 {
     $this->tpl = new ilTemplate("tpl.sahs_exp_main.html", true, true, "Modules/ScormAicc");
     require_once "./Modules/ScormAicc/classes/AICC/class.ilAICCExplorer.php";
     $exp = new ilAICCExplorer($this->ctrl->getLinkTarget($this, "view"), $this->slm);
     $exp->setTargetGet("obj_id");
     $exp->setFrameTarget($a_target);
     //$exp->setFiltered(true);
     if ($_GET["scexpand"] == "") {
         $mtree = new ilSCORMTree($this->slm->getId());
         $expanded = $mtree->readRootId();
     } else {
         $expanded = $_GET["scexpand"];
     }
     $exp->setExpand($expanded);
     $exp->forceExpandAll(true, false);
     // build html-output
     //666$exp->setOutput(0);
     $exp->setOutput(0);
     $output = $exp->getOutput();
     $this->tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation());
     $this->tpl->addBlockFile("CONTENT", "content", "tpl.explorer.html");
     $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", $this->ctrl->getLinkTarget($this, $_GET["cmd"]) . "&frame=" . $_GET["frame"] . "&ref_id=" . $this->slm->getRefId() . "&scexpand=" . $_GET["scexpand"]);
     $this->tpl->parseCurrentBlock();
     $this->tpl->show();
 }
 /**
  * Constructor
  * @access	public
  * @param	string	scriptname
  * @param    int user_id
  */
 function ilHACPExplorer($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(true);
     $this->setOrderColumn("");
 }