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::ilSCORM2004NodeGUI($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");
76 include_once
'Services/MetaData/classes/class.ilMDEditorGUI.php';
79 $this->node_object->getId(), $this->node_object->getType());
80 $md_gui->
addObserver($this->node_object,
'MDUpdateListener',
'General');
81 $ilCtrl->forwardCommand($md_gui);
84 case 'ilscorm2004pagegui':
85 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004PageGUI.php");
89 $ilCtrl->forwardCommand($page_obj);
93 $cmd = $ilCtrl->getCmd(
"showOrganization");
108 $ilTabs->setTabActive(
"sahs_desc_objectives");
110 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
114 $cb =
new ilCheckboxInputGUI($lng->txt(
"sahs_hide_objectives_page"),
"hide_objectives_page");
115 $cb->
setInfo($lng->txt(
"sahs_hide_objectives_page_info"));
117 $cb->setChecked($this->node_object->getHideObjectivePage());
123 $ta->setInfo($lng->txt(
"sahs_list_info"));
124 $form->setTitle($lng->txt(
"properties"));
126 include_once
"./Services/MetaData/classes/class.ilMD.php";
127 $meta =
new ilMD($this->node_object->getSLMId(), $this->node_object->getId(), $this->node_object->getType());
128 $desc_ids = $meta->
getGeneral()->getDescriptionIds();
129 $ta->setValue($meta->getGeneral()->getDescription($desc_ids[0])->getDescription());
133 $sh->setTitle($lng->txt(
"sahs_learning_objectives"));
136 $objectives = $this->node_object->getObjectives();
138 foreach ($objectives as $ob)
141 $mappings = $ob->getMappings();
143 foreach($mappings as $map)
145 $mapinfo .= $map->getTargetObjectiveID();
148 if ($mapinfo == null)
154 $mapinfo =
"global to ".$mapinfo;
159 "obj_".$ob->getId());
162 $ta->setInfo($lng->txt(
"sahs_list_info"));
164 $ta->setValue($ob->getObjectiveID());
166 $form->setFormAction($ilCtrl->getFormAction($this));
167 $form->addCommandButton(
"updateProperties",
169 $tpl->setContent($form->getHTML());
180 foreach (
$_POST as $key=>$value) {
181 if(preg_match(
'/(obj_)(.+)/', $key,$match)){
182 $objective =
new ilScorm2004Objective($this->node_object->getId(),$match[2]);
188 $objective->updateObjective();
194 $this->node_object->update();
196 include_once
"./Services/MetaData/classes/class.ilMD.php";
197 $meta =
new ilMD($this->node_object->getSLMId(), $this->node_object->getId(), $this->node_object->getType());
199 $desc_ids = $gen->getDescriptionIds();
200 $des = $gen->getDescription($desc_ids[0]);
223 include_once
"./Services/Table/classes/class.ilTableGUI.php";
224 include_once
"./Modules/Scorm2004/classes/class.ilSCORM2004Page.php";
225 include_once(
"./Modules/TestQuestionPool/classes/class.assQuestion.php");
226 include_once(
"./Services/COPage/classes/class.ilPCQuestionGUI.php");
229 $tpl->addBlockfile(
"ADM_CONTENT",
"adm_content",
"tpl.table.html");
230 $tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.scormeditor_sco_question.html",
"Modules/Scorm2004");
233 $tbl->setTitle(
"Questions for ".$this->node_object->getTitle());
234 $tbl->setHeaderNames(array(
"Question",
"Page"));
235 $cols = array(
"question",
"page");
236 $tbl->setHeaderVars($cols, $header_params);
237 $tbl->setColumnWidth(array(
"50%",
"50%"));
238 $tbl->disable(
"sort");
239 $tbl->disable(
"footer");
241 $tree =
new ilTree($this->slm_object->getId());
242 $tree->
setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
243 $tree->setTreeTablePK(
"slm_id");
245 foreach($tree->getSubTree($tree->getNodeData($this->node_object->getId()),
true,
'page') as $page)
248 include_once(
"./Services/COPage/classes/class.ilPCQuestion.php");
250 if (count($qids) > 0)
253 foreach ($qids as $qid)
255 $tpl->setCurrentBlock(
"tbl_content");
256 $tpl->setVariable(
"TXT_PAGE_TITLE", $page[
"title"]);
257 $ilCtrl->setParameterByClass(
"ilscorm2004pagenodegui",
"obj_id", $page[
"obj_id"]);
258 $tpl->setVariable(
"HREF_EDIT_PAGE", $ilCtrl->getLinkTargetByClass(
"ilscorm2004pagenodegui",
"edit"));
261 $tpl->setVariable(
"TXT_QUESTION", $qtitle);
262 $ilCtrl->setParameterByClass(
"ilscorm2004pagenodegui",
"obj_id", $page[
"obj_id"]);
266 $tpl->parseCurrentBlock();
276 $slm_tree =
new ilTree($this->node_object->getId(),$this->slm_object->getId());
278 $slm_tree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
290 $ilTabs->addTarget(
"sahs_organization",
291 $ilCtrl->getLinkTarget($this,
'showOrganization'),
292 "showOrganization", get_class($this));
296 $ilTabs->addTarget(
"sahs_desc_objectives",
297 $ilCtrl->getLinkTarget($this,
'showProperties'),
298 "showProperties", get_class($this));
301 $ilTabs->addTarget(
"sahs_questions",
302 $ilCtrl->getLinkTarget($this,
'sahs_questions'),
303 "sahs_questions", get_class($this));
306 $ilTabs->addTarget(
"cont_files",
307 $ilCtrl->getLinkTarget($this,
'sco_resources'),
308 "sco_resources", get_class($this));
311 $ilTabs->addTarget(
"meta_data",
312 $ilCtrl->getLinkTargetByClass(
"ilmdeditorgui",
''),
313 "",
"ilmdeditorgui");
316 $ilTabs->addTarget(
"export",
317 $ilCtrl->getLinkTarget($this,
"showExportList"),
"showExportList",
321 $ilTabs->addTarget(
"import",
322 $ilCtrl->getLinkTarget($this,
"import"),
"import",
326 $ilTabs->addNonTabbedLink(
"preview",
327 $lng->txt(
"cont_preview"),
328 $ilCtrl->getLinkTarget($this,
'sco_preview'),
"_blank");
332 $lng->txt(
"sahs_unit").
": ".$this->node_object->getTitle());
343 $this->slm_object->executeDragDrop(
$_POST[
"il_hform_source_id"],
$_POST[
"il_hform_target_id"],
345 $ilCtrl->redirect($this,
"showOrganization");
356 $tpl =
new ilTemplate(
"tpl.main.html",
true,
true);
357 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
359 $tpl->setBodyClass(
"");
360 $tpl->setCurrentBlock(
"ContentStyle");
361 $tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
363 $tpl->parseCurrentBlock();
366 include_once(
"./Services/jQuery/classes/class.iljQueryUtil.php");
369 $tpl->addJavaScript(
"./Modules/Scorm2004/scripts/questions/pure.js");
370 $tpl->addJavaScript(
"./Modules/Scorm2004/scripts/pager.js");
372 $tpl->addOnLoadCode(
"pager.Init();");
374 $tree =
new ilTree($this->slm_object->getId());
375 $tree->
setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
376 $tree->setTreeTablePK(
"slm_id");
377 include_once
"./Modules/Scorm2004/classes/class.ilSCORM2004PageGUI.php";
378 include_once
"./Services/MetaData/classes/class.ilMD.php";
380 $meta =
new ilMD($this->node_object->getSLMId(), $this->node_object->getId(), $this->node_object->getType());
381 $desc_ids = $meta->
getGeneral()->getDescriptionIds();
382 $sco_description = $meta->getGeneral()->getDescription($desc_ids[0])->getDescription();
385 $sco_tpl =
new ilTemplate(
"tpl.sco.html",
true,
true,
"Modules/Scorm2004");
393 $this->node_object->getType());
397 $terms = $this->node_object->getGlossaryTermIds();
400 foreach($tree->getSubTree($tree->getNodeData($this->node_object->getId()),
true,
'page') as $page)
403 0, $this->slm_object->getId());
406 $page_obj->setStyleId($this->slm_object->getStyleSheetId());
407 if (count($terms) > 1)
409 $page_obj->setGlossaryOverviewInfo(
412 $sco_tpl->setCurrentBlock(
"page_preview");
413 $html = $ilCtrl->getHTML($page_obj);
415 $sco_tpl->setVariable(
"PAGE_PRV", $html);
416 $sco_tpl->parseCurrentBlock();
419 $output = $sco_tpl->get();
425 require_once
'./Modules/Scorm2004/classes/class.ilQuestionExporter.php';
426 $output = preg_replace_callback(
"/{{{{{(Question;)(il__qst_[0-9]+)}}}}}/",array(get_class($this),
'insertQuestion'),$output);
429 $output =
"<script>var ScormApi=null;".ilQuestionExporter::questionsJS().
"</script>".$output;
432 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004PageGUI.php");
435 $tpl->addJavaScript(
"./Modules/Scorm2004/scripts/questions/question_handling.js");
436 $tpl->addCss(
"./Modules/Scorm2004/templates/default/question_handling.css");
438 include_once(
"./Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php");
442 $output .=
'<script type="text/javascript" src="./Modules/Scorm2004/scripts/questions/question_handling.js"></script>';
443 $tpl->setVariable(
"CONTENT", $output);
450 return $q_exporter->exportQuestion($matches[2]);
458 switch (
$_POST[
'select_export'])
460 case "exportScorm12":
461 case "exportScorm2004_3rd":
462 case "exportScorm2004_4th":
465 $this->ctrl->redirect($this,
$_POST[
'select_export']);
468 $this->ctrl->redirect($this,
'showExportList');
481 $template =
new ilTemplate(
"tpl.scorm2004_export_buttons.html",
true,
true,
'Modules/Scorm2004');
484 "exportScorm2004_3rd" => $lng->txt(
"scorm_create_export_file_scrom2004"),
485 "exportScorm2004_4th" => $lng->txt(
"scorm_create_export_file_scrom2004_4th"),
486 "exportScorm12" => $lng->txt(
"scorm_create_export_file_scrom12"),
487 "exportPDF" => $lng->txt(
"scorm_create_export_file_pdf"),
488 "exportHTML" => $lng->txt(
"scorm_create_export_file_html")
490 foreach ($buttons as $value => $text)
492 $template->setCurrentBlock(
'option');
493 $template->setVariable(
'OPTION_VALUE', $value);
495 $template->parseCurrentBlock();
497 $template->setVariable(
'EXPORT_TITLE', $lng->txt(
'export'));
498 $template->setVariable(
'EXPORT_LABEL', $lng->txt(
'type'));
499 $template->setVariable(
'FORMACTION', $ilCtrl->getFormAction($this,
'selectExport'));
501 $export_files = $this->node_object->getExportFiles();
503 include_once
"./Modules/Scorm2004/classes/class.ilSCORM2004ExportTableGUI.php";
506 foreach ($export_files as $exp_file)
508 $filetype = $exp_file[
'type'];
512 $file_arr = explode(
"__", $exp_file[
"file"]);
515 $table_gui->setData(
$data);
516 $tpl->setVariable(
'ADM_CONTENT', $template->get() .
"\n" . $table_gui->getHTML());
524 $export->buildExportFile();
525 $this->ctrl->redirect($this,
"showExportList");
532 $export->buildExportFile();
533 $this->ctrl->redirect($this,
"showExportList");
539 $export->buildExportFile();
540 $this->ctrl->redirect($this,
"showExportList");
546 $export->buildExportFile();
547 $this->ctrl->redirect($this,
"showExportList");
553 $export->buildExportFile();
554 $this->ctrl->redirect($this,
"showExportList");
560 $export->buildExportFile();
561 $this->ctrl->redirect($this,
"showExportList");
566 if(!isset(
$_POST[
"file"]))
568 $this->
ilias->raiseError($this->lng->txt(
"no_checkbox"),$this->
ilias->error_obj->MESSAGE);
571 if (count(
$_POST[
"file"]) > 1)
573 $this->
ilias->raiseError($this->lng->txt(
"cont_select_max_one_item"),$this->
ilias->error_obj->MESSAGE);
575 $export =
new ilSCORM2004Export($this->node_object);
576 $export_dir = $export->getExportDirectoryForType(
$_POST[
'type'][
$_POST[
'file'][0]]);
587 if(!isset(
$_POST[
"file"]))
590 $this->ctrl->redirect($this,
"showExportList");
594 $export_files = $this->node_object->getExportFiles();
596 include_once
"./Modules/Scorm2004/classes/class.ilSCORM2004ExportTableGUI.php";
599 foreach ($export_files as $exp_file)
601 foreach (
$_POST[
'file'] as $delete_file)
603 if (strcmp($delete_file, $exp_file[
'file']) == 0)
608 $file_arr = explode(
"__", $exp_file[
"file"]);
613 $table_gui->setData(
$data);
614 $tpl->setVariable(
'ADM_CONTENT', $table_gui->getHTML());
623 $this->ctrl->redirect($this,
"showExportList");
633 include_once
"./Services/Utilities/classes/class.ilUtil.php";
634 $export =
new ilSCORM2004Export($this->node_object);
637 $export_dir = $export->getExportDirectoryForType(
$_POST[
'type'][$idx]);
638 $exp_file = $export_dir.
"/".
$file;
639 if (@is_file($exp_file))
645 $this->ctrl->redirect($this,
"showExportList");
650 $export_files = array();
652 require_once
"./Modules/Scorm2004/classes/class.ilSCORM2004Page.php";
653 include_once
"./Services/MediaObjects/classes/class.ilObjMediaObject.php";
654 include_once
"./Modules/File/classes/class.ilObjFile.php";
655 $tree =
new ilTree($this->slm_object->getId());
656 $tree->
setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
657 $tree->setTreeTablePK(
"slm_id");
658 foreach($tree->getSubTree($tree->getNodeData($this->node_object->getId()),
true,
'page') as $page)
661 $page_obj->buildDom();
662 $mob_ids = $page_obj->collectMediaObjects(
false);
663 foreach($mob_ids as $mob_id)
670 $export_files[$i][
"date"] = $media_obj->getCreateDate();
671 $export_files[$i][
"size"] = @filesize(
$path);
672 $export_files[$i][
"file"] = $media_obj->getTitle();
673 $export_files[$i][
"type"] = $media_obj->getDescription();
674 $export_files[$i][
"path"] =
$path;
675 $this->ctrl->setParameter($this,
"resource",
677 $export_files[$i][
"link"] = $this->ctrl->getLinkTarget($this,
"downloadResource");
681 include_once(
"./Services/COPage/classes/class.ilPCFileList.php");
683 foreach($file_ids as $file_id)
685 $file_obj =
new ilObjFile($file_id,
false);
686 $export_files[$i][
"date"] = $file_obj->getCreateDate();
687 $export_files[$i][
"size"] = $file_obj->getFileSize();
688 $export_files[$i][
"file"] = $file_obj->getFileName();
689 $export_files[$i][
"type"] = $file_obj->getFileType();
690 $export_files[$i][
"file_id"] = $file_id;
691 $this->ctrl->setParameter($this,
"file_id",$file_id);
692 $export_files[$i][
"link"] = $this->ctrl->getLinkTarget($this,
"downloadFile",
"");
698 return $export_files;
712 require_once(
"./Services/Table/classes/class.ilTableGUI.php");
716 $tpl->addBlockfile(
"ADM_CONTENT",
"adm_content",
"tpl.table.html");
719 $tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.download_file_row.html",
"Modules/LearningModule");
723 $tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
725 $tbl->setTitle($lng->txt(
"cont_files"));
727 $tbl->setHeaderNames(array($lng->txt(
"cont_format"),
728 $lng->txt(
"cont_file"),
729 $lng->txt(
"size"), $lng->txt(
"date"),
732 $cols = array(
"format",
"file",
"size",
"date",
"download");
733 $header_params = array(
"ref_id" =>
$_GET[
"ref_id"],
"obj_id" =>
$_GET[
"obj_id"],
734 "cmd" =>
"sco_resources",
"cmdClass" => strtolower(get_class($this)),
735 "cmdNode" =>
$_GET[
"cmdNode"],
"baseClass" =>
$_GET[
"baseClass"]);
736 $tbl->setHeaderVars($cols, $header_params);
737 $tbl->setColumnWidth(array(
"10%",
"30%",
"20%",
"20%",
"20%"));
738 $tbl->disable(
"sort");
740 $tbl->setOrderColumn(
$_GET[
"sort_by"]);
741 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
742 $tbl->setLimit(
$_GET[
"limit"]);
743 $tbl->setOffset(
$_GET[
"offset"]);
744 $tbl->setMaxCount($this->maxcount);
747 $tbl->setMaxCount(count($export_files));
750 $tbl->setFooter(
"tblfooter",$lng->txt(
"previous"),$lng->txt(
"next"));
753 $tbl->setMaxCount(count($export_files));
754 $export_files = array_slice($export_files,
$_GET[
"offset"],
$_GET[
"limit"]);
757 if(count($export_files) > 0)
760 foreach($export_files as $exp_file)
769 $tpl->setCurrentBlock(
"tbl_content");
770 $tpl->setVariable(
"TXT_FILENAME", $exp_file[
"file"]);
773 $tpl->setVariable(
"CSS_ROW", $css_row);
775 $tpl->setVariable(
"TXT_SIZE", $exp_file[
"size"]);
776 $tpl->setVariable(
"TXT_FORMAT", $exp_file[
"type"]);
778 $tpl->setVariable(
"TXT_DATE", $exp_file[
"date"]);
780 if($exp_file[
"size"] > 0)
782 $tpl->setVariable(
"TXT_DOWNLOAD", $lng->txt(
"download"));
783 $ilCtrl->setParameter($this,
"resource", rawurlencode($exp_file[
"path"]));
784 $ilCtrl->setParameter($this,
"file_id", rawurlencode($exp_file[
"file_id"]));
785 $tpl->setVariable(
"LINK_DOWNLOAD",
786 $ilCtrl->getLinkTarget($this,
"downloadResource"));
790 $tpl->setVariable(
"TXT_DOWNLOAD", $lng->txt(
"show"));
791 $tpl->setVariable(
"LINK_TARGET",
" target=\"_blank\"");
792 $tpl->setVariable(
"LINK_DOWNLOAD", $exp_file[
"path"]);
795 $tpl->parseCurrentBlock();
814 if (
$_GET[
"file_id"] > 0)
820 foreach ($export_files as $f)
822 if (is_object(
$file))
824 if ($f[
"file"] ==
$file->getFileName())
831 if ($f[
"path"] ==
$_GET[
"resource"])
833 if (is_file($f[
"path"]))
846 require_once(
"./Modules/File/classes/class.ilObjFile.php");
848 $fileObj->sendFile();
859 $tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.scormeditor_sco_import.html",
"Modules/Scorm2004");
862 $tpl->setVariable(
"ALT_IMG", $lng->txt(
"obj_sahs"));
864 $tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
866 $tpl->setVariable(
"BTN_NAME",
"importSave");
871 $tpl->setVariable(
"TXT_UPLOAD", $lng->txt(
"upload"));
872 $tpl->setVariable(
"TXT_CANCEL", $lng->txt(
"cancel"));
873 $tpl->setVariable(
"TXT_IMPORT_SCO", $lng->txt(
"import_sco_object"));
874 $tpl->setVariable(
"TXT_SELECT_FILE", $lng->txt(
"select_file"));
875 $tpl->setVariable(
"TXT_VALIDATE_FILE", $lng->txt(
"cont_validate_file"));
878 $umf=get_cfg_var(
"upload_max_filesize");
880 $pms=get_cfg_var(
"post_max_size");
883 $multiplier_a=array(
"K"=>1024,
"M"=>1024*1024,
"G"=>1024*1024*1024);
885 $umf_parts=preg_split(
"/(\d+)([K|G|M])/", $umf, -1, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY);
886 $pms_parts=preg_split(
"/(\d+)([K|G|M])/", $pms, -1, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY);
888 if (count($umf_parts) == 2) { $umf = $umf_parts[0]*$multiplier_a[$umf_parts[1]]; }
889 if (count($pms_parts) == 2) { $pms = $pms_parts[0]*$multiplier_a[$pms_parts[1]]; }
892 $max_filesize=min($umf, $pms);
894 if (!$max_filesize) $max_filesize=max($umf, $pms);
897 $max_filesize=sprintf(
"%.1f MB",$max_filesize/1024/1024);
900 $tpl->setVariable(
"TXT_FILE_INFO", $lng->txt(
"file_notice").
" $max_filesize");
905 global $_FILES, $rbacsystem;
909 $source = $_FILES[
"scormfile"][
"tmp_name"];
910 if (($source ==
'none') || (!$source))
912 $ilias->raiseError(
"No file selected!",$ilias->error_obj->MESSAGE);
915 if (!$rbacsystem->checkAccess(
"create",
$_GET[
"ref_id"],
"sahs"))
917 $ilias->raiseError($lng->txt(
"no_create_permission"), $ilias->error_obj->WARNING);
920 switch ($__FILES[
"scormfile"][
"error"])
922 case UPLOAD_ERR_INI_SIZE:
923 $ilias->raiseError($lng->txt(
"err_max_file_size_exceeds"),$ilias->error_obj->MESSAGE);
926 case UPLOAD_ERR_FORM_SIZE:
927 $ilias->raiseError($lng->txt(
"err_max_file_size_exceeds"),$ilias->error_obj->MESSAGE);
930 case UPLOAD_ERR_PARTIAL:
931 $ilias->raiseError($lng->txt(
"err_partial_file_upload"),$ilias->error_obj->MESSAGE);
934 case UPLOAD_ERR_NO_FILE:
935 $ilias->raiseError($lng->txt(
"err_no_file_uploaded"),$ilias->error_obj->MESSAGE);
939 $file = pathinfo($_FILES[
"scormfile"][
"name"]);
940 $name = substr(
$file[
"basename"], 0, strlen(
$file[
"basename"]) - strlen(
$file[
"extension"]) - 1);
941 $file_path = $this->slm_object->getDataDirectory().
"/".$this->node_object->getId().
"/".$_FILES[
"scormfile"][
"name"];
947 include_once (
"./Modules/Scorm2004/classes/ilSCORM13Package.php");
949 $newPack->il_importSco($this->slm_object->getId(),$this->node_object->getId(),$this->slm_object->getDataDirectory().
"/".$this->node_object->getId());
951 $this->ctrl->redirect($this,
"showOrganization");
959 $this->ctrl->redirect($this,
"showOrganization");
983 $tpl =
new ilTemplate(
"tpl.sco_glossary_overview.html",
true,
true,
"Modules/Scorm2004");
985 $terms = $a_sco->getGlossaryTermIds();
987 foreach ($terms as $k =>
$t)
989 $tpl->setCurrentBlock(
"link");
990 $tpl->setVariable(
"TXT_LINK",
$t);
991 $tpl->setVariable(
"ID_LINK",
"glo_ov_t".$k);
992 $tpl->parseCurrentBlock();
996 $tpl->setVariable(
"TXT_SCO_GLOSSARY", $lng->txtlng(
"content",
"cont_sco_glossary", $lk));
997 $tpl->setVariable(
"TXT_CLOSE", $lng->txtlng(
"common",
"close", $lk));
999 if (count($terms) > 1)
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
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)
& executeCommand()
execute command
Scorm 2004 Question Exporter.
static addPreparationJavascript($a_tpl, $a_lang)
Add standard texts.
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
addObserver(&$a_class, $a_method, $a_element)
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.
_getTitle($a_q_id)
Returns the title of a question.
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.
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="")
redirection script todo: (a better solution should control the processing via a xml file) ...
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
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...
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 renderNavigation($a_tpl, $a_spacer_img="", $a_lang="")
Render navigation.
while($lm_rec=$ilDB->fetchAssoc($lm_set)) $data
setRows($a_rows)
Set Rows.
getContentStylePath($a_style_id)
get content style path
getAffectiveLocalization($a_id)
Get affective localization.
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.
static getGlossaryHTML($a_sco)
Get glossary html (only in export mode)
deleteExportFile()
delete export files
ilSCORM2004ScoGUI($a_slm_obj, $a_node_id=0)
showProperties()
Show learning objectives.
confirmDeleteExportFile()
confirmation screen for export file deletion
static initExport()
Init export.
sco_preview()
SCO preview.
static initJavascript()
Init javascript.