46 {
47 global $ilias;
48
49
50 $id_ref = $this->sc_object->getIdentifierRef();
51 if ($id_ref != "") {
53 $resource->readByIdRef($id_ref, $this->sc_object->getSLMId());
54
56
57 if ($resource->getHref() != "") {
58 $param_str = ($this->sc_object->getParameters() != "")
59 ? "?" . $this->sc_object->getParameters()
60 : "";
61
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());
68 $this->tpl->show();
70 }
71 }
72
73
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()
80 );
82 $this->lng->txt("cont_id_ref"),
83 $this->sc_object->getIdentifierRef()
84 );
85 $str_visible = ($this->sc_object->getVisible())
86 ? "true"
87 : "false";
89 $this->lng->txt("cont_is_visible"),
90 $str_visible
91 );
93 $this->lng->txt("cont_parameters"),
94 $this->sc_object->getParameters()
95 );
97 $this->lng->txt("cont_sc_title"),
98 $this->sc_object->getTitle()
99 );
101 $this->lng->txt("cont_prereq_type"),
102 $this->sc_object->getPrereqType()
103 );
105 $this->lng->txt("cont_prerequisites"),
106 $this->sc_object->getPrerequisites()
107 );
109 $this->lng->txt("cont_max_time_allowed"),
110 $this->sc_object->getMaxTimeAllowed()
111 );
113 $this->lng->txt("cont_time_limit_action"),
114 $this->sc_object->getTimeLimitAction()
115 );
117 $this->lng->txt("cont_data_from_lms"),
118 $this->sc_object->getDataFromLms()
119 );
121 $this->lng->txt("cont_mastery_score"),
122 $this->sc_object->getMasteryScore()
123 );
124 $this->tpl->parseCurrentBlock();
125 }
displayParameter($a_name, $a_value)