36 : void
37 {
40
41
42 $id_ref = $this->sc_object->getIdentifierRef();
43 if ($id_ref != "") {
45 $resource->readByIdRef($id_ref, $this->sc_object->getSLMId());
46
47 $refId =
$DIC->http()->wrapper()->query()->retrieve(
'ref_id',
$DIC->refinery()->kindlyTo()->int());
48 $objId =
$DIC->http()->wrapper()->query()->retrieve(
'obj_id',
$DIC->refinery()->kindlyTo()->int());
49
51
52 if ($resource->getHref() != "") {
53 $param_str = ($this->sc_object->getParameters() != "")
54 ? "?" . $this->sc_object->getParameters()
55 : "";
56
57 $this->tpl =
new ilGlobalTemplate(
"tpl.scorm_content_frameset.html",
true,
true,
"components/ILIAS/ScormAicc");
58 $this->tpl->setVariable("ITEM_LOCATION", $slm_obj->getDataDirectory() . "/" . $resource->getHref() . $param_str);
59 $this->tpl->setVariable(
"ITEM_ID",
$objId);
60 $this->tpl->setVariable(
"REF_ID",
$refId);
61 $this->tpl->setVariable("USER_ID", $usr->getId());
62 $this->tpl->setVariable("ADAPTER_NAME", $slm_obj->getAPIAdapterName());
63 $this->tpl->printToStdout();
65 }
66 }
67
68
69 $this->tpl->addBlockFile("CONTENT", "content", "tpl.scorm_obj.html", "components/ILIAS/ScormAicc");
70 $this->tpl->setCurrentBlock("par_table");
71 $this->tpl->setVariable(
"TXT_OBJECT_TYPE", $this->
lng->txt(
"cont_item"));
73 $this->
lng->txt(
"cont_import_id"),
74 $this->sc_object->getImportId()
75 );
77 $this->
lng->txt(
"cont_id_ref"),
78 $this->sc_object->getIdentifierRef()
79 );
80 $str_visible = ($this->sc_object->getVisible())
81 ? "true"
82 : "false";
84 $this->
lng->txt(
"cont_is_visible"),
85 $str_visible
86 );
88 $this->
lng->txt(
"cont_parameters"),
89 $this->sc_object->getParameters()
90 );
92 $this->
lng->txt(
"cont_sc_title"),
93 $this->sc_object->getTitle()
94 );
96 $this->
lng->txt(
"cont_prereq_type"),
97 $this->sc_object->getPrereqType()
98 );
100 $this->
lng->txt(
"cont_prerequisites"),
101 $this->sc_object->getPrerequisites()
102 );
104 $this->
lng->txt(
"cont_max_time_allowed"),
105 $this->sc_object->getMaxTimeAllowed()
106 );
108 $this->
lng->txt(
"cont_time_limit_action"),
109 $this->sc_object->getTimeLimitAction()
110 );
112 $this->
lng->txt(
"cont_data_from_lms"),
113 $this->sc_object->getDataFromLms()
114 );
116 $this->
lng->txt(
"cont_mastery_score"),
117 $this->sc_object->getMasteryScore()
118 );
119 $this->tpl->parseCurrentBlock();
120 }
special template class to simplify handling of ITX/PEAR
Class ilObjSCORMLearningModule.
displayParameter(string $a_name, string $a_value)