69 $DIC->globalScreen()->tool()->context()->claim()->repository();
71 $lng = $DIC->language();
72 $ilAccess = $DIC->access();
73 $ilNavigationHistory = $DIC[
'ilNavigationHistory'];
74 $ilCtrl = $DIC->ctrl();
77 $ilLog->debug(
"bc:" . $DIC->http()->wrapper()->query()->retrieve(
'baseClass', $DIC->refinery()->kindlyTo()->string()) .
"; nc:" . $this->
ctrl->getNextClass($this) .
"; cmd:" . $this->
ctrl->getCmd());
82 if (!$ilAccess->checkAccess(
"write",
"", $this->refId)) {
87 $ilNavigationHistory->addItem(
89 "ilias.php?baseClass=ilSAHSEditGUI&ref_id=" . $this->refId,
93 $next_class = $this->
ctrl->getNextClass($this);
94 $cmd = $this->
ctrl->getCmd();
111 if ($next_class ==
"") {
115 $this->
ctrl->setCmdClass(
"ilobjscorm2004learningmodulegui");
119 $this->
ctrl->setCmdClass(
"ilobjscormlearningmodulegui");
122 $next_class = $this->
ctrl->getNextClass($this);
125 switch ($next_class) {
126 case "ilobjscormlearningmodulegui":
127 case "ilobjscorm2004learningmodulegui":
128 $ret = $this->
ctrl->forwardCommand($this->slm_gui);
133 if ($cmd ===
"create_xml") {
135 $xml = $exporter->getXmlRepresentation(
"sahs",
"5.1.0", (
string) $obj_id);
136 } elseif ($cmd ===
"download") {
137 $file = $this->wrapper->query()->retrieve(
'file', $this->
refinery->kindlyTo()->string());
138 $ftmp = explode(
":", $file);
139 $fileName = (string) $ftmp[1];
142 } elseif ($cmd ===
"confirmDeletion") {
145 $files = $this->wrapper->post()->retrieve(
'file', $this->
refinery->kindlyTo()->listOf($this->
refinery->kindlyTo()->string()));
146 foreach ($files as $file) {
147 $file = explode(
":", $file);
148 $file[1] = basename($file[1]);
149 $exp_file = $exportDir .
"/" . str_replace(
"..",
"", $file[1]);
150 if (@is_file($exp_file)) {
155 $this->
ctrl->setCmd(
"export");
156 ilUtil::redirect(
"ilias.php?baseClass=ilSAHSEditGUI&cmd=export&ref_id=" . $this->refId);
161 die(
"ilSAHSEdit: Class $next_class not found.");
164 $this->tpl->printToStdout();
Class ilObjSCORMLearningModuleGUI.
static getLogger(string $a_component_id)
Get component logger.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
loadLanguageModule(string $a_module)
Load language module.
static _getExportDirectory(int $a_obj_id, string $a_type="xml", string $a_obj_type="", string $a_entity="")
Get export directory for an repository object.
static _lookupSubType(int $a_obj_id)
lookup subtype id (scorm, )
static deliverFileLegacy(string $a_file, ?string $a_filename=null, ?string $a_mime=null, ?bool $isInline=false, ?bool $removeAfterDelivery=false, ?bool $a_exit_after=true)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupObjectId(int $ref_id)
static redirect(string $a_script)
Class ilObjSCORMLearningModuleGUI.