19 declare(strict_types=1);
34 $files = &$this->sc_object->getFiles();
40 public function view(): void
43 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.scorm_obj.html",
"components/ILIAS/ScormAicc");
45 $this->
lng->txt(
"cont_import_id"),
46 $this->sc_object->getImportId()
49 $this->
lng->txt(
"cont_resource_type"),
50 $this->sc_object->getResourceType()
53 $this->
lng->txt(
"cont_scorm_type"),
54 $this->sc_object->getScormType()
57 $this->
lng->txt(
"cont_href"),
58 $this->sc_object->getHref()
61 $this->
lng->txt(
"cont_xml_base"),
62 $this->sc_object->getXmlBase()
64 $this->tpl->setCurrentBlock(
"partable");
65 $this->tpl->setVariable(
"TXT_OBJECT_TYPE", $this->
lng->txt(
"cont_resource"));
66 $this->tpl->parseCurrentBlock();
69 $files = &$this->sc_object->getFiles();
70 foreach ($files as $value) {
72 $this->
lng->txt(
"cont_href"),
76 $this->tpl->setCurrentBlock(
"partable");
77 $this->tpl->setVariable(
"TXT_OBJECT_TYPE", $this->
lng->txt(
"cont_files"));
78 $this->tpl->parseCurrentBlock();
81 $deps = &$this->sc_object->getDependencies();
82 foreach ($deps as $value) {
84 $this->
lng->txt(
"cont_id_ref"),
85 $value->getIdentifierRef()
88 $this->tpl->setCurrentBlock(
"partable");
89 $this->tpl->setVariable(
"TXT_OBJECT_TYPE", $this->
lng->txt(
"cont_dependencies"));
90 $this->tpl->parseCurrentBlock();
Parent object for SCORM GUI objects.
special template class to simplify handling of ITX/PEAR
displayParameter(string $a_name, string $a_value)
GUI class for SCORM Resource element.
__construct(Container $dic, ilPlugin $plugin)