36 $this->ctrl->saveParameter($this,
"ref_id");
46 $ilAccess = $DIC[
'ilAccess'];
47 $ilNavigationHistory = $DIC[
'ilNavigationHistory'];
50 $GLOBALS[
'DIC'][
"ilLog"]->write(
"bc:" .
$_GET[
"baseClass"] .
"; nc:" . $this->ctrl->getNextClass($this) .
"; cmd:" . $this->ctrl->getCmd());
52 include_once
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php";
54 $lng->loadLanguageModule(
"content");
57 if (!$ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"])) {
58 $this->
ilias->raiseError(
$lng->txt(
"permission_denied"),
$ilias->error_obj->MESSAGE);
62 $ilNavigationHistory->addItem(
64 "ilias.php?baseClass=ilSAHSEditGUI&ref_id=" .
$_GET[
"ref_id"],
68 $next_class = $this->ctrl->getNextClass($this);
69 $cmd = $this->ctrl->getCmd();
77 include_once(
"./Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModuleGUI.php");
82 include_once(
"./Modules/ScormAicc/classes/class.ilObjSCORMLearningModuleGUI.php");
87 if ($next_class ==
"") {
91 $this->ctrl->setCmdClass(
"ilobjscorm2004learningmodulegui");
95 $this->ctrl->setCmdClass(
"ilobjscormlearningmodulegui");
98 $next_class = $this->ctrl->getNextClass($this);
101 switch ($next_class) {
102 case "ilobjscormlearningmodulegui":
103 case "ilobjscorm2004learningmodulegui":
104 $ret = $this->ctrl->forwardCommand($this->slm_gui);
109 if ($cmd ==
"create_xml") {
110 require_once(
"Modules/ScormAicc/classes/class.ilScormAiccExporter.php");
113 } elseif ($cmd ==
"download") {
114 $file =
$_GET[
"file"];
115 $ftmp = explode(
":", $file);
116 $fileName = $ftmp[1];
117 require_once(
"./Services/Export/classes/class.ilExport.php");
120 } elseif ($cmd ==
"confirmDeletion") {
122 $this->ctrl->setCmd(
"export");
128 die(
"ilSAHSEdit: Class $next_class not found.");;
Class ilObjSCORMLearningModuleGUI.
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
static redirect($a_script)
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
static deliverFile( $a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
Class ilObjSCORMLearningModuleGUI.