5 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004NodeGUI.php");
6 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Sco.php");
7 require_once(
"./Modules/Scorm2004/classes/seq_editor/class.ilSCORM2004Objective.php");
35 $ilCtrl->saveParameter($this,
"obj_id");
38 parent::__construct($a_slm_obj, $a_node_id);
56 $tpl->getStandardTemplate();
58 $next_class = $ilCtrl->getNextClass($this);
59 $cmd = $ilCtrl->getCmd();
65 switch(
$_GET[
"notes_mode"])
68 $ilTabs->setTabActive(
"sahs_organization");
73 case 'ilobjectmetadatagui':
76 include_once
'Services/Object/classes/class.ilObjectMetaDataGUI.php';
78 $this->node_object->getType(), $this->node_object->getId());
79 $md_gui->
addMDObserver($this->node_object,
'MDUpdateListener',
'General');
80 $ilCtrl->forwardCommand($md_gui);
83 case 'ilscorm2004pagegui':
84 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004PageGUI.php");
88 $ilCtrl->forwardCommand($page_obj);
92 $cmd = $ilCtrl->getCmd(
"showOrganization");
107 $ilTabs->setTabActive(
"sahs_desc_objectives");
109 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
113 $cb =
new ilCheckboxInputGUI($lng->txt(
"sahs_hide_objectives_page"),
"hide_objectives_page");
114 $cb->
setInfo($lng->txt(
"sahs_hide_objectives_page_info"));
116 $cb->setChecked($this->node_object->getHideObjectivePage());
122 $ta->setInfo($lng->txt(
"sahs_list_info"));
123 $form->setTitle($lng->txt(
"properties"));
125 include_once
"./Services/MetaData/classes/class.ilMD.php";
126 $meta =
new ilMD($this->node_object->getSLMId(), $this->node_object->getId(), $this->node_object->getType());
127 $desc_ids = $meta->
getGeneral()->getDescriptionIds();
128 $ta->setValue($meta->getGeneral()->getDescription($desc_ids[0])->getDescription());
132 $sh->setTitle($lng->txt(
"sahs_learning_objectives"));
135 $objectives = $this->node_object->getObjectives();
137 foreach ($objectives as $ob)
140 $mappings = $ob->getMappings();
142 foreach($mappings as $map)
144 $mapinfo .= $map->getTargetObjectiveID();
147 if ($mapinfo == null)
153 $mapinfo =
"global to ".$mapinfo;
158 "obj_".$ob->getId());
161 $ta->setInfo($lng->txt(
"sahs_list_info"));
163 $ta->setValue($ob->getObjectiveID());
165 $form->setFormAction($ilCtrl->getFormAction($this));
166 $form->addCommandButton(
"updateProperties",
168 $tpl->setContent($form->getHTML());
179 foreach (
$_POST as $key=>$value) {
180 if(preg_match(
'/(obj_)(.+)/', $key,$match)){
181 $objective =
new ilScorm2004Objective($this->node_object->getId(),$match[2]);
187 $objective->updateObjective();
193 $this->node_object->update();
195 include_once
"./Services/MetaData/classes/class.ilMD.php";
196 $meta =
new ilMD($this->node_object->getSLMId(), $this->node_object->getId(), $this->node_object->getType());
198 $desc_ids = $gen->getDescriptionIds();
199 $des = $gen->getDescription($desc_ids[0]);
222 include_once
"./Services/Table/classes/class.ilTableGUI.php";
223 include_once
"./Modules/Scorm2004/classes/class.ilSCORM2004Page.php";
224 include_once(
"./Modules/TestQuestionPool/classes/class.assQuestion.php");
225 include_once(
"./Services/COPage/classes/class.ilPCQuestionGUI.php");
228 $tpl->addBlockfile(
"ADM_CONTENT",
"adm_content",
"tpl.table.html");
229 $tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.scormeditor_sco_question.html",
"Modules/Scorm2004");
232 $tbl->setTitle(
"Questions for ".$this->node_object->getTitle());
233 $tbl->setHeaderNames(
array(
"Question",
"Page"));
234 $cols =
array(
"question",
"page");
235 $tbl->setHeaderVars($cols, $header_params);
236 $tbl->setColumnWidth(
array(
"50%",
"50%"));
237 $tbl->disable(
"sort");
238 $tbl->disable(
"footer");
240 $tree =
new ilTree($this->slm_object->getId());
241 $tree->
setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
242 $tree->setTreeTablePK(
"slm_id");
244 foreach($tree->getSubTree($tree->getNodeData($this->node_object->getId()),
true,
'page') as $page)
247 include_once(
"./Services/COPage/classes/class.ilPCQuestion.php");
249 if (count($qids) > 0)
252 foreach ($qids as $qid)
254 $tpl->setCurrentBlock(
"tbl_content");
255 $tpl->setVariable(
"TXT_PAGE_TITLE", $page[
"title"]);
256 $ilCtrl->setParameterByClass(
"ilscorm2004pagenodegui",
"obj_id", $page[
"obj_id"]);
257 $tpl->setVariable(
"HREF_EDIT_PAGE", $ilCtrl->getLinkTargetByClass(
"ilscorm2004pagenodegui",
"edit"));
260 $tpl->setVariable(
"TXT_QUESTION", $qtitle);
261 $ilCtrl->setParameterByClass(
"ilscorm2004pagenodegui",
"obj_id", $page[
"obj_id"]);
265 $tpl->parseCurrentBlock();
275 $slm_tree =
new ilTree($this->node_object->getId(),$this->slm_object->getId());
277 $slm_tree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
288 $ilHelp->setScreenIdComponent(
"sahsed");
291 $ilTabs->addTarget(
"sahs_organization",
292 $ilCtrl->getLinkTarget($this,
'showOrganization'),
293 "showOrganization", get_class($this));
297 $ilTabs->addTarget(
"sahs_desc_objectives",
298 $ilCtrl->getLinkTarget($this,
'showProperties'),
299 "showProperties", get_class($this));
302 $ilTabs->addTarget(
"sahs_questions",
303 $ilCtrl->getLinkTarget($this,
'sahs_questions'),
304 "sahs_questions", get_class($this));
307 $ilTabs->addTarget(
"cont_files",
308 $ilCtrl->getLinkTarget($this,
'sco_resources'),
309 "sco_resources", get_class($this));
312 include_once
"Services/Object/classes/class.ilObjectMetaDataGUI.php";
314 $this->node_object->getType(), $this->node_object->getId());
315 $mdtab = $mdgui->
getTab();
318 $ilTabs->addTarget(
"meta_data",
320 "",
"ilmdeditorgui");
324 $ilTabs->addTarget(
"export",
325 $ilCtrl->getLinkTarget($this,
"showExportList"),
"showExportList",
329 $ilTabs->addTarget(
"import",
330 $ilCtrl->getLinkTarget($this,
"import"),
"import",
334 $ilTabs->addNonTabbedLink(
"preview",
335 $lng->txt(
"cont_preview"),
336 $ilCtrl->getLinkTarget($this,
'sco_preview'),
"_blank");
340 $lng->txt(
"sahs_unit").
": ".$this->node_object->getTitle());
351 $this->slm_object->executeDragDrop(
$_POST[
"il_hform_source_id"],
$_POST[
"il_hform_target_id"],
353 $ilCtrl->redirect($this,
"showOrganization");
364 $tpl =
new ilTemplate(
"tpl.main.html",
true,
true);
365 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
367 $tpl->setBodyClass(
"");
368 $tpl->setCurrentBlock(
"ContentStyle");
369 $tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
371 $tpl->parseCurrentBlock();
374 include_once(
"./Services/jQuery/classes/class.iljQueryUtil.php");
377 $tpl->addJavaScript(
"./Modules/Scorm2004/scripts/questions/pure.js");
378 $tpl->addJavaScript(
"./Modules/Scorm2004/scripts/pager.js");
380 $tpl->addOnLoadCode(
"pager.Init();");
382 $tree =
new ilTree($this->slm_object->getId());
383 $tree->
setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
384 $tree->setTreeTablePK(
"slm_id");
385 include_once
"./Modules/Scorm2004/classes/class.ilSCORM2004PageGUI.php";
386 include_once
"./Services/MetaData/classes/class.ilMD.php";
388 $meta =
new ilMD($this->node_object->getSLMId(), $this->node_object->getId(), $this->node_object->getType());
389 $desc_ids = $meta->
getGeneral()->getDescriptionIds();
390 $sco_description = $meta->getGeneral()->getDescription($desc_ids[0])->getDescription();
393 $sco_tpl =
new ilTemplate(
"tpl.sco.html",
true,
true,
"Modules/Scorm2004");
401 $this->node_object->getType());
405 $terms = $this->node_object->getGlossaryTermIds();
408 foreach($tree->getSubTree($tree->getNodeData($this->node_object->getId()),
true,
'page') as $page)
411 0, $this->slm_object->getId());
414 $page_obj->setStyleId($this->slm_object->getStyleSheetId());
415 if (count($terms) > 1)
417 $page_obj->setGlossaryOverviewInfo(
420 $sco_tpl->setCurrentBlock(
"page_preview");
421 $html = $ilCtrl->getHTML($page_obj);
423 $sco_tpl->setVariable(
"PAGE_PRV",
$html);
424 $sco_tpl->parseCurrentBlock();
433 require_once
'./Modules/Scorm2004/classes/class.ilQuestionExporter.php';
434 $output = preg_replace_callback(
"/{{{{{(Question;)(il__qst_[0-9]+)}}}}}/",
array(get_class($this),
'insertQuestion'),
$output);
437 $output =
"<script>var ScormApi=null;".ilQuestionExporter::questionsJS().
"</script>".
$output;
443 $tpl->addJavaScript(
"./Modules/Scorm2004/scripts/questions/question_handling.js");
444 $tpl->addCss(
"./Modules/Scorm2004/templates/default/question_handling.css");
446 include_once(
"./Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php");
450 $output .=
'<script type="text/javascript" src="./Modules/Scorm2004/scripts/questions/question_handling.js"></script>';
451 $tpl->setVariable(
"CONTENT",
$output);
460 return $q_exporter->exportQuestion($matches[2]);
468 switch (
$_POST[
'select_export'])
470 case "exportScorm12":
471 case "exportScorm2004_3rd":
472 case "exportScorm2004_4th":
475 $this->ctrl->redirect($this,
$_POST[
'select_export']);
478 $this->ctrl->redirect($this,
'showExportList');
491 $template =
new ilTemplate(
"tpl.scorm2004_export_buttons.html",
true,
true,
'Modules/Scorm2004');
494 "exportScorm2004_3rd" => $lng->txt(
"scorm_create_export_file_scrom2004"),
495 "exportScorm2004_4th" => $lng->txt(
"scorm_create_export_file_scrom2004_4th"),
496 "exportScorm12" => $lng->txt(
"scorm_create_export_file_scrom12"),
497 "exportPDF" => $lng->txt(
"scorm_create_export_file_pdf"),
498 "exportHTML" => $lng->txt(
"scorm_create_export_file_html")
500 foreach ($buttons as $value =>
$text)
502 $template->setCurrentBlock(
'option');
503 $template->setVariable(
'OPTION_VALUE', $value);
505 $template->parseCurrentBlock();
507 $template->setVariable(
'EXPORT_TITLE', $lng->txt(
'export'));
508 $template->setVariable(
'EXPORT_LABEL', $lng->txt(
'type'));
509 $template->setVariable(
'FORMACTION', $ilCtrl->getFormAction($this,
'selectExport'));
511 $export_files = $this->node_object->getExportFiles();
513 include_once
"./Modules/Scorm2004/classes/class.ilSCORM2004ExportTableGUI.php";
516 foreach ($export_files as $exp_file)
518 $filetype = $exp_file[
'type'];
522 $file_arr = explode(
"__", $exp_file[
"file"]);
525 $table_gui->setData(
$data);
526 $tpl->setVariable(
'ADM_CONTENT', $template->get() .
"\n" . $table_gui->getHTML());
534 $export->buildExportFile();
535 $this->ctrl->redirect($this,
"showExportList");
542 $export->buildExportFile();
543 $this->ctrl->redirect($this,
"showExportList");
549 $export->buildExportFile();
550 $this->ctrl->redirect($this,
"showExportList");
556 $export->buildExportFile();
557 $this->ctrl->redirect($this,
"showExportList");
563 $export->buildExportFile();
564 $this->ctrl->redirect($this,
"showExportList");
570 $export->buildExportFile();
571 $this->ctrl->redirect($this,
"showExportList");
577 $export =
new ilSCORM2004Export($this->node_object);
578 $export_dir = $export->getExportDirectoryForType(
$_GET[
'type']);
589 if(!isset(
$_POST[
"file"]))
592 $this->ctrl->redirect($this,
"showExportList");
596 $export_files = $this->node_object->getExportFiles();
598 include_once
"./Modules/Scorm2004/classes/class.ilSCORM2004ExportTableGUI.php";
601 foreach ($export_files as $exp_file)
603 foreach (
$_POST[
'file'] as $delete_file)
605 if (strcmp($delete_file, $exp_file[
'file']) == 0)
610 $file_arr = explode(
"__", $exp_file[
"file"]);
615 $table_gui->setData(
$data);
616 $tpl->setVariable(
'ADM_CONTENT', $table_gui->getHTML());
625 $this->ctrl->redirect($this,
"showExportList");
635 include_once
"./Services/Utilities/classes/class.ilUtil.php";
636 $export =
new ilSCORM2004Export($this->node_object);
639 $export_dir = $export->getExportDirectoryForType(
$_POST[
'type'][$idx]);
640 $exp_file = $export_dir.
"/".
$file;
641 if (@is_file($exp_file))
647 $this->ctrl->redirect($this,
"showExportList");
652 $export_files =
array();
654 require_once
"./Modules/Scorm2004/classes/class.ilSCORM2004Page.php";
655 include_once
"./Services/MediaObjects/classes/class.ilObjMediaObject.php";
656 include_once
"./Modules/File/classes/class.ilObjFile.php";
657 $tree =
new ilTree($this->slm_object->getId());
658 $tree->
setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
659 $tree->setTreeTablePK(
"slm_id");
660 foreach($tree->getSubTree($tree->getNodeData($this->node_object->getId()),
true,
'page') as $page)
663 $page_obj->buildDom();
664 $mob_ids = $page_obj->collectMediaObjects(
false);
665 foreach($mob_ids as $mob_id)
672 $export_files[$i][
"date"] = $media_obj->getCreateDate();
673 $export_files[$i][
"size"] = @filesize(
$path);
674 $export_files[$i][
"file"] = $media_obj->getTitle();
675 $export_files[$i][
"type"] = $media_obj->getDescription();
676 $export_files[$i][
"path"] =
$path;
677 $this->ctrl->setParameter($this,
"resource",
679 $export_files[$i][
"link"] = $this->ctrl->getLinkTarget($this,
"downloadResource");
683 include_once(
"./Services/COPage/classes/class.ilPCFileList.php");
685 foreach($file_ids as $file_id)
687 $file_obj =
new ilObjFile($file_id,
false);
688 $export_files[$i][
"date"] = $file_obj->getCreateDate();
689 $export_files[$i][
"size"] = $file_obj->getFileSize();
690 $export_files[$i][
"file"] = $file_obj->getFileName();
691 $export_files[$i][
"type"] = $file_obj->getFileType();
692 $export_files[$i][
"file_id"] = $file_id;
693 $this->ctrl->setParameter($this,
"file_id",$file_id);
694 $export_files[$i][
"link"] = $this->ctrl->getLinkTarget($this,
"downloadFile",
"");
700 return $export_files;
714 require_once(
"./Services/Table/classes/class.ilTableGUI.php");
718 $tpl->addBlockfile(
"ADM_CONTENT",
"adm_content",
"tpl.table.html");
721 $tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.download_file_row.html",
"Modules/LearningModule");
725 $tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
727 $tbl->setTitle($lng->txt(
"cont_files"));
729 $tbl->setHeaderNames(
array($lng->txt(
"cont_format"),
730 $lng->txt(
"cont_file"),
731 $lng->txt(
"size"), $lng->txt(
"date"),
734 $cols =
array(
"format",
"file",
"size",
"date",
"download");
735 $header_params =
array(
"ref_id" =>
$_GET[
"ref_id"],
"obj_id" =>
$_GET[
"obj_id"],
736 "cmd" =>
"sco_resources",
"cmdClass" => strtolower(get_class($this)),
737 "cmdNode" =>
$_GET[
"cmdNode"],
"baseClass" =>
$_GET[
"baseClass"]);
738 $tbl->setHeaderVars($cols, $header_params);
739 $tbl->setColumnWidth(
array(
"10%",
"30%",
"20%",
"20%",
"20%"));
740 $tbl->disable(
"sort");
743 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
746 $tbl->setMaxCount($this->maxcount);
749 $tbl->setMaxCount(count($export_files));
752 $tbl->setFooter(
"tblfooter",$lng->txt(
"previous"),$lng->txt(
"next"));
755 $tbl->setMaxCount(count($export_files));
756 $export_files = array_slice($export_files,
$_GET[
"offset"],
$_GET[
"limit"]);
759 if(count($export_files) > 0)
762 foreach($export_files as $exp_file)
771 $tpl->setCurrentBlock(
"tbl_content");
772 $tpl->setVariable(
"TXT_FILENAME", $exp_file[
"file"]);
775 $tpl->setVariable(
"CSS_ROW", $css_row);
777 $tpl->setVariable(
"TXT_SIZE", $exp_file[
"size"]);
778 $tpl->setVariable(
"TXT_FORMAT", $exp_file[
"type"]);
780 $tpl->setVariable(
"TXT_DATE", $exp_file[
"date"]);
782 if($exp_file[
"size"] > 0)
784 $tpl->setVariable(
"TXT_DOWNLOAD", $lng->txt(
"download"));
785 $ilCtrl->setParameter($this,
"resource", rawurlencode($exp_file[
"path"]));
786 $ilCtrl->setParameter($this,
"file_id", rawurlencode($exp_file[
"file_id"]));
787 $tpl->setVariable(
"LINK_DOWNLOAD",
788 $ilCtrl->getLinkTarget($this,
"downloadResource"));
792 $tpl->setVariable(
"TXT_DOWNLOAD", $lng->txt(
"show"));
793 $tpl->setVariable(
"LINK_TARGET",
" target=\"_blank\"");
794 $tpl->setVariable(
"LINK_DOWNLOAD", $exp_file[
"path"]);
797 $tpl->parseCurrentBlock();
816 if (
$_GET[
"file_id"] > 0)
822 foreach ($export_files as $f)
824 if (is_object(
$file))
826 if ($f[
"file"] ==
$file->getFileName())
833 if ($f[
"path"] ==
$_GET[
"resource"])
835 if (is_file($f[
"path"]))
848 require_once(
"./Modules/File/classes/class.ilObjFile.php");
850 $fileObj->sendFile();
861 $tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.scormeditor_sco_import.html",
"Modules/Scorm2004");
864 $tpl->setVariable(
"ALT_IMG", $lng->txt(
"obj_sahs"));
866 $tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
868 $tpl->setVariable(
"BTN_NAME",
"importSave");
873 $tpl->setVariable(
"TXT_UPLOAD", $lng->txt(
"upload"));
874 $tpl->setVariable(
"TXT_CANCEL", $lng->txt(
"cancel"));
875 $tpl->setVariable(
"TXT_IMPORT_SCO", $lng->txt(
"import_sco_object"));
876 $tpl->setVariable(
"TXT_SELECT_FILE", $lng->txt(
"select_file"));
877 $tpl->setVariable(
"TXT_VALIDATE_FILE", $lng->txt(
"cont_validate_file"));
880 $umf=get_cfg_var(
"upload_max_filesize");
882 $pms=get_cfg_var(
"post_max_size");
885 $multiplier_a=
array(
"K"=>1024,
"M"=>1024*1024,
"G"=>1024*1024*1024);
887 $umf_parts=preg_split(
"/(\d+)([K|G|M])/", $umf, -1, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY);
888 $pms_parts=preg_split(
"/(\d+)([K|G|M])/", $pms, -1, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY);
890 if (count($umf_parts) == 2) { $umf = $umf_parts[0]*$multiplier_a[$umf_parts[1]]; }
891 if (count($pms_parts) == 2) { $pms = $pms_parts[0]*$multiplier_a[$pms_parts[1]]; }
894 $max_filesize=min($umf, $pms);
896 if (!$max_filesize) $max_filesize=max($umf, $pms);
899 $max_filesize=sprintf(
"%.1f MB",$max_filesize/1024/1024);
902 $tpl->setVariable(
"TXT_FILE_INFO", $lng->txt(
"file_notice").
" $max_filesize");
907 global $_FILES, $rbacsystem;
911 $source = $_FILES[
"scormfile"][
"tmp_name"];
912 if (($source ==
'none') || (!$source))
914 $ilias->raiseError(
"No file selected!",$ilias->error_obj->MESSAGE);
917 switch ($_FILES[
"scormfile"][
"error"])
919 case UPLOAD_ERR_INI_SIZE:
920 $ilias->raiseError($lng->txt(
"err_max_file_size_exceeds"),$ilias->error_obj->MESSAGE);
923 case UPLOAD_ERR_FORM_SIZE:
924 $ilias->raiseError($lng->txt(
"err_max_file_size_exceeds"),$ilias->error_obj->MESSAGE);
927 case UPLOAD_ERR_PARTIAL:
928 $ilias->raiseError($lng->txt(
"err_partial_file_upload"),$ilias->error_obj->MESSAGE);
931 case UPLOAD_ERR_NO_FILE:
932 $ilias->raiseError($lng->txt(
"err_no_file_uploaded"),$ilias->error_obj->MESSAGE);
936 $file = pathinfo($_FILES[
"scormfile"][
"name"]);
937 $name = substr(
$file[
"basename"], 0, strlen(
$file[
"basename"]) - strlen(
$file[
"extension"]) - 1);
938 $file_path = $this->slm_object->getDataDirectory().
"/".$this->node_object->getId().
"/".$_FILES[
"scormfile"][
"name"];
944 include_once (
"./Modules/Scorm2004/classes/ilSCORM13Package.php");
946 $newPack->il_importSco($this->slm_object->getId(),$this->node_object->getId(),$this->slm_object->getDataDirectory().
"/".$this->node_object->getId());
948 $this->ctrl->redirect($this,
"showOrganization");
956 $this->ctrl->redirect($this,
"showOrganization");
980 $tpl =
new ilTemplate(
"tpl.sco_glossary_overview.html",
true,
true,
"Modules/Scorm2004");
982 $terms = $a_sco->getGlossaryTermIds();
984 foreach ($terms as $k =>
$t)
986 $tpl->setCurrentBlock(
"link");
987 $tpl->setVariable(
"TXT_LINK",
$t);
988 $tpl->setVariable(
"ID_LINK",
"glo_ov_t".$k);
989 $tpl->parseCurrentBlock();
993 $tpl->setVariable(
"TXT_SCO_GLOSSARY", $lng->txtlng(
"content",
"cont_sco_glossary", $lk));
994 $tpl->setVariable(
"TXT_CLOSE", $lng->txtlng(
"common",
"close", $lk));
996 if (count($terms) > 1)
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
__construct($a_slm_obj, $a_node_id=0)
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
static initjQueryUI()
Init jQuery UI (see included_components.txt for included components)
Scorm 2004 Question Exporter.
static _getQuestionIdsForPage($a_parent_type, $a_page_id, $a_lang="-")
Get all questions of a page.
proceedDragDrop()
Perform drag and drop action.
Class ilSCORM2004NodeGUI.
static _exists($a_id, $a_reference=false, $a_type=null)
checks if an object exists in object_data
static getStyleSheetLocation($mode="output", $a_css_name="", $a_css_location="")
get full style sheet file name (path inclusive) of current user
static getGloOverviewOv($a_sco)
des
static unzip($a_file, $overwrite=false, $a_flat=false)
unzip file
static renderMetaPage($a_tpl, $a_sco, $a_asset_type="", $mode="")
Render meta page (description/objectives at beginning)
selectExport()
Select the export type of the SCORM 2004 module.
setLocator()
Set Locator Items.
static getGlossaryOverviewId()
Get sco glossary overlay id.
cancelDeleteExportFile()
cancel deletion of export files
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
if(!is_dir( $entity_dir)) exit("Fatal Error ([A-Za-z0-9]+)\+" &#(? foreach( $entity_files as $file) $output
static insertQuestion($matches)
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static moveUploadedFile($a_file, $a_name, $a_target, $a_raise_errors=true, $a_mode="move_uploaded")
move uploaded file
special template class to simplify handling of ITX/PEAR
static collectFileItems($a_page, $a_domdoc)
Get all file items that are used within the page.
static formatDate(ilDateTime $date)
Format a date public.
setCols($a_cols)
Set Cols.
setPresentationTitle($a_title="")
static createDirectory($a_dir, $a_mod=0755)
create directory
Export class for SCORM 2004 object.
static clear($a_var)
Unset a value.
showOrganization()
Confirm deletion screen (delete page or structure objects)
setTableNames($a_table_tree, $a_table_obj_data, $a_table_obj_reference="")
set table names The primary key of the table containing your object_data must be 'obj_id' You may use...
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static sendQuestion($a_info="", $a_keep=false)
Send Question to Screen.
static deliverFile($a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
Create styles array
The data for the language used.
setTreeTablePK($a_column_name)
set column containing primary key in tree table public
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
updateProperties()
update Properties
static getContentStylePath($a_style_id)
get content style path
static renderNavigation($a_tpl, $a_spacer_img="", $a_lang="")
Render navigation.
setRows($a_rows)
Set Rows.
Class ilSCORM2004Page GUI class.
static renameExecutables($a_dir)
Rename uploaded executables for security reasons.
This class represents a text area property in a property form.
static switchColor($a_num, $a_css1, $a_css2)
switches style sheets for each even $a_num (used for changing colors of different result rows) ...
static initjQuery($a_tpl=null)
Init jQuery.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
static getGlossaryHTML($a_sco)
Get glossary html (only in export mode)
static getAffectiveLocalization($a_id)
Get affective localization.
deleteExportFile()
delete export files
static _getTitle($a_q_id)
Returns the title of a question.
showProperties()
Show learning objectives.
executeCommand()
execute command
confirmDeleteExportFile()
confirmation screen for export file deletion
static initExport()
Init export.
sco_preview()
SCO preview.
static initJavascript()
Init javascript.