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");
41 parent::__construct();
48 $ilias = $DIC[
'ilias'];
51 $id_ref = $this->sc_object->getIdentifierRef();
54 $resource->readByIdRef($id_ref, $this->sc_object->getSLMId());
58 if ($resource->getHref() !=
"") {
59 $param_str = ($this->sc_object->getParameters() !=
"")
60 ?
"?" . $this->sc_object->getParameters()
63 $this->tpl =
new ilTemplate(
"tpl.scorm_content_frameset.html",
true,
true,
"Modules/ScormAicc");
64 $this->tpl->setVariable(
"ITEM_LOCATION", $slm_obj->getDataDirectory() .
"/" . $resource->getHref() . $param_str);
65 $this->tpl->setVariable(
"ITEM_ID",
$_GET[
"obj_id"]);
66 $this->tpl->setVariable(
"REF_ID",
$_GET[
"ref_id"]);
67 $this->tpl->setVariable(
"USER_ID", $ilias->account->getId());
68 $this->tpl->setVariable(
"ADAPTER_NAME", $slm_obj->getAPIAdapterName());
75 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.scorm_obj.html",
"Modules/ScormAicc");
76 $this->tpl->setCurrentBlock(
"par_table");
77 $this->tpl->setVariable(
"TXT_OBJECT_TYPE", $this->lng->txt(
"cont_item"));
79 $this->lng->txt(
"cont_import_id"),
80 $this->sc_object->getImportId()
83 $this->lng->txt(
"cont_id_ref"),
84 $this->sc_object->getIdentifierRef()
86 $str_visible = ($this->sc_object->getVisible())
90 $this->lng->txt(
"cont_is_visible"),
94 $this->lng->txt(
"cont_parameters"),
95 $this->sc_object->getParameters()
98 $this->lng->txt(
"cont_sc_title"),
99 $this->sc_object->getTitle()
102 $this->lng->txt(
"cont_prereq_type"),
103 $this->sc_object->getPrereqType()
106 $this->lng->txt(
"cont_prerequisites"),
107 $this->sc_object->getPrerequisites()
110 $this->lng->txt(
"cont_max_time_allowed"),
111 $this->sc_object->getMaxTimeAllowed()
114 $this->lng->txt(
"cont_time_limit_action"),
115 $this->sc_object->getTimeLimitAction()
118 $this->lng->txt(
"cont_data_from_lms"),
119 $this->sc_object->getDataFromLms()
122 $this->lng->txt(
"cont_mastery_score"),
123 $this->sc_object->getMasteryScore()
125 $this->tpl->parseCurrentBlock();
131 $ilias = $DIC[
'ilias'];
135 $func_tpl =
new ilTemplate(
"tpl.scorm_functions.html",
true,
true,
"Modules/ScormAicc");
136 $func_tpl->setVariable(
"PREFIX", $slm_obj->getAPIFunctionsPrefix());
137 $func_tpl->parseCurrentBlock();
139 $this->tpl =
new ilTemplate(
"tpl.scorm_api.html",
true,
true,
"Modules/ScormAicc");
140 $this->tpl->setVariable(
"SCORM_FUNCTIONS", $func_tpl->get());
141 $this->tpl->setVariable(
"ITEM_ID",
$_GET[
"obj_id"]);
142 $this->tpl->setVariable(
"USER_ID", $ilias->account->getId());
143 $this->tpl->setVariable(
"SESSION_ID", session_id());
145 $this->tpl->setVariable(
"CODE_BASE",
"http://" .
$_SERVER[
'SERVER_NAME'] . substr(
$_SERVER[
'PHP_SELF'], 0, strpos(
$_SERVER[
'PHP_SELF'],
"/ilias.php")));
Parent object for SCORM GUI objects.
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
special template class to simplify handling of ITX/PEAR
displayParameter($a_name, $a_value)
GUI class for SCORM Items.
Class ilObjSCORMLearningModule.