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();
50 $id_ref = $this->sc_object->getIdentifierRef();
53 $resource->readByIdRef($id_ref, $this->sc_object->getSLMId());
57 if ($resource->getHref() !=
"") {
58 $param_str = ($this->sc_object->getParameters() !=
"")
59 ?
"?" . $this->sc_object->getParameters()
62 $this->tpl =
new ilTemplate(
"tpl.scorm_content_frameset.html",
true,
true,
"Modules/ScormAicc");
63 $this->tpl->setVariable(
"ITEM_LOCATION", $slm_obj->getDataDirectory() .
"/" . $resource->getHref() . $param_str);
64 $this->tpl->setVariable(
"ITEM_ID",
$_GET[
"obj_id"]);
65 $this->tpl->setVariable(
"REF_ID",
$_GET[
"ref_id"]);
66 $this->tpl->setVariable(
"USER_ID", $ilias->account->getId());
67 $this->tpl->setVariable(
"ADAPTER_NAME", $slm_obj->getAPIAdapterName());
74 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.scorm_obj.html",
"Modules/ScormAicc");
75 $this->tpl->setCurrentBlock(
"par_table");
76 $this->tpl->setVariable(
"TXT_OBJECT_TYPE", $this->lng->txt(
"cont_item"));
78 $this->lng->txt(
"cont_import_id"),
79 $this->sc_object->getImportId()
82 $this->lng->txt(
"cont_id_ref"),
83 $this->sc_object->getIdentifierRef()
85 $str_visible = ($this->sc_object->getVisible())
89 $this->lng->txt(
"cont_is_visible"),
93 $this->lng->txt(
"cont_parameters"),
94 $this->sc_object->getParameters()
97 $this->lng->txt(
"cont_sc_title"),
98 $this->sc_object->getTitle()
101 $this->lng->txt(
"cont_prereq_type"),
102 $this->sc_object->getPrereqType()
105 $this->lng->txt(
"cont_prerequisites"),
106 $this->sc_object->getPrerequisites()
109 $this->lng->txt(
"cont_max_time_allowed"),
110 $this->sc_object->getMaxTimeAllowed()
113 $this->lng->txt(
"cont_time_limit_action"),
114 $this->sc_object->getTimeLimitAction()
117 $this->lng->txt(
"cont_data_from_lms"),
118 $this->sc_object->getDataFromLms()
121 $this->lng->txt(
"cont_mastery_score"),
122 $this->sc_object->getMasteryScore()
124 $this->tpl->parseCurrentBlock();
133 $func_tpl =
new ilTemplate(
"tpl.scorm_functions.html",
true,
true,
"Modules/ScormAicc");
134 $func_tpl->setVariable(
"PREFIX", $slm_obj->getAPIFunctionsPrefix());
135 $func_tpl->parseCurrentBlock();
137 $this->tpl =
new ilTemplate(
"tpl.scorm_api.html",
true,
true,
"Modules/ScormAicc");
138 $this->tpl->setVariable(
"SCORM_FUNCTIONS", $func_tpl->get());
139 $this->tpl->setVariable(
"ITEM_ID",
$_GET[
"obj_id"]);
140 $this->tpl->setVariable(
"USER_ID", $ilias->account->getId());
141 $this->tpl->setVariable(
"SESSION_ID", session_id());
143 $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.