36 $this->ctrl->saveParameter($this,
"ref_id");
46 $DIC->globalScreen()->tool()->context()->claim()->repository();
49 $ilAccess = $DIC[
'ilAccess'];
50 $ilNavigationHistory = $DIC[
'ilNavigationHistory'];
53 $GLOBALS[
'DIC'][
"ilLog"]->write(
"bc:" .
$_GET[
"baseClass"] .
"; nc:" . $this->ctrl->getNextClass($this) .
"; cmd:" . $this->ctrl->getCmd());
55 include_once
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php";
57 $lng->loadLanguageModule(
"content");
60 if (!$ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"])) {
61 $this->
ilias->raiseError(
$lng->txt(
"permission_denied"),
$ilias->error_obj->MESSAGE);
65 $ilNavigationHistory->addItem(
67 "ilias.php?baseClass=ilSAHSEditGUI&ref_id=" .
$_GET[
"ref_id"],
71 $next_class = $this->ctrl->getNextClass($this);
72 $cmd = $this->ctrl->getCmd();
80 include_once(
"./Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModuleGUI.php");
85 include_once(
"./Modules/ScormAicc/classes/class.ilObjSCORMLearningModuleGUI.php");
90 if ($next_class ==
"") {
94 $this->ctrl->setCmdClass(
"ilobjscorm2004learningmodulegui");
98 $this->ctrl->setCmdClass(
"ilobjscormlearningmodulegui");
101 $next_class = $this->ctrl->getNextClass($this);
104 switch ($next_class) {
105 case "ilobjscormlearningmodulegui":
106 case "ilobjscorm2004learningmodulegui":
107 $ret = $this->ctrl->forwardCommand($this->slm_gui);
112 if ($cmd ==
"create_xml") {
113 require_once(
"Modules/ScormAicc/classes/class.ilScormAiccExporter.php");
115 $xml = $exporter->getXmlRepresentation(
"sahs",
"5.1.0", $obj_id);
116 } elseif ($cmd ==
"download") {
117 $file =
$_GET[
"file"];
118 $ftmp = explode(
":", $file);
119 $fileName = $ftmp[1];
120 require_once(
"./Services/Export/classes/class.ilExport.php");
123 } elseif ($cmd ==
"confirmDeletion") {
124 require_once(
"./Services/Export/classes/class.ilExport.php");
126 foreach (
$_POST[
"file"] as $file) {
127 $file = explode(
":", $file);
128 $file[1] = basename($file[1]);
129 $exp_file = $exportDir .
"/" . str_replace(
"..",
"", $file[1]);
130 if (@is_file($exp_file)) {
135 $this->ctrl->setCmd(
"export");
141 die(
"ilSAHSEdit: Class $next_class not found.");;
144 $this->tpl->printToStdout();
Class ilObjSCORMLearningModuleGUI.
static _lookupSubType($a_obj_id)
lookup subtype id (scorm, )
static _lookupObjectId($a_ref_id)
lookup object id
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
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)
static deliverFile( $a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
Class ilObjSCORMLearningModuleGUI.