32 $this->ctrl->saveParameter($this,
"ref_id");
41 $GLOBALS[
"ilLog"]->write(
"bc:" .
$_GET[
"baseClass"] .
"; nc:" . $this->ctrl->getNextClass($this) .
"; cmd:" . $this->ctrl->getCmd());
43 include_once
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php";
45 $lng->loadLanguageModule(
"content");
48 if (!$ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"])) {
49 $this->
ilias->raiseError($lng->txt(
"permission_denied"), $ilias->error_obj->MESSAGE);
53 $ilNavigationHistory->addItem(
55 "ilias.php?baseClass=ilSAHSEditGUI&ref_id=" .
$_GET[
"ref_id"],
59 $next_class = $this->ctrl->getNextClass($this);
60 $cmd = $this->ctrl->getCmd();
68 include_once(
"./Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModuleGUI.php");
73 include_once(
"./Modules/ScormAicc/classes/class.ilObjSCORMLearningModuleGUI.php");
78 if ($next_class ==
"") {
82 $this->ctrl->setCmdClass(
"ilobjscorm2004learningmodulegui");
86 $this->ctrl->setCmdClass(
"ilobjscormlearningmodulegui");
89 $next_class = $this->ctrl->getNextClass($this);
92 switch ($next_class) {
93 case "ilobjscormlearningmodulegui":
94 case "ilobjscorm2004learningmodulegui":
95 $ret = $this->ctrl->forwardCommand($this->slm_gui);
100 if ($cmd ==
"create_xml") {
101 require_once(
"Modules/ScormAicc/classes/class.ilScormAiccExporter.php");
104 } elseif ($cmd ==
"download") {
106 $ftmp = explode(
":",
$file);
107 $fileName = $ftmp[1];
108 require_once(
"./Services/Export/classes/class.ilExport.php");
111 } elseif ($cmd ==
"confirmDeletion") {
113 $this->ctrl->setCmd(
"export");
119 die(
"ilSAHSEdit: Class $next_class not found.");;
Class ilObjSCORMLearningModuleGUI.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static _lookupSubType($a_obj_id)
lookup subtype id (scorm, )
static _lookupObjectId($a_ref_id)
lookup object id
redirection script todo: (a better solution should control the processing via a xml file) ...
Class ilSAHSPresentationGUI.
static _getExportDirectory($a_obj_id, $a_type="xml", $a_obj_type="", $a_entity="")
Get export directory for an repository object.
executeCommand()
execute command
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
static redirect($a_script)
static deliverFile( $a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
Class ilObjSCORMLearningModuleGUI.