5include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
 
    6include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Page.php");
 
    7require_once 
'./Modules/Scorm2004/classes/class.ilQuestionExporter.php';
 
   30        function __construct($a_parent_type, $a_id = 0, $a_old_nr = 0, $a_slm_id = 0,
 
   35                $this->glo_id = $a_glo_id;
 
   36                $this->slm_id = $a_slm_id;
 
   38                $a_parent_type = 
"sahs";
 
   40                parent::__construct($a_parent_type, $a_id, $a_old_nr);
 
   44                        $ilCtrl->getLinkTargetByClass(
"ilobjscorm2004learningmodulegui", 
"showTree",
 
   46                include_once(
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php");
 
   57                $this->glossary_ov_id = $a_ov_id;
 
   68                return $this->glossary_ov_id;
 
   78                $next_class = $this->ctrl->getNextClass($this);
 
   79                $cmd = $this->ctrl->getCmd();
 
   84                                return parent::executeCommand();
 
   87                        case "ilpageobjectgui":
 
   88die(
"ilSCORM2004PageGUI forwarding to ilpageobjectgui error.");
 
   92                                $html = parent::executeCommand();
 
  136                if (count($q_ids) > 0)
 
  138                        foreach ($q_ids as $q_id)
 
  140                                include_once(
"./Modules/TestQuestionPool/classes/class.assQuestionGUI.php");
 
  143                                $q_gui->outAdditionalOutput();                          
 
  144                                $html[$q_id] = $q_gui->getPreview(TRUE);
 
  160                if ($this->scorm_mode == 
"preview")
 
  174                if ($this->scorm_mode == 
"preview")
 
  176                        $a_output = parent::selfAssessmentRendering($a_output);
 
  189                $this->scorm_mode = $a_mode;
 
  204                $this->glossary_links = $int_links;
 
  209                $link_info = 
"<IntLinkInfos>";
 
  210                $targetframe = 
"None";
 
  212                foreach ($int_links as $int_link)
 
  216                        $targetframe = 
"None";
 
  217                        if (substr(
$target, 0, 4) == 
"il__")
 
  221                                $type = $int_link[
"Type"];
 
  229                                                $onclick = 
'OnClick="return false;"';
 
  230                                                $anc_par = 
'Anchor=""';
 
  231                                                $targetframe = 
"Glossary";
 
  240                                                                include_once(
"./Modules/File/classes/class.ilObjFile.php");
 
  251                                                $anc_par = 
'Anchor=""';
 
  252                                                $targetframe = 
"None"; 
 
  256                                $link_info.=
"<IntLinkInfo $onclick Target=\"$target\" Type=\"$type\" ".$anc_par.
" ".
 
  257                                        "TargetFrame=\"$targetframe\" LinkHref=\"$href\" LinkTarget=\"$ltarget\" />";
 
  260                $link_info.= 
"</IntLinkInfos>";
 
  272                include_once(
"./Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php");
 
  274                if ($this->scorm_mode != 
"export")
 
  276                        $tpl = 
new ilTemplate(
"tpl.glossary_entries.html", 
true, 
true, 
"Modules/Scorm2004");
 
  291                        $ovov->setAutoHide(
false);
 
  292                        $ovov->setCloseElementId(
"glo_ov_close");
 
  295                                if ($this->scorm_mode != 
"export" ||
 
  302                                        $tpl->setCurrentBlock(
"add_script");
 
  304                                        $tpl->parseCurrentBlock();
 
  311                        if (is_array($this->glossary_links))
 
  313                                foreach ($this->glossary_links as $k => $e)
 
  316                                        if ($e[
"Type"] == 
"GlossaryItem")
 
  318                                                $karr = explode(
":", $k);
 
  319                                                $link_id = $karr[0].
"_".$this->
getPageObject()->getId().
"_".$karr[4];
 
  321                                                $ov_id = 
"ov".$karr[0];
 
  322                                                $cl_id = 
"ov".$karr[0].
"cl";
 
  323                                                $glov_id = 
"ov".$karr[0].
"ov";
 
  324                                                $term_id_arr = explode(
"_", $karr[0]);
 
  325                                                $term_id = $term_id_arr[count($term_id_arr) - 1];
 
  328                                                include_once(
"./Modules/Glossary/classes/class.ilGlossaryTermGUI.php");
 
  329                                                $id_arr = explode(
"_", $karr[0]); 
 
  335                                                $tpl->setCurrentBlock(
"entry");
 
  337                                                $tpl->setVariable(
"OVERLAY_ID", $ov_id);
 
  342                                                if (!isset($overlays[$ov_id]))
 
  345                                                        $overlays[$ov_id]->setAnchor($link_id);
 
  346                                                        $overlays[$ov_id]->setTrigger($link_id, 
"click", $link_id);
 
  347                                                        $overlays[$ov_id]->setAutoHide(
false);
 
  348                                                        $overlays[$ov_id]->setCloseElementId($cl_id);
 
  349                                                        if ($this->scorm_mode != 
"export" ||
 
  352                                                                $overlays[$ov_id]->add();
 
  356                                                                $tpl->setVariable(
"SCRIPT", 
"il.Util.addOnLoad(function () {".$overlays[$ov_id]->
getOnLoadCode().
"});");
 
  361                                                        if ($this->scorm_mode != 
"export" ||
 
  364                                                                $overlays[$ov_id]->addTrigger($link_id, 
"click", $link_id);
 
  368                                                                $tpl->setVariable(
"SCRIPT",
 
  369                                                                        "il.Util.addOnLoad(function () {".$overlays[$ov_id]->getTriggerOnLoadCode($link_id, 
"click", $link_id).
"});");
 
  375                                                        if ($this->scorm_mode != 
"export" ||
 
  381                                                                $overlays[$ov_id]->addTrigger(
"glo_ov_t".$term_id, 
"click", $this->
getGlossaryOverviewId(), 
false, 
"tl", 
"tl");
 
  385                                                                $tpl->setVariable(
"SCRIPT2",
 
  386                                                                        "il.Util.addOnLoad(function () {".
 
  387                                                                        $overlays[$this->
getGlossaryOverviewId()]->getTriggerOnLoadCode($glov_id, 
"click", $ov_id, 
false, 
"tl", 
"tl").
"});");
 
  388                                                                $tpl->setVariable(
"SCRIPT3",
 
  389                                                                        "il.Util.addOnLoad(function () {".
 
  390                                                                        $overlays[$ov_id]->getTriggerOnLoadCode(
"glo_ov_t".$term_id, 
"click", $this->
getGlossaryOverviewId(), 
false, 
"tl", 
"tl").
"});");
 
  394                                                $tpl->parseCurrentBlock();
 
  399                        if ($glossary && $this->scorm_mode != 
"export")
 
  401                                $ret = $a_output.$tpl->get();
 
  418                self::$export_glo_tpl = 
new ilTemplate(
"tpl.glossary_entries.html", 
true, 
true, 
"Modules/Scorm2004");
 
  426                $ret = self::$export_glo_tpl->get();
 
An exception for terminatinating execution or to throw for unit testing.
static _getQuestionGUI($question_type, $question_id=-1)
Creates a question gui representation and returns the alias to the question gui note: please do not u...
const RENDER_PURPOSE_PREVIEW
GUI class for glossary terms.
static _lookupFileName($a_id)
static getAffectiveLocalization($a_id)
Get affective localization.
static _lookupType($a_id, $a_reference=false)
lookup object type
This is a utility class for the yui overlays.
setIntLinkReturn($a_return)
setPageObject($a_pg_obj)
Set Page Object.
determineFileDownloadLink()
Determine file download link.
getPageObject()
Get Page Object.
setTemplateOutput($a_output=true)
enableNotes($a_enabled, $a_parent_id)
Class ilSCORM2004Page GUI class.
initSelfAssessmentRendering()
Init question handling.
selfAssessmentRendering($a_output)
Self assessment question rendering.
setSCORM2004Page($a_scpage)
Set SCORM2004 Page Object.
getGlossaryOverviewId()
Get glossary overview id.
getQuestionHtmlOfPage()
Get question html for page.
setGlossaryOverviewInfo($a_ov_id, $a_sco)
Set glossary overview id.
static initExport()
Init export.
showPage($a_mode="preview")
Show the page.
executeCommand()
execute command
__construct($a_parent_type, $a_id=0, $a_old_nr=0, $a_slm_id=0, $a_glo_id=0)
Constructor.
getSCORM2004Page()
Get SCORM2004 Page Object.
postOutputProcessing($a_output)
Post output processing:
static getGlossaryHTML($a_sco)
Get glossary html (only in export mode)
setDefaultLinkXml()
Set standard link xml (currently only glossaries)
static getGloOverviewOv($a_sco)
des
special template class to simplify handling of ITX/PEAR
if(!is_dir( $entity_dir)) exit("Fatal Error ([A-Za-z0-9]+)\s+" &#(? foreach( $entity_files as $file) $output