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"]))
50 $this->
ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
54 $ilNavigationHistory->addItem(
$_GET[
"ref_id"],
55 "ilias.php?baseClass=ilSAHSEditGUI&ref_id=".
$_GET[
"ref_id"],
"lm");
57 $next_class = $this->ctrl->getNextClass($this);
58 $cmd = $this->ctrl->getCmd();
67 include_once(
"./Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModuleGUI.php");
72 include_once(
"./Modules/ScormAicc/classes/class.ilObjSCORMLearningModuleGUI.php");
77 include_once(
"./Modules/ScormAicc/classes/class.ilObjAICCLearningModuleGUI.php");
82 include_once(
"./Modules/ScormAicc/classes/class.ilObjHACPLearningModuleGUI.php");
87 if ($next_class ==
"")
93 $this->ctrl->setCmdClass(
"ilobjscorm2004learningmodulegui");
97 $this->ctrl->setCmdClass(
"ilobjscormlearningmodulegui");
101 $this->ctrl->setCmdClass(
"ilobjaicclearningmodulegui");
105 $this->ctrl->setCmdClass(
"ilobjhacplearningmodulegui");
108 $next_class = $this->ctrl->getNextClass($this);
113 case "ilobjscormlearningmodulegui":
114 case "ilobjscorm2004learningmodulegui":
115 $ret = $this->ctrl->forwardCommand($this->slm_gui);
118 case "ilobjaicclearningmodulegui":
119 $ret = $this->ctrl->forwardCommand($this->slm_gui);
122 case "ilobjhacplearningmodulegui":
123 $ret = $this->ctrl->forwardCommand($this->slm_gui);
127 if (
$cmd ==
"create_xml")
129 require_once(
"Modules/ScormAicc/classes/class.ilScormAiccExporter.php");
131 $xml = $exporter->getXmlRepresentation(
"sahs",
"5.1.0",
$_GET[
"ref_id"]);
133 else if (
$cmd ==
"download")
136 $ftmp = explode (
":",
$file);
137 $fileName = $ftmp[1];
138 require_once (
"./Services/Export/classes/class.ilExport.php");
142 else if (
$cmd ==
"confirmDeletion")
145 $this->ctrl->setCmd (
"export");
151 die (
"ilSAHSEdit: Class $next_class not found.");;
Class ilObjSCORMLearningModuleGUI.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
Class ilObjAICCLearningModuleGUI.
static _lookupSubType($a_obj_id)
lookup subtype id (scorm, aicc, hacp)
Class ilObjHACPLearningModuleGUI.
static _lookupObjectId($a_ref_id)
lookup object id
redirection script todo: (a better solution should control the processing via a xml file) ...
static deliverFile($a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
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)
http redirect to other script
Class ilObjSCORMLearningModuleGUI.