24 require_once (
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMObjectGUI.php");
25 require_once (
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMItem.php");
26 require_once (
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMResource.php");
27 require_once (
"./Modules/ScormAicc/classes/class.ilObjSCORMLearningModule.php");
50 $id_ref = $this->sc_object->getIdentifierRef();
54 $resource->readByIdRef($id_ref, $this->sc_object->getSLMId());
58 if ($resource->getHref() !=
"")
60 $param_str = ($this->sc_object->getParameters() !=
"")
61 ?
"?".$this->sc_object->getParameters()
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());
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())
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();
114 $func_tpl =
new ilTemplate(
"tpl.scorm_functions.html",
true,
true,
"Modules/ScormAicc");
115 $func_tpl->setVariable(
"PREFIX", $slm_obj->getAPIFunctionsPrefix());
116 $func_tpl->parseCurrentBlock();
118 $this->tpl =&
new ilTemplate(
"tpl.scorm_api.html",
true,
true,
"Modules/ScormAicc");
119 $this->tpl->setVariable(
"SCORM_FUNCTIONS", $func_tpl->get());
120 $this->tpl->setVariable(
"ITEM_ID",
$_GET[
"obj_id"]);
121 $this->tpl->setVariable(
"USER_ID",$ilias->account->getId());
122 $this->tpl->setVariable(
"SESSION_ID",session_id());
124 $this->tpl->setVariable(
"CODE_BASE",
"http://".$_SERVER[
'SERVER_NAME'].substr($_SERVER[
'PHP_SELF'], 0, strpos ($_SERVER[
'PHP_SELF'],
"/ilias.php")));