46 {
47 global $ilias;
48
49
50 $id_ref = $this->sc_object->getIdentifierRef();
51 if ($id_ref != "")
52 {
54 $resource->readByIdRef($id_ref, $this->sc_object->getSLMId());
55
57
58 if ($resource->getHref() != "")
59 {
60 $param_str = ($this->sc_object->getParameters() != "")
61 ? "?".$this->sc_object->getParameters()
62 : "";
63
64 $this->tpl =&
new ilTemplate(
"tpl.scorm_content_frameset.html",
true,
true,
"Modules/ScormAicc");
65 $this->tpl->setVariable("ITEM_LOCATION",$slm_obj->getDataDirectory()."/".$resource->getHref().$param_str);
66 $this->tpl->setVariable(
"ITEM_ID",
$_GET[
"obj_id"]);
67 $this->tpl->setVariable(
"REF_ID",
$_GET[
"ref_id"]);
68 $this->tpl->setVariable("USER_ID",$ilias->account->getId());
69 $this->tpl->setVariable("ADAPTER_NAME", $slm_obj->getAPIAdapterName());
70 $this->tpl->show();
72 }
73 }
74
75
76 $this->tpl->addBlockFile("CONTENT", "content", "tpl.scorm_obj.html", "Modules/ScormAicc");
77 $this->tpl->setCurrentBlock("par_table");
78 $this->tpl->setVariable("TXT_OBJECT_TYPE", $this->lng->txt("cont_item"));
80 $this->sc_object->getImportId());
82 $this->sc_object->getIdentifierRef());
83 $str_visible = ($this->sc_object->getVisible())
84 ? "true"
85 : "false";
87 $str_visible);
89 $this->sc_object->getParameters());
91 $this->sc_object->getTitle());
93 $this->sc_object->getPrereqType());
95 $this->sc_object->getPrerequisites());
97 $this->sc_object->getMaxTimeAllowed());
99 $this->sc_object->getTimeLimitAction());
101 $this->sc_object->getDataFromLms());
103 $this->sc_object->getMasteryScore());
104 $this->tpl->parseCurrentBlock();
105
106 }
displayParameter($a_name, $a_value)