4 require_once(
"./Modules/ScormAicc/classes/class.ilObjSCORMLearningModuleGUI.php");
5 require_once(
"./Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModule.php");
6 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Export.php");
7 include_once(
"./Services/Style/classes/class.ilObjStyleSheetGUI.php");
8 include_once(
"./Services/Style/classes/class.ilPageLayout.php");
35 $lng->loadLanguageModule(
"content");
36 $lng->loadLanguageModule(
"sahs");
37 $lng->loadLanguageModule(
"search");
38 $lng->loadLanguageModule(
"exp");
40 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,
false);
41 #$this->tabs_gui =& new ilTabsGUI(); 51 $next_class = $ilCtrl->getNextClass($this);
52 $cmd = $ilCtrl->getCmd();
54 if ($this->object->getEditable() &&
$cmd !=
"showEditTree")
60 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004OrganizationHFormGUI.php");
63 $form_gui->updateExpanded();
71 switch(
$_GET[
"notes_mode"])
74 $ilTabs->setTabActive(
"sahs_organization");
80 case "ilscorm2004chaptergui":
81 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004ChapterGUI.php");
83 $chap_gui->setParentGUI($this);
84 return $ilCtrl->forwardCommand($chap_gui);
87 case "ilscorm2004seqchaptergui":
88 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004SeqChapterGUI.php");
90 $chap_gui->setParentGUI($this);
91 return $ilCtrl->forwardCommand($chap_gui);
94 case "ilscorm2004scogui":
95 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004ScoGUI.php");
97 $sco_gui->setParentGUI($this);
98 return $ilCtrl->forwardCommand($sco_gui);
101 case "ilscorm2004assetgui":
102 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004AssetGUI.php");
104 $ass_gui->setParentGUI($this);
105 return $ilCtrl->forwardCommand($ass_gui);
108 case "ilscorm2004pagenodegui":
109 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004PageNodeGUI.php");
111 $page_gui->setParentGUI($this);
112 $ilCtrl->forwardCommand($page_gui);
116 parent::executeCommand();
132 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004EditorExplorerGUI.php");
134 if (!$exp->handleCommand())
136 $tpl->setLeftNavContent($exp->getHTML());
149 if (
$_GET[
"obj_id"] > 0)
151 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
154 if (in_array($type, array(
"sco",
"chap",
"seqc",
"page")))
156 $this->ctrl->setParameter($this,
"obj_id",
$_GET[
"obj_id"]);
157 $this->ctrl->redirect($this,
"jumpToNode");
161 if ($a_to_organization)
163 $this->ctrl->redirect($this,
"showOrganization");
167 $this->ctrl->redirect($this,
"properties");
181 if ($this->object->getEditable())
183 $this->ctrl->redirect($this,
"properties");
184 include_once(
"./Services/Frameset/classes/class.ilFramesetGUI.php");
186 $fs_gui->setFramesetTitle($this->lng->txt(
"editor"));
187 $fs_gui->setMainFrameName(
"content");
188 $fs_gui->setSideFrameName(
"tree");
189 $this->ctrl->setParameter($this,
"active_node",
$_GET[
"obj_id"]);
190 $fs_gui->setSideFrameSource($this->ctrl->getLinkTarget($this,
"showTree"));
191 $this->ctrl->setParameter($this,
"activeNode",
"");
192 if (
$_GET[
"obj_id"] > 0)
194 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
197 if (in_array($type, array(
"sco",
"chap",
"seqc",
"page")))
199 $this->ctrl->setParameter($this,
"obj_id",
$_GET[
"obj_id"]);
200 $fs_gui->setMainFrameSource($this->ctrl->getLinkTarget($this,
"jumpToNode"));
204 if ($a_to_organization)
206 $fs_gui->setMainFrameSource($this->ctrl->getLinkTarget($this,
"showOrganization"));
210 $fs_gui->setMainFrameSource($this->ctrl->getLinkTarget($this,
"properties"));
218 $this->tpl =
new ilTemplate(
"tpl.sahs_edit_frameset.html",
false,
false,
"Modules/ScormAicc");
219 $this->tpl->setVariable(
"SRC",
220 $this->ctrl->getLinkTarget($this,
"properties"));
221 $this->tpl->show(
"DEFAULT",
false);
226 function jumpToNode($a_anchor_node =
"", $a_highlight_ids =
"")
230 $anchor = ($a_anchor_node !=
"")
231 ?
"node_".$a_anchor_node
234 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
236 $ilCtrl->setParameter($this,
"obj_id",
$_GET[
"obj_id"]);
240 $ilCtrl->setParameterByClass(
"ilscorm2004scogui",
"highlight", $a_highlight_ids);
241 $ilCtrl->redirectByClass(
"ilscorm2004scogui",
"showOrganization", $anchor);
243 $ilCtrl->setParameterByClass(
"ilscorm2004assetgui",
"highlight", $a_highlight_ids);
244 $ilCtrl->redirectByClass(
"ilscorm2004assetgui",
"showOrganization", $anchor);
246 $ilCtrl->setParameterByClass(
"ilscorm2004chaptergui",
"highlight", $a_highlight_ids);
247 $ilCtrl->redirectByClass(
"ilscorm2004chaptergui",
"showOrganization", $anchor);
249 $ilCtrl->setParameterByClass(
"ilscorm2004seqchaptergui",
"highlight", $a_highlight_ids);
250 $ilCtrl->redirectByClass(
"ilscorm2004seqchaptergui",
"showOrganization", $anchor);
252 $ilCtrl->redirectByClass(
"ilscorm2004pagenodegui",
"edit");
263 $this->
setSubTabs(
"settings",
"general_settings");
265 $lng->loadLanguageModule(
"style");
268 if ($this->object->editable != 1)
271 $ilTabs->setSubTabActive(
'cont_settings');
273 $ilToolbar->addButton($this->lng->txt(
"view"),
274 "ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=".$this->object->getRefID(),
283 $parent_ref_id = $tree->getParentId((
int)
$_GET[
"ref_id"]);
284 if ($rbacsystem->checkAccess(
"create", $parent_ref_id,
"glo"))
286 $ilToolbar->addButton($this->lng->txt(
"cont_glo_create"),
287 $ilCtrl->getLinkTarget($this,
"createGlossary"));
289 $ilToolbar->addButton($this->lng->txt(
"cont_glo_assign"),
290 $ilCtrl->getLinkTarget($this,
"assignGlossary"));
294 $ilToolbar->addButton($this->lng->txt(
"cont_glo_detach"),
295 $ilCtrl->getLinkTarget($this,
"detachGlossary"));
299 $fixed_style = $ilSetting->get(
"fixed_content_style_id");
300 $style_id = $this->
object->getStyleSheetId();
302 if ($fixed_style == 0)
307 $st_styles[0] = $this->lng->txt(
"default");
315 $ilToolbar->addSeparator();
318 $ilToolbar->addButton($this->lng->txt(
"cont_edit_style"),
319 $ilCtrl->getLinkTarget($this,
"editStyle"));
320 $ilToolbar->addButton($this->lng->txt(
"cont_delete_style"),
321 $ilCtrl->getLinkTarget($this,
"deleteStyle"));
327 $ilToolbar->addSeparator();
329 $ilToolbar->addButton($this->lng->txt(
"sty_create_ind_style"),
330 $ilCtrl->getLinkTarget($this,
"createStyle"));
336 if ($this->object->editable != 1)
339 $tpl->setContent($this->form->getHTML());
345 $tpl->setContent($this->form->getHTML());
359 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
361 $this->form->setFormAction($ilCtrl->getFormAction($this));
362 $this->form->setTitle($this->lng->txt(
"cont_lm_properties"));
365 $this->
object->checkMasteryScoreValues();
368 $ti =
new ilTextInputGUI($this->lng->txt(
"title"),
"Fobject_title");
370 $ti->setValue($this->object->getTitle());
371 $this->form->addItem($ti);
375 $ti->
setValue($this->object->getDescription());
376 $this->form->addItem($ti);
381 $this->form->addItem($ne);
385 $ne->
setValue($this->object->getModuleVersion());
386 $ne->setInfo($this->lng->txt(
"cont_sc_version_info"));
387 $this->form->addItem($ne);
393 $sh->setTitle($this->lng->txt(
"activation"));
394 $this->form->addItem($sh);
399 if ($this->object->getOnline())
401 $cb->setChecked(
true);
403 $cb->setInfo($this->lng->txt(
"cont_online_info"));
404 $this->form->addItem($cb);
407 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cont_offline_mode_allow"),
"cobj_offline_mode");
409 $cb->setChecked($this->object->getOfflineMode());
410 include_once(
"./Modules/ScormAicc/classes/class.ilSCORMOfflineMode.php");
412 $cb->setDisabled(
true);
413 $cb->setInfo($this->lng->txt(
"cont_offline_mode_disable_not_allowed_info"));
415 $cb->setInfo($this->lng->txt(
"cont_offline_mode_allow_info"));
417 $this->form->addItem($cb);
423 $sh->setTitle($this->lng->txt(
"cont_presentation"));
424 $this->form->addItem($sh);
440 $op0 =
new ilRadioOption($this->lng->txt(
"cont_open_normal"),
"0");
441 $radg->addOption($op0);
442 $op1 =
new ilRadioOption($this->lng->txt(
"cont_open_iframe"),
"1");
443 $radg->addOption($op1);
444 $op2 =
new ilRadioOption($this->lng->txt(
"cont_open_window"),
"5");
445 $radg->addOption($op2);
446 $radg->
setValue($this->object->getOpenMode());
451 $ni->setValue($this->object->getWidth());
452 $op1->addSubItem($ni);
456 $ni->setValue($this->object->getWidth());
457 $op2->addSubItem($ni);
462 $ni->setValue($this->object->getHeight());
463 $ni->setInfo($this->lng->txt(
"cont_width_height_info"));
464 $op1->addSubItem($ni);
468 $ni->setValue($this->object->getHeight());
469 $ni->setInfo($this->lng->txt(
"cont_width_height_info"));
470 $op2->addSubItem($ni);
473 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cont_ie_compatibility"),
"cobj_ie_compatibility_0");
475 $cb->setChecked($this->object->getIe_compatibility());
476 $cb->setInfo($this->lng->txt(
"cont_ie_compatibility_info"));
478 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cont_ie_compatibility"),
"cobj_ie_compatibility_1");
480 $cb->setChecked($this->object->getIe_compatibility());
481 $cb->setInfo($this->lng->txt(
"cont_ie_compatibility_info"));
482 $op2->addSubItem($cb);
485 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cont_ie_force_render"),
"cobj_ie_force_render");
487 $cb->setChecked($this->object->getIe_force_render());
488 $cb->setInfo($this->lng->txt(
"cont_ie_force_render_info"));
489 $op2->addSubItem($cb);
491 $this->form->addItem($radg);
498 $cb->setChecked($this->object->getNoMenu());
499 $cb->setInfo($this->lng->txt(
"cont_nomenu_info"));
500 $this->form->addItem($cb);
506 $cb->setChecked($this->object->getHideNavig());
507 $cb->setInfo($this->lng->txt(
"cont_hidenavig_info"));
508 $this->form->addItem($cb);
511 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cont_auto_last_visited"),
"cobj_auto_last_visited");
513 $cb->setChecked($this->object->getAuto_last_visited());
514 $cb->setInfo($this->lng->txt(
"cont_auto_last_visited_info"));
515 $this->form->addItem($cb);
522 $sh->setTitle($this->lng->txt(
"cont_scorm_options"));
523 $this->form->addItem($sh);
534 $options = array(
"normal" => $this->lng->txt(
"cont_sc_less_mode_normal"),
535 "browse" => $this->lng->txt(
"cont_sc_less_mode_browse"));
538 $si->setValue($this->object->getDefaultLessonMode());
539 $this->form->addItem($si);
542 $options = array(
"credit" => $this->lng->txt(
"cont_credit_on"),
543 "no_credit" => $this->lng->txt(
"cont_credit_off"));
544 $si =
new ilSelectInputGUI($this->lng->txt(
"cont_credit_mode"),
"credit_mode");
546 $si->setValue($this->object->getCreditMode());
547 $si->setInfo($this->lng->txt(
"cont_credit_mode_info"));
548 $this->form->addItem($si);
552 "n" => $this->lng->txt(
"cont_sc_auto_review_no"),
553 "r" => $this->lng->txt(
"cont_sc_auto_review_completed_not_failed_or_passed"),
554 "p" => $this->lng->txt(
"cont_sc_auto_review_passed"),
555 "q" => $this->lng->txt(
"cont_sc_auto_review_passed_or_failed"),
556 "c" => $this->lng->txt(
"cont_sc_auto_review_completed"),
557 "d" => $this->lng->txt(
"cont_sc_auto_review_completed_and_passed"),
558 "y" => $this->lng->txt(
"cont_sc_auto_review_completed_or_passed"),
559 "s" => $this->lng->txt(
"cont_sc_store_if_previous_score_was_lower")
561 $si =
new ilSelectInputGUI($this->lng->txt(
"cont_sc_auto_review_2004"),
"auto_review");
563 $si->setValue($this->object->getAutoReviewChar());
564 $si->setInfo($this->lng->txt(
"cont_sc_auto_review_info_2004"));
565 $this->form->addItem($si);
568 if ($this->object->getMasteryScoreValues() !=
"") {
569 $ni =
new ilNumberInputGUI($this->lng->txt(
"cont_mastery_score_2004"),
"mastery_score");
572 $ni->setValue($this->object->getMasteryScore());
573 $ni->setInfo($this->lng->txt(
"cont_mastery_score_2004_info").$this->object->getMasteryScoreValues());
574 $this->form->addItem($ni);
581 $sh->setTitle($this->lng->txt(
"cont_rte_settings"));
582 $this->form->addItem($sh);
587 $cb->setChecked($this->object->getSession());
588 $cb->setInfo($this->lng->txt(
"cont_sc_usession_info"));
589 $this->form->addItem($cb);
592 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cont_fourth_edition"),
"cobj_fourth_edition");
594 $cb->setChecked($this->object->getFourth_edition());
595 $cb->setInfo($this->lng->txt(
"cont_fourth_edition_info"));
596 $this->form->addItem($cb);
601 $cb->setChecked($this->object->getSequencing());
602 $cb->setInfo($this->lng->txt(
"cont_sequencing_info"));
603 $this->form->addItem($cb);
606 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cont_interactions"),
"cobj_interactions");
608 $cb->setChecked($this->object->getInteractions());
609 $cb->setInfo($this->lng->txt(
"cont_interactions_info"));
610 $this->form->addItem($cb);
615 $cb->setChecked($this->object->getObjectives());
616 $cb->setInfo($this->lng->txt(
"cont_objectives_info"));
617 $this->form->addItem($cb);
622 $cb->setChecked($this->object->getComments());
623 $cb->setInfo($this->lng->txt(
"cont_comments_info"));
624 $this->form->addItem($cb);
627 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cont_time_from_lms"),
"cobj_time_from_lms");
629 $cb->setChecked($this->object->getTime_from_lms());
630 $cb->setInfo($this->lng->txt(
"cont_time_from_lms_info"));
631 $this->form->addItem($cb);
634 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cont_check_values"),
"cobj_check_values");
636 $cb->setChecked($this->object->getCheck_values());
637 $cb->setInfo($this->lng->txt(
"cont_check_values_info"));
638 $this->form->addItem($cb);
641 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cont_auto_suspend"),
"cobj_auto_suspend");
643 $cb->setChecked($this->object->getAutoSuspend());
644 $cb->setInfo($this->lng->txt(
"cont_auto_suspend_info"));
645 $this->form->addItem($cb);
651 $sh->setTitle($this->lng->txt(
"cont_debugging"));
652 $this->form->addItem($sh);
657 $cb->setChecked($this->object->getDebug());
658 if ($this->object->getDebugActivated() ==
false)
660 $cb->setDisabled(
true);
661 $cb->setInfo($this->lng->txt(
"cont_debug_deactivated"));
665 $cb->setInfo($this->lng->txt(
"cont_debug_deactivate"));
667 $this->form->addItem($cb);
668 $this->form->addCommandButton(
"saveProperties", $lng->txt(
"save"));
679 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
684 "" => $lng->txt(
"please_select"),
686 $langs = $lng->getInstalledLanguages();
687 $lng->loadLanguageModule(
"meta");
688 foreach ($langs as
$l)
692 $loc =
new ilSelectInputGUI($this->lng->txt(
"cont_localization"),
"localization");
694 $loc->setInfo($this->lng->txt(
"cont_localization_info"));
695 $this->form->addItem($loc);
699 $this->form->addItem($ne);
702 $lng->loadLanguageModule(
"style");
703 $fixed_style = $ilSetting->get(
"fixed_content_style_id");
704 $style_id = $this->
object->getStyleSheetId();
706 if ($fixed_style > 0)
710 $this->lng->txt(
"global_fixed").
")");
711 $this->form->addItem($st);
718 $st_styles[0] = $this->lng->txt(
"default");
728 $this->form->addItem($st);
735 $st_styles,
false,
true);
736 $style_sel =
new ilSelectInputGUI($lng->txt(
"cont_current_style"),
"style_id");
738 $style_sel->setValue($style_id);
739 $this->form->addItem($style_sel);
745 $ni->
setInfo($lng->txt(
"cont_qtries_info"));
746 $ni->setMaxLength(3);
748 $this->form->addItem($ni);
751 $this->form->addCommandButton(
"saveProperties", $lng->txt(
"save"));
753 $this->form->setTitle($lng->txt(
"cont_scorm_ed_properties"));
754 $this->form->setFormAction($ilCtrl->getFormAction($this));
770 $values[
"glossary"] = $this->lng->txt(
"cont_no_glossary");
772 $values[
"q_tries"] = $this->
object->getTries();
773 $values[
"localization"] = $this->
object->getLocalization();
774 $values[
"style_id"] = $this->
object->getStyleSheetId();
776 $this->form->setValuesByArray($values);
786 if ($this->object->editable != 1)
792 if ($tmpOfflineMode ==
true) {
794 $tmpFourth_edition =
false;
795 if ($this->object->getOfflineMode() ==
false) {
796 $this->
object->zipLmForOfflineMode();
800 if (isset(
$_POST[
"mastery_score"])){
801 $this->
object->setMasteryScore(
$_POST[
"mastery_score"]);
805 $t_auto_review =
$_POST[
"auto_review"];
808 if ($t_auto_review ==
"s") {
809 $t_auto_suspend =
true;
814 $t1_ie_compatibility =
false;
818 $t_height = $this->
object->getHeight();
819 if (
$_POST[
"height_0"] != $this->object->getHeight()) $t_height =
$_POST[
"height_0"];
820 if (
$_POST[
"height_1"] != $this->object->getHeight()) $t_height =
$_POST[
"height_1"];
822 $t_width = $this->
object->getWidth();
823 if (
$_POST[
"width_0"] != $this->object->getWidth()) $t_width =
$_POST[
"width_0"];
824 if (
$_POST[
"width_1"] != $this->object->getWidth()) $t_width =
$_POST[
"width_1"];
827 $this->
object->setOpenMode(
$_POST[
"open_mode"]);
828 $this->
object->setWidth($t_width);
829 $this->
object->setHeight($t_height);
830 $this->
object->setCreditMode(
$_POST[
"credit_mode"]);
831 $this->
object->setMaxAttempt(
$_POST[
"max_attempt"]);
832 $this->
object->setAutoReviewChar($t_auto_review);
833 $this->
object->setDefaultLessonMode(
$_POST[
"lesson_mode"]);
834 $this->
object->setSession($t_session);
838 $this->
object->setIe_compatibility($t_ie_compatibility);
840 $this->
object->setFourth_edition($tmpFourth_edition);
841 $this->
object->setSequencing($tmpSequencing);
847 $this->
object->setAutoSuspend($t_auto_suspend);
848 $this->
object->setOfflineMode($tmpOfflineMode);
852 $this->
object->setTitle(
$_POST[
"Fobject_title"]);
853 $this->
object->setDescription(
$_POST[
"Fobject_description"]);
859 if ($this->form->checkInput())
861 $this->
object->setTries(
$_POST[
"q_tries"]);
862 $this->
object->setLocalization(
$_POST[
"localization"]);
864 if ($ilSetting->get(
"fixed_content_style_id") <= 0 &&
866 || $this->object->getStyleSheetId() == 0))
872 $this->
object->update();
874 $this->ctrl->redirect($this,
"properties");
884 $this->
object->setAssignedGlossary(0);
885 $this->
object->update();
886 $ilCtrl->redirect($this,
"properties");
897 $tpl->setContent($this->form->getHTML());
907 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
913 $this->form->addItem($ti);
917 $this->form->addItem($ta);
919 $this->form->addCommandButton(
"saveGlossary", $lng->txt(
"save"));
920 $this->form->addCommandButton(
"properties", $lng->txt(
"cancel"));
922 $this->form->
setTitle($lng->txt(
"cont_glo_create"));
923 $this->form->setFormAction($ilCtrl->getFormAction($this));
933 $parent_ref_id = $tree->getParentId((
int)
$_GET[
"ref_id"]);
934 if (!$rbacsystem->checkAccess(
"create", $parent_ref_id,
"glo"))
937 $ilCtrl->redirect($this,
"properties");
941 if ($this->form->checkInput())
943 include_once(
"./Modules/Glossary/classes/class.ilObjGlossary.php");
945 $newObj->setType(
"glo");
946 $newObj->setTitle(
$_POST[
"title"]);
947 $newObj->setDescription(
$_POST[
"description"]);
948 $newObj->setVirtualMode(
"none");
950 $newObj->createReference();
951 $newObj->putInTree($parent_ref_id);
952 $newObj->setPermissions($parent_ref_id);
953 $newObj->notify(
"new",$parent_ref_id,$_GET[
"parent_non_rbac_id"],$parent_ref_id,$newObj->getRefId());
956 $this->
object->setAssignedGlossary($newObj->getId());
957 $this->
object->update();
960 $ilCtrl->redirect($this,
"properties");
963 $this->form->setValuesByPost();
964 $tpl->setContent($this->form->getHtml());
974 include_once(
"./Modules/Scorm2004/classes/class.ilGlossarySelectorGUI.php");
976 $ilCtrl->getLinkTarget($this,
"selectGlossary"),
"ilobjscorm2004learningmodulegui");
979 if (
$_GET[
"expand"] ==
"")
981 $expanded = $tree->readRootId();
985 $expanded =
$_GET[
"expand"];
987 $exp->setExpand($expanded);
989 $exp->setTargetGet(
"glo_id");
992 $exp->setParamsGet($this->ctrl->getParameterArray($this,
"assignGlossary"));
995 $exp->setFiltered(
true);
997 $exp->addFilter(
"root");
998 $exp->addFilter(
"cat");
999 $exp->addFilter(
"grp");
1000 $exp->addFilter(
"fold");
1001 $exp->addFilter(
"crs");
1002 $exp->addFilter(
"glo");
1006 $tpl->setContent($exp->getOutput());
1017 $this->
object->update();
1018 $ilCtrl->redirect($this,
"properties");
1028 if ($this->call_by_reference)
1047 $tpl->setContent($this->form->getHTML());
1057 $lng->loadLanguageModule(
"style");
1059 $ilTabs->setTabActive(
"settings");
1061 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
1064 $fixed_style = $ilSetting->get(
"fixed_content_style_id");
1065 $style_id = $this->
object->getStyleSheetId();
1067 if ($fixed_style > 0)
1071 $this->lng->txt(
"global_fixed").
")");
1072 $this->form->addItem($st);
1079 $st_styles[0] = $this->lng->txt(
"default");
1089 $this->form->addItem($st);
1094 $this->form->addCommandButton(
"editStyle",
1095 $lng->txt(
"cont_edit_style"));
1096 $this->form->addCommandButton(
"deleteStyle",
1097 $lng->txt(
"cont_delete_style"));
1105 $st_styles,
false,
true);
1106 $style_sel =
new ilSelectInputGUI($lng->txt(
"cont_current_style"),
"style_id");
1108 $style_sel->setValue($style_id);
1109 $this->form->addItem($style_sel);
1111 $this->form->addCommandButton(
"saveStyleSettings",
1113 $this->form->addCommandButton(
"createStyle",
1114 $lng->txt(
"sty_create_ind_style"));
1117 $this->form->setTitle($lng->txt(
"cont_style"));
1118 $this->form->setFormAction($ilCtrl->getFormAction($this));
1128 $ilCtrl->redirectByClass(
"ilobjstylesheetgui",
"create");
1138 $ilCtrl->redirectByClass(
"ilobjstylesheetgui",
"edit");
1148 $ilCtrl->redirectByClass(
"ilobjstylesheetgui",
"delete");
1158 if ($ilSetting->get(
"fixed_content_style_id") <= 0 &&
1160 || $this->object->getStyleSheetId() == 0))
1163 $this->
object->update();
1166 $this->ctrl->redirect($this,
"editStyleProperties");
1178 $ilTabs->setTabActive(
"cont_tracking_data");
1179 $ilTabs->setSubTabActive(
"cont_tracking_bysco");
1181 $reports = array(
'exportSelectedCore',
'exportSelectedInteractions',
'exportSelectedObjectives',
'tracInteractionItem',
'tracInteractionUser',
'tracInteractionUserAnswers');
1183 $scoSelected =
"all";
1186 $this->ctrl->setParameter($this,
'scoSelected',$scoSelected);
1191 $this->ctrl->setParameter($this,
'report',$report);
1193 include_once
'./Modules/Scorm2004/classes/class.ilSCORM2004TrackingItemsPerScoFilterGUI.php';
1195 $filter->parse($scoSelected,$report,$reports);
1196 if($report ==
"choose") {
1197 $this->tpl->setContent($filter->form->getHTML());
1199 $scosSelected = array();
1200 if ($scoSelected !=
"all") $scosSelected[] = $scoSelected;
1202 $tmpscos=$this->
object->getTrackedItems();
1203 for ($i=0; $i<count($tmpscos); $i++) {
1204 $scosSelected[] = $tmpscos[$i][
"id"];
1208 include_once
"Services/Tracking/classes/class.ilTrQuery.php";
1211 include_once
'./Modules/Scorm2004/classes/class.ilSCORM2004TrackingItemsTableGUI.php';
1213 $this->tpl->setContent($filter->form->getHTML().$tbl->getHTML());
1219 global $ilTabs, $ilAccess;
1221 $ilTabs->setTabActive(
'cont_tracking_data');
1223 if($ilAccess->checkAccess(
"read_learning_progress",
"",
$_GET[
"ref_id"])) {
1226 $ilTabs->setSubTabActive(
'cont_tracking_byuser');
1228 $reports = array(
'exportSelectedSuccess',
'exportSelectedCore',
'exportSelectedInteractions',
'exportSelectedObjectives',
'exportObjGlobalToSystem');
1230 $userSelected =
"all";
1233 $this->ctrl->setParameter($this,
'userSelected',$userSelected);
1238 $this->ctrl->setParameter($this,
'report',$report);
1240 include_once
'./Modules/Scorm2004/classes/class.ilSCORM2004TrackingItemsPerUserFilterGUI.php';
1242 $filter->parse($userSelected,$report,$reports);
1243 if($report ==
"choose") {
1244 $this->tpl->setContent($filter->form->getHTML());
1246 $usersSelected = array();
1247 if ($userSelected !=
"all") $usersSelected[] = $userSelected;
1249 include_once
"Services/Tracking/classes/class.ilTrQuery.php";
1251 foreach($users as $user) {
1253 $usersSelected[] = $user;
1257 $scosSelected = array();
1258 $tmpscos=$this->
object->getTrackedItems();
1259 for ($i=0; $i<count($tmpscos); $i++) {
1260 $scosSelected[] = $tmpscos[$i][
"id"];
1266 include_once
'./Modules/Scorm2004/classes/class.ilSCORM2004TrackingItemsTableGUI.php';
1268 $this->tpl->setContent($filter->form->getHTML().$tbl->getHTML());
1271 else if($ilAccess->checkAccess(
"edit_learning_progress",
"",
$_GET[
"ref_id"])) {
1284 foreach (
$_POST[
"user"] as $user)
1286 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004DeleteData.php");
1289 include_once(
"./Services/Tracking/classes/class.ilLPStatusWrapper.php");
1293 $this->ctrl->redirect($this,
"modifyTrackingItems");
1299 if (is_array(
$_POST[
"id"]))
1301 $this->
object->deleteTrackingDataOfUsers(
$_POST[
"id"]);
1313 $mtree =
new ilTree($this->object->getId());
1314 $mtree->
setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
1315 $mtree->setTreeTablePK(
"slm_id");
1317 if (
$_POST[
"expandAll"] !=
"")
1319 $_GET[
"scexpand"] =
"";
1320 $stree = $mtree->getSubTree($mtree->getNodeData($mtree->readRootId()));
1322 foreach ($stree as
$n)
1324 $n_arr[] = $n[
"child"];
1329 if (
$_POST[
"collapseAll"] !=
"")
1331 $_GET[
"scexpand"] =
"";
1332 $_SESSION[
"scexpand"] = array($mtree->readRootId());
1335 $this->tpl =
new ilTemplate(
"tpl.main.html",
true,
true);
1338 $ilCtrl->setParameter($this,
"active_node",
$_GET[
"active_node"]);
1340 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.explorer.html");
1343 $this->tpl->setCurrentBlock(
"exp2_button");
1344 $this->tpl->setVariable(
"CMD_EXP2_BTN",
"expandAll");
1345 $this->tpl->setVariable(
"TXT_EXP2_BTN", $lng->txt(
"expand_all"));
1346 $this->tpl->parseCurrentBlock();
1348 $this->tpl->setCurrentBlock(
"exp2_button");
1349 $this->tpl->setVariable(
"CMD_EXP2_BTN",
"collapseAll");
1350 $this->tpl->setVariable(
"TXT_EXP2_BTN", $lng->txt(
"collapse_all"));
1351 $this->tpl->parseCurrentBlock();
1353 require_once (
"./Modules/Scorm2004/classes/class.ilSCORM2004EditorExplorer.php");
1354 $exp =
new ilSCORM2004EditorExplorer($this->ctrl->getLinkTarget($this,
"edit"),
1356 $exp->setFrameUpdater(
"content",
"ilHierarchyFormUpdater");
1357 $exp->setTargetGet(
"obj_id");
1358 $exp->setExpandTarget($this->ctrl->getLinkTarget($this,
"showTree"));
1360 if (
$_GET[
"scexpand"] ==
"")
1362 $expanded = $mtree->readRootId();
1366 $expanded =
$_GET[
"scexpand"];
1370 if (
$_GET[
"active_node"] !=
"")
1372 $path = $mtree->getPathId(
$_GET[
"active_node"]);
1373 $exp->setForceOpenPath(
$path);
1375 $exp->highlightNode(
$_GET[
"active_node"]);
1377 $exp->setExpand($expanded);
1381 $output = $exp->getOutput();
1384 if ($ilCtrl->isAsynch())
1389 $this->tpl->setCurrentBlock(
"content");
1390 $this->tpl->setVariable(
"TXT_EXPLORER_HEADER", $this->lng->txt(
"sahs_organization"));
1391 $this->tpl->setVariable(
"EXP_REFRESH", $this->lng->txt(
"refresh"));
1392 $this->tpl->setVariable(
"EXPLORER",$output);
1393 $this->ctrl->setParameter($this,
"scexpand",
$_GET[
"scexpand"]);
1394 $this->tpl->setVariable(
"ACTION", $this->ctrl->getLinkTarget($this,
"showTree"));
1395 $this->tpl->parseCurrentBlock();
1397 include_once(
"./Services/jQuery/classes/class.iljQueryUtil.php");
1400 $this->tpl->show(
false);
1413 $ilTabs->setTabActive(
"sahs_sequencing");
1415 include_once(
"./Modules/Scorm2004/classes/seq_editor/class.ilSCORM2004Item.php");
1417 if (!$this->object->getSequencingExpertMode())
1419 $ilToolbar->addButton($lng->txt(
"sahs_activate_expert_mode"),
1420 $ilCtrl->getLinkTarget($this,
"confirmExpertMode"));
1424 include_once(
"./Services/UIComponent/NestedList/classes/class.ilNestedList.php");
1426 $t = $this->
object->getTree();
1427 $root_node =
$t->getNodeData(
$t->getRootId());
1428 $nodes = $this->
object->getTree()->getSubtree($root_node);
1429 foreach ($nodes as $node)
1431 if (in_array($node[
"type"], array(
"",
"chap",
"sco")))
1433 $ntpl =
new ilTemplate(
"tpl.seq_node.html",
true,
true,
"Modules/Scorm2004");
1434 $ntpl->setVariable(
"NODE_ID", $node[
"child"]);
1435 if ($node[
"type"] ==
"")
1437 $ntpl->setVariable(
"TITLE", $this->object->getTitle());
1442 $ntpl->setVariable(
"TITLE", $node[
"title"]);
1445 $ntpl->setVariable(
"SEQ_INFO",
1447 $list->addListNode($ntpl->get(), $node[
"child"], $node[
"parent"]);
1452 $tb->addFormButton($lng->txt(
"save"),
"saveSequencing");
1453 $ftpl =
new ilTemplate(
"tpl.sequencing.html",
true,
true,
"Modules/Scorm2004");
1454 $ftpl->setVariable(
"CONTENT", $list->getHTML());
1455 $ftpl->setVariable(
"FORM_ACTION", $ilCtrl->getFormAction($this));
1456 $ftpl->setVariable(
"TB", $tb->getHTML());
1457 $tpl->setContent($ftpl->get());
1468 $ilTabs->setTabActive(
"sahs_sequencing");
1470 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
1472 $cgui->setFormAction($ilCtrl->getFormAction($this));
1473 $cgui->setHeaderText($lng->txt(
"sahs_activate_expert_mode_info"));
1474 $cgui->setCancel($lng->txt(
"cancel"),
"showSequencing");
1475 $cgui->setConfirm($lng->txt(
"sahs_activate_expert_mode"),
"activateExpertMode");
1477 $tpl->setContent($cgui->getHTML());
1490 $this->
object->setSequencingExpertMode(
true);
1491 $this->
object->update();
1493 $ilCtrl->redirect($this,
"showSequencing");
1504 include_once(
"./Modules/Scorm2004/classes/seq_editor/class.ilSCORM2004Item.php");
1505 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Sco.php");
1506 $t = $this->
object->getTree();
1507 $root_node =
$t->getNodeData(
$t->getRootId());
1508 $nodes = $this->
object->getTree()->getSubtree($root_node);
1509 foreach ($nodes as $node)
1511 if (in_array($node[
"type"], array(
"",
"chap",
"sco")))
1513 if ($node[
"type"] ==
"")
1521 $xml =
'<?xml version="1.0"?>'.ilUtil::stripSlashes(
$_POST[
"seq"][$node[
"child"]],
false);
1523 $ob_texts = array();
1524 if ($node[
"type"] ==
"sco")
1527 $objectives = $sco->getObjectives();
1528 foreach ($objectives as $o)
1530 $ob_texts[$o->getId()] = $o->getObjectiveId();
1534 $item->setSeqXml($xml);
1538 if ($node[
"type"] ==
"sco")
1540 foreach ($ob_texts as $id =>
$t)
1542 $objective =
new ilScorm2004Objective($node[
"child"], $id);
1543 $objective->setObjectiveId(
$t);
1544 $objective->updateObjective();
1552 $ilCtrl->redirect($this,
"showSequencing");
1562 $chaps = $this->
object->getTree()->getChilds(
1563 $this->object->getTree()->getRootId());
1565 foreach($chaps as $chap)
1567 if ($chap[
"type"] ==
"chap")
1569 $s_chaps[$chap[
"child"]] = $chap[
"title"];
1576 $ilToolbar->setFormAction($ilCtrl->getFormAction($this));
1577 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
1579 "0" => $lng->txt(
"all")
1583 $si->setOptions($options);
1584 $si->setValue($cur_chap);
1585 $ilToolbar->addInputItem(
$si,
true);
1586 $ilToolbar->addFormButton($lng->txt(
"change"),
"selectLObjChapter");
1588 include_once(
"./Modules/Scorm2004/classes/class.ilObjectivesAlignmentTableGUI.php");
1591 $tpl->setContent($obj_table->getHTML());
1599 $ilCtrl->redirect($this,
"showLearningObjectivesAlignment");
1607 switch (
$_POST[
'select_export'])
1609 case "exportScorm12":
1610 case "exportScorm2004_3rd":
1611 case "exportScorm2004_4th":
1615 case "exportHTMLOne":
1616 $this->ctrl->redirect($this,
$_POST[
'select_export']);
1619 $this->ctrl->redirect($this,
'showExportList');
1629 global
$tpl, $ilToolbar;
1631 $ilToolbar->setFormAction($this->ctrl->getFormAction($this,
'selectExport'));
1632 $ilToolbar->setId(
"scorm2004export");
1646 "exportScorm2004_3rd" => $this->lng->txt(
"scorm_create_export_file_scrom2004"),
1647 "exportScorm2004_4th" => $this->lng->txt(
"scorm_create_export_file_scrom2004_4th"),
1648 "exportScorm12" => $this->lng->txt(
"scorm_create_export_file_scrom12"),
1649 "exportHTML" => $this->lng->txt(
"scorm_create_export_file_html"),
1650 "exportHTMLOne" => $this->lng->txt(
"scorm_create_export_file_html_one")
1654 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
1656 $si->setOptions($buttons);
1657 $ilToolbar->addInputItem(
$si,
true);
1659 $ilToolbar->addFormButton($this->lng->txt(
'export'),
"selectExport");
1661 $export_files = $this->
object->getExportFiles();
1663 include_once
"./Modules/Scorm2004/classes/class.ilSCORM2004ExportTableGUI.php";
1666 foreach ($export_files as $exp_file)
1668 $filetype = $exp_file[
'type'];
1669 $public_str = ($exp_file[
"file"] == $this->
object->getPublicExportFile($filetype))
1670 ?
" <b>(".$this->lng->txt(
"public").
")<b>" 1672 $file_arr = explode(
"__", $exp_file[
"file"]);
1675 $table_gui->setData(
$data);
1677 $this->tpl->setContent($table_gui->getHTML());
1687 global $ilAccess, $ilHelp;
1689 if ($this->ctrl->getCmd() ==
"delete")
1694 if (!$this->object->getEditable())
1696 return parent::getTabs($tabs_gui);
1699 $ilHelp->setScreenIdComponent(
"sahsed");
1702 $tabs_gui->addTarget(
"sahs_organization",
1703 $this->ctrl->getLinkTarget($this,
"showOrganization"),
"showOrganization",
1707 $force_active = ($this->ctrl->getNextClass() ==
"ilinfoscreengui")
1710 $tabs_gui->addTarget(
"info_short",
1711 $this->ctrl->getLinkTargetByClass(
"ilinfoscreengui",
"showSummary"),
"",
1712 "ilinfoscreengui",
"", $force_active);
1715 $tabs_gui->addTarget(
"settings",
1716 $this->ctrl->getLinkTarget($this,
"properties"),
"properties",
1727 $tabs_gui->addTarget(
"sahs_objectives_alignment",
1728 $this->ctrl->getLinkTarget($this,
"showLearningObjectivesAlignment"),
"showLearningObjectivesAlignment",
1732 $tabs_gui->addTarget(
"sahs_sequencing",
1733 $this->ctrl->getLinkTarget($this,
"showSequencing"),
"showSequencing",
1749 include_once
"Services/Object/classes/class.ilObjectMetaDataGUI.php";
1751 $mdtab = $mdgui->getTab();
1754 $tabs_gui->addTarget(
"meta_data",
1756 "",
"ilmdeditorgui");
1760 $tabs_gui->addTarget(
"export",
1761 $this->ctrl->getLinkTarget($this,
"showExportList"), array(
"showExportList",
'confirmDeleteExportFile'),
1765 if ($ilAccess->checkAccess(
'edit_permission',
'', $this->object->getRefId()))
1767 $tabs_gui->addTarget(
"perm_settings",
1768 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');
1771 if ($this->object->editable==1)
1774 $tabs_gui->addNonTabbedLink(
"preview",
1775 $this->lng->txt(
"cont_sc_preview"),
1776 $this->ctrl->getLinkTarget($this,
"preview"),
1789 if ($a_main_tab ==
"settings" &&
1790 $this->object->editable == 1)
1802 $ilTabs->activateSubTab($a_active);
1812 $slm_tree =
new ilTree($this->object->getId());
1814 $slm_tree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
1822 $a_title =
"", $a_icon =
"", $a_gui_obj = null, $a_gui_cmd =
"")
1826 if ($a_form_action ==
"")
1828 $a_form_action = $ilCtrl->getFormAction($this);
1833 $a_title = $this->
object->getTitle();
1839 if ($a_top_node == 0)
1841 $a_top_node = $slm_tree->getRootId();
1844 if (is_null($a_gui_obj))
1847 $a_gui_cmd =
"showOrganization";
1850 $ilCtrl->setParameter($this,
"backcmd",
"showOrganization");
1851 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004OrganizationHFormGUI.php");
1853 $form_gui->setParentCommand($a_gui_obj, $a_gui_cmd);
1854 $form_gui->setFormAction($a_form_action);
1857 $form_gui->setTree($slm_tree);
1858 $form_gui->setCurrentTopNodeId($a_top_node);
1859 $form_gui->addMultiCommand($lng->txt(
"delete"),
"deleteNodes");
1860 $form_gui->addMultiCommand($lng->txt(
"cut"),
"cutItems");
1861 $form_gui->addMultiCommand($lng->txt(
"copy"),
"copyItems");
1862 $form_gui->addCommand($lng->txt(
"cont_save_all_titles"),
"saveAllTitles");
1863 $form_gui->addCommand($lng->txt(
"expand_all"),
"expandAll");
1864 $form_gui->addCommand($lng->txt(
"collapse_all"),
"collapseAll");
1865 $form_gui->setTriggeredUpdateCommand(
"saveAllTitles");
1868 if (
$_GET[
"highlight"] !=
"")
1870 $hl = explode(
":",
$_GET[
"highlight"]);
1871 $form_gui->setHighlightedNodes($hl);
1872 $form_gui->setFocusId($hl[0]);
1875 $ilCtrl->setParameter($this,
"active_node",
$_GET[
"obj_id"]);
1878 $sc_tpl =
new ilTemplate(
"tpl.scormeditor_orga_screen.html",
true,
true,
"Modules/Scorm2004");
1879 $sc_tpl->setVariable(
"ORGANIZATION", $form_gui->getHTML());
1882 $tpl->setContent($sc_tpl->get());
1893 $ilCtrl->setParameter($this,
"nodes_mode", $a_mode);
1894 include_once(
"Services/Notes/classes/class.ilNoteGUI.php");
1895 $node_id =
$_GET[
"obj_id"];
1896 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
1897 $node_type = ($node_id > 0)
1901 $notes_gui =
new ilNoteGUI($this->object->getId(),
1902 (int) $node_id, $node_type);
1903 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]) && $ilSetting->get(
"comments_del_tutor", 1))
1905 $notes_gui->enablePublicNotesDeletion(
true);
1907 $notes_gui->enablePrivateNotes();
1908 $notes_gui->enablePublicNotes();
1910 $next_class = $ilCtrl->getNextClass($this);
1911 if ($next_class ==
"ilnotegui")
1913 $html = $this->ctrl->forwardCommand($notes_gui);
1917 $html = $notes_gui->getNotesHTML();
1929 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004OrganizationHFormGUI.php");
1931 $slm_tree =&
new ilTree($this->object->getId());
1933 $slm_tree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
1940 $parent_id = $slm_tree->getParentId($node_id);
1945 $parent_id = $node_id;
1948 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Chapter.php");
1949 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
1951 $chap_ids = array();
1952 for ($i = 1; $i <= $num; $i++)
1955 $chap->setTitle($lng->txt(
"sahs_new_chapter"));
1956 $chap->setSLMId($this->object->getId());
1959 $chap_ids[] = $chap->getId();
1961 $chap_ids = array_reverse($chap_ids);
1962 $chap_ids = implode($chap_ids,
":");
1966 $ilCtrl->setParameter($this,
"highlight", $chap_ids);
1967 $ilCtrl->redirect($this,
"showOrganization",
"node_".$node_id);
1969 return array(
"node_id" => $node_id,
"items" => $chap_ids);
1979 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004OrganizationHFormGUI.php");
1981 $slm_tree =&
new ilTree($this->object->getId());
1983 $slm_tree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
1988 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Sco.php");
1989 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
1993 $parent_id = $slm_tree->getParentId($node_id);
1998 $parent_id = $node_id;
2003 for ($i = 1; $i <= $num; $i++)
2006 $sco->setTitle($lng->txt(
"sahs_new_sco"));
2007 $sco->setSLMId($this->object->getId());
2010 $sco_ids[] = $sco->getId();
2012 $sco_ids = array_reverse($sco_ids);
2013 $sco_ids = implode($sco_ids,
":");
2017 $ilCtrl->setParameter($this,
"highlight", $sco_ids);
2018 $ilCtrl->redirect($this,
"showOrganization",
"node_".$node_id);
2020 return array(
"node_id" => $node_id,
"items" => $sco_ids);
2030 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004OrganizationHFormGUI.php");
2032 $slm_tree =&
new ilTree($this->object->getId());
2034 $slm_tree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
2039 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Asset.php");
2040 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
2044 $parent_id = $slm_tree->getParentId($node_id);
2049 $parent_id = $node_id;
2054 for ($i = 1; $i <= $num; $i++)
2057 $ass->setTitle($lng->txt(
"sahs_new_asset"));
2058 $ass->setSLMId($this->object->getId());
2061 $ass_ids[] = $ass->getId();
2063 $ass_ids = array_reverse($ass_ids);
2064 $ass_ids = implode($ass_ids,
":");
2068 $ilCtrl->setParameter($this,
"highlight", $ass_ids);
2069 $ilCtrl->redirect($this,
"showOrganization",
"node_".$node_id);
2071 return array(
"node_id" => $node_id,
"items" => $ass_ids);
2081 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004OrganizationHFormGUI.php");
2083 $slm_tree =&
new ilTree($this->object->getId());
2085 $slm_tree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
2090 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004PageNode.php");
2091 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
2094 $parent_id = $slm_tree->getParentId($node_id);
2099 $parent_id = $node_id;
2103 $page_ids = array();
2104 for ($i = 1; $i <= $num; $i++)
2107 $page->setTitle($lng->txt(
"sahs_new_page"));
2108 $page->setSLMId($this->object->getId());
2111 $page_ids[] = $page->getId();
2113 $page_ids = array_reverse($page_ids);
2114 $page_ids = implode($page_ids,
":");
2118 $ilCtrl->setParameter($this,
"highlight", $page_ids);
2119 $ilCtrl->redirect($this,
"showOrganization",
"node_".$node_id);
2121 return array(
"node_id" => $node_id,
"items" => $page_ids);
2133 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004OrganizationHFormGUI.php");
2134 include_once(
"./Modules/Scorm2004/classes/seq_editor/class.ilSCORM2004SeqTemplate.php");
2136 $templates = array();
2137 $description = null;
2140 $default_identifier =
$_POST[
"identifier"];
2145 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.scormeditor_seq_chooser.html",
"Modules/Scorm2004");
2147 $this->tpl->setCurrentBlock(
"option_item");
2150 foreach ($arr_templates as $templ)
2153 $item_data = $templ->getMetadataProperties();
2154 $item_data[
'identifier'] = $templ->getIdentifier();
2155 array_push($templates,$item_data);
2156 if ($default_identifier == $item_data[
'identifier']) {$sel =
'selected'; $active = $item_data;}
2157 $this->tpl->setVariable(
"VAL_SELECTED",$sel );
2158 $this->tpl->setVariable(
"VAL_IDENTIFIER",$item_data[
'identifier'] );
2159 $this->tpl->setVariable(
"VAL_TITLE",$item_data[
'title'] );
2160 $this->tpl->parseCurrentBlock();
2164 if ($active == null )
2167 $description = $templates[0][
'description'];
2168 $image = $templates[0][
'thumbnail'];
2170 $description = $active[
'description'];
2171 $image = $active[
'thumbnail'];
2174 $this->tpl->setVariable(
"VAL_DESCRIPTION",$description);
2177 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
2178 $this->tpl->setVariable(
"BTN_NAME",
"insertScenario");
2179 $this->tpl->setVariable(
"TXT_CANCEL", $this->lng->txt(
"cancel"));
2180 $this->tpl->setVariable(
"TXT_INSERT", $this->lng->txt(
"insert"));
2181 $this->tpl->setVariable(
"TXT_CHANGE", $this->lng->txt(
"change"));
2183 $this->tpl->setVariable(
"TXT_TITLE",
"Choose Sequencing Template");
2185 $node_id =
$_POST[
"node_id"];
2186 $first_child =
$_POST[
"first_child"];
2191 $this->tpl->setVariable(
"VAL_NODE_ID", $node_id);
2192 $this->tpl->setVariable(
"VAL_FIRST_CHILD", $first_child);
2204 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004OrganizationHFormGUI.php");
2206 $slm_tree =&
new ilTree($this->object->getId());
2208 $slm_tree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
2210 $node_id =
$_POST[
"node_id"];
2212 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004PageNode.php");
2213 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
2214 include_once(
"./Modules/Scorm2004/classes/seq_editor/class.ilSCORM2004SeqTemplate.php");
2216 if (!
$_POST[
"first_child"])
2218 $parent_id = $slm_tree->getParentId($node_id);
2223 $parent_id = $node_id;
2228 $id = $template->insertTemplateForObjectAtParent($this->
object,$parent_id,$target);
2229 $ilCtrl->setParameter($this,
"highlight", $id);
2230 $ilCtrl->redirect($this,
"showOrganization",
"node_".$node_id);
2250 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004OrganizationHFormGUI.php");
2254 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.scormeditor_page_layout_chooser.html",
"Modules/Scorm2004");
2256 $this->tpl->setCurrentBlock(
"option_item");
2259 foreach ($arr_templates as $templ)
2263 $templ->readObject();
2264 $this->tpl->setVariable(
"VAL_LAYOUT_TITLE",$templ->getTitle());
2265 $this->tpl->setVariable(
"VAL_LAYOUT_IMAGE",$templ->getPreview());
2266 $this->tpl->setVariable(
"VAL_LAYOUT_ID",$templ->getId());
2267 $this->tpl->setVariable(
"VAL_DISPLAY",
"inline");
2269 $this->tpl->setVariable(
"VAL_CHECKED",
"checked");
2271 if ($count%4 == 0) {
2272 $this->tpl->setVariable(
"END_ROW",
"</tr>");
2274 if ($count == 1 || ($count-1)%4 == 0) {
2275 $this->tpl->setVariable(
"BEGIN_ROW",
"<tr>");
2277 $this->tpl->parseCurrentBlock();
2282 $rest = 4-($count%4);
2287 for ($i=1;$i<=
$rest;$i++) {
2288 $this->tpl->setVariable(
"VAL_DISPLAY",
"none");
2289 $this->tpl->setVariable(
"VAL_LAYOUT_ID",$templ->getId());
2292 $this->tpl->setVariable(
"END_ROW",
"</tr>");
2294 $this->tpl->parseCurrentBlock();
2304 $ilCtrl->saveParameter($this,
"obj_id");
2306 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
2308 $this->tpl->setVariable(
"BTN_NAME",
"insertTemplate");
2309 $this->tpl->setVariable(
"TXT_CANCEL", $this->lng->txt(
"cancel"));
2310 $this->tpl->setVariable(
"TXT_INSERT", $this->lng->txt(
"create"));
2311 $this->tpl->setVariable(
"CMD_CANCEL",
"showOrganization");
2313 $this->tpl->setVariable(
"TXT_CANCEL", $this->lng->txt(
"cancel"));
2314 $this->tpl->setVariable(
"TXT_INSERT", $this->lng->txt(
"insert"));
2315 $this->tpl->setVariable(
"TXT_CHANGE", $this->lng->txt(
"change"));
2316 if ($a_special_page)
2318 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"sahs_choose_special_page"));
2322 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"sahs_choose_page_template"));
2335 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004OrganizationHFormGUI.php");
2337 $slm_tree =&
new ilTree($this->object->getId());
2339 $slm_tree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
2342 $node_id =
$_POST[
"node_id"];
2343 $layout_id =
$_POST[
"layout_id"];
2346 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004PageNode.php");
2347 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
2349 if (!
$_POST[
"first_child"])
2351 $parent_id = $slm_tree->getParentId($node_id);
2356 $parent_id = $node_id;
2360 $page_ids = array();
2361 for ($i = 1; $i <= $num; $i++)
2364 $page->setTitle($lng->txt(
"sahs_new_page"));
2365 $page->setSLMId($this->object->getId());
2366 $page->create(
false,$layout_id);
2368 $page_ids[] = $page->getId();
2370 $page_ids = array_reverse($page_ids);
2371 $page_ids = implode($page_ids,
":");
2375 if (
$_GET[
"obj_id"] !=
"")
2381 $ilCtrl->setParameter($this,
"highlight", $page_ids);
2382 $ilCtrl->redirect($this,
"showOrganization",
"node_".$node_id);
2392 $_GET[
"scexpand"] =
"";
2393 $mtree = $this->
object->getTree();
2394 $n_id = (
$_GET[
"obj_id"] > 0)
2396 : $mtree->readRootId();
2397 $stree = $mtree->getSubTree($mtree->getNodeData($n_id));
2399 foreach ($stree as
$n)
2401 $n_arr[] = $n[
"child"];
2412 $_GET[
"scexpand"] =
"";
2413 $mtree = $this->
object->getTree();
2414 $n_id = (
$_GET[
"obj_id"] > 0)
2416 : $mtree->readRootId();
2417 $stree = $mtree->getSubTree($mtree->getNodeData($n_id));
2419 foreach ($stree as
$n)
2421 if (in_array($n[
"child"], $old) && $n[
"child"] != $n_id)
2423 $k = array_search($n[
"child"], $old);
2438 if (is_array(
$_POST[
"title"]))
2440 include_once(
"./Services/MetaData/classes/class.ilMD.php");
2441 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004NodeFactory.php");
2442 foreach(
$_POST[
"title"] as $id => $title)
2445 if (is_object($node_obj))
2448 $md =
new ilMD($this->object->getId(), $id, $node_obj->getType());
2459 $ilCtrl->redirect($this,
"showOrganization");
2474 $this->
ilias->raiseError($this->lng->txt(
"no_checkbox"),$this->
ilias->error_obj->MESSAGE);
2480 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
2483 if ($a_form_action ==
"")
2486 ?
"showOrganization" 2488 $this->ctrl->setParameter($this,
"backcmd",
$cmd);
2489 $a_form_action = $this->ctrl->getFormAction($this);
2491 $confirmation_gui->setFormAction($a_form_action);
2492 $confirmation_gui->setHeaderText($this->lng->txt(
"info_delete_sure"));
2495 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004NodeFactory.php");
2496 foreach(
$_POST[
"id"] as $id)
2501 $confirmation_gui->addItem(
"id[]", $node_obj->getId(),
2506 $confirmation_gui->setCancel($lng->txt(
"cancel"),
"cancelDelete");
2507 $confirmation_gui->setConfirm($lng->txt(
"confirm"),
"confirmedDelete");
2509 $tpl->setContent($confirmation_gui->getHTML());
2517 $this->ctrl->redirect($this,
$_GET[
"backcmd"]);
2528 $tree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
2529 $tree->setTreeTablePK(
"slm_id");
2532 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004NodeFactory.php");
2533 foreach (
$_POST[
"id"] as $id)
2538 $node_data =
$tree->getNodeData($id);
2539 if (is_object($obj))
2541 $obj->setSLMId($this->object->getId());
2550 if(
$tree->isInTree($id))
2552 $tree->deleteTree($node_data);
2565 $ilCtrl->redirect($this,
"showOrganization");
2576 $this->
object->executeDragDrop(
$_POST[
"il_hform_source_id"],
$_POST[
"il_hform_target_id"],
2578 $ilCtrl->redirect($this,
"showOrganization");
2588 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
2592 foreach($items as $k => $item)
2599 foreach($todel as $k)
2606 $ilCtrl->redirect($this, $a_return);
2611 include_once(
"./Modules/LearningModule/classes/class.ilEditClipboard.php");
2615 $ilCtrl->redirect($this, $a_return);
2625 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
2629 foreach($items as $k => $item)
2636 foreach($todel as $k)
2644 $ilCtrl->redirect($this, $a_return);
2649 include_once(
"./Modules/LearningModule/classes/class.ilEditClipboard.php");
2654 $ilCtrl->redirect($this, $a_return);
2664 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
2667 $ilCtrl->redirect($this,
"showOrganization",
2678 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
2681 $ilCtrl->redirect($this,
"showOrganization",
2692 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
2695 $ilCtrl->redirect($this,
"showOrganization",
2706 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
2709 $ilCtrl->redirect($this,
"showOrganization",
2720 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004OrganizationHFormGUI.php");
2726 $pf.=
'<input type="hidden" name="'.$f.
'" value="'.$v.
'" />';
2728 if ($a_confirm && is_array(
$_POST[
"node"]))
2730 foreach (
$_POST[
"node"] as $f => $v)
2732 $pf.=
'<input type="hidden" name="node['.$f.
']" value="'.$v.
'" />';
2740 include_once(
"./Modules/Scorm2004/classes/class.ilLMChapterImportForm.php");
2742 $tpl->setContent($form->getHTML().$pf.
"</form>");
2744 $ilTabs->clearTargets();
2745 $ilToolbar->setFormAction($ilCtrl->getFormAction($this));
2748 if ($form->isCorrect())
2750 $ilToolbar->addFormButton($lng->txt(
"insert"),
"performLMChapterInsert");
2752 $ilToolbar->addFormButton($lng->txt(
"back"),
"insertLMChapterClip");
2756 $ilToolbar->addFormButton($lng->txt(
"check"),
"confirmLMChapterInsert");
2758 $ilToolbar->addFormButton($lng->txt(
"cancel"),
"showOrganization");
2759 $ilToolbar->setCloseFormTag(
false);
2779 include_once(
"./Modules/Scorm2004/classes/class.ilLMChapterImportForm.php");
2781 $form->performInserts();
2783 $this->ctrl->redirect($this,
"showOrganization");
2789 $export->buildExportFile();
2791 $this->ctrl->redirect($this,
"showExportList");
2797 $export->buildExportFile();
2799 $this->ctrl->redirect($this,
"showExportList");
2805 $export->buildExportFile();
2807 $this->ctrl->redirect($this,
"showExportList");
2813 $export->buildExportFile();
2815 $this->ctrl->redirect($this,
"showExportList");
2821 $export->buildExportFile();
2823 $this->ctrl->redirect($this,
"showExportList");
2829 if(!$export->buildExportFile())
2831 if(!PATH_TO_MKISOFS)
2832 $this->
ilias->raiseError($this->lng->txt(
"no_mkisofs_configured"),$this->
ilias->error_obj->MESSAGE);
2834 $this->ctrl->redirect($this,
"showExportList");
2840 $export->buildExportFile();
2841 $this->ctrl->redirect($this,
"showExportList");
2846 $export =
new ilSCORM2004Export($this->
object);
2848 $export_dir = $export->getExportDirectoryForType(
$_GET[
'type']);
2857 if(!isset(
$_POST[
"file"]))
2860 $this->ctrl->redirect($this,
"showExportList");
2864 $export_files = $this->
object->getExportFiles();
2866 include_once
"./Modules/Scorm2004/classes/class.ilSCORM2004ExportTableGUI.php";
2869 foreach ($export_files as $exp_file)
2871 foreach (
$_POST[
'file'] as $delete_file)
2873 if (strcmp($delete_file, $exp_file[
'file']) == 0)
2875 $public_str = ($exp_file[
"file"] == $this->
object->getPublicExportFile($exp_file[
"type"]))
2876 ?
" <b>(".$this->lng->txt(
"public").
")<b>" 2878 $file_arr = explode(
"__", $exp_file[
"file"]);
2883 $table_gui->setData(
$data);
2884 $this->tpl->setVariable(
'ADM_CONTENT', $table_gui->getHTML());
2893 $this->ctrl->redirect($this,
"showExportList");
2902 include_once
"./Services/Utilities/classes/class.ilUtil.php";
2903 $export =
new ilSCORM2004Export($this->
object);
2906 $export_dir = $export->getExportDirectoryForType(
$_POST[
'type'][$idx]);
2907 $exp_file = $export_dir.
"/".
$file;
2908 if (@is_file($exp_file))
2914 $this->ctrl->redirect($this,
"showExportList");
2922 if(!isset(
$_POST[
"file"]))
2924 $this->
ilias->raiseError($this->lng->txt(
"no_checkbox"),$this->
ilias->error_obj->MESSAGE);
2926 if (count(
$_POST[
"file"]) > 1)
2928 $this->
ilias->raiseError($this->lng->txt(
"cont_select_max_one_item"),$this->
ilias->error_obj->MESSAGE);
2931 $export =
new ilSCORM2004Export($this->
object);
2935 if ($this->object->getPublicExportFile($type) ==
$file)
2937 $this->
object->setPublicExportFile($type,
"");
2941 $this->
object->setPublicExportFile($type,
$file);
2943 $this->
object->update();
2944 $this->ctrl->redirect($this,
"showExportList");
2955 $zipfile = $export->buildExportFile();
2956 $zipPathinfo = pathinfo($zipfile);
2957 $file_path = $this->
object->getDataDirectory().
"/".($zipPathinfo[
"basename"]);
2958 copy($zipfile,$file_path);
2965 include_once (
"./Modules/Scorm2004/classes/ilSCORM13Package.php");
2967 $rte_pkg->il_import($this->object->getDataDirectory(),$this->
object->getId(),
$ilias,
false,
true);
2974 ilUtil::redirect(
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=".$this->object->getRefID().
"&envEditor=1");
cancelDeleteExportFile()
cancel deletion of export files
insertLMChapterClip($a_confirm=false, $a_perform=false)
Insert chapter from clipboard.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
Select file for being added into file lists.
Class ilSCORM2004Condition.
jumpToNode($a_anchor_node="", $a_highlight_ids="")
setSelectableTypes($a_types)
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
This class represents an option in a radio group.
Class ilSCORM2004PageNode.
Class ilObjSCORMLearningModuleGUI.
getNotesHTML($a_mode="")
Get notes HTML.
deleteStyle()
Delete Style.
insertTemplate($a_redirect=true)
Insert (multiple) pages at node.
createGlossary()
Create glossary.
static putInTree($a_obj, $a_parent_id="", $a_target_node_id="")
put this object into content object tree
static clipboardCopy($a_slm_obj_id, $a_ids)
Copy a set of chapters/pages/scos into the clipboard.
insertScenarioGUI()
Insert sequencing scenario at node.
TableGUI class for learning objectives alignments.
setValue($a_value)
Set Value.
insertSpecialPage($a_redirect=true)
Insert special page.
checkIfAnyoneIsInOfflineMode($obj_id)
insertChapter($a_redirect=true)
Insert (multiple) chapters at node.
detachGlossary()
Detach glossary.
initPropertiesEditableForm()
Init properties (editable) form.
saveProperties()
save scorm 2004 module properties
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
saveGlossary()
Save glossary form.
Class ilSCORM2004TrackingItemsPerUserFilterGUI.
copyItems($a_return="showOrganization")
Copy items to clipboard.
saveAllTitles($a_redirect=true)
Save all titles of chapters/scos/pages.
setSubTabs($a_main_tab, $a_active)
Set sub tabs.
static _updateStatus($a_obj_id, $a_usr_id, $a_obj=null, $a_percentage=false, $a_force_raise=false)
Update status.
removeCMIDataForUserAndPackage($user_id, $packageId)
insertChapterClip()
Insert chapter from clipboard.
setValue($a_value)
Set Value.
static unzip($a_file, $overwrite=false, $a_flat=false)
unzip file
insertSco($a_redirect=true)
Insert (multiple) scos at node.
getTemplate()
output main header (title and locator)
Class ilSCORM2004Chapter.
deleteNodes($a_form_action="")
confirm deletion screen of chapters/scos/pages
ilObjectGUI($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
Constructor public.
static _lookupTitle($a_id)
lookup object title
insertPage($a_redirect=true)
Insert (multiple) pages at node.
static insertPageClip($a_slm_obj)
Insert pages from clipboard.
cutItems($a_return="showOrganization")
Copy items to clipboard, then cut them from the current tree.
activateExpertMode()
Activate expert mode.
static insertScoClip($a_slm_obj)
Insert scos from clipboard.
insertScenario()
Insert sequencing scenario at node.
setSettingsSubTabs()
set Tabs for settings
expandAll($a_redirect=true)
Expand all.
showTree()
Show Editing Tree.
frameset($a_to_organization=false)
output main frameset of media pool left frame: explorer tree of folders right frame: media pool conte...
insertChapterClip($a_slm_obj, $a_as_sub=false)
Insert Chapter from clipboard.
insertAssetClip()
Insert assets from clipboard.
Class ilSCORM2004TrackingItemsPerScoFilterGUI.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
Class ilSCORM2004TrackingItemsTableGUI.
setValue($a_value)
Set Value.
if(!is_array($argv)) $options
static getInstance($a_slm_object, $a_id=0, $a_halt=true)
confirmedDeleteTracking()
Confirmed tracking deletion.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static formSelect($selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
Builds a select form field with options and shows the selected option first.
initStylePropertiesForm()
Init style properties form.
static _lookupType($a_obj_id)
Lookup Type.
ilObjSCORM2004LearningModuleGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true)
Constructor.
confirmDeleteExportFile()
confirmation screen for export file deletion
static _lookupObjId($a_id)
special template class to simplify handling of ITX/PEAR
insertTemplateGUI($a_redirect=true, $a_special_page=false)
Displays GUI to select template for page.
This class represents a text property in a property form.
static formatDate(ilDateTime $date)
Format a date public.
_lookupSubType($a_obj_id)
lookup subtype id (scorm, aicc, hacp)
_getStandardStyles($a_exclude_default_style=false, $a_include_deactivated=false, $a_scope=0)
Get standard styles.
Class ilSCORM2004PageNodeGUI.
redirection script todo: (a better solution should control the processing via a xml file) ...
createStyle()
Create Style.
getPropertiesEditableValues()
Get current values for properties (editable) from.
Export class for SCORM 2004 object.
static clear($a_var)
Unset a value.
showLearningObjectivesAlignment()
Show Learning Objectives Alignment.
setMaxLength($a_maxlength)
Set Max Length.
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 uniqueTypesCheck($a_items)
Check for unique types (all pages or all chapters or all scos)
static availableTemplates()
static deliverFile($a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
collapseAll($a_redirect=true)
Collapse all.
initGlossaryCreationForm()
Init glossary creation form.
saveStyleSettings()
Save style settings.
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
editOrganization($a_to_organization=true)
Edit organization (called from listgui, must setup frameset)
static _lookupType($a_id, $a_reference=false)
lookup object type
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.
showOrganization($a_top_node=0, $a_form_action="", $a_title="", $a_icon="", $a_gui_obj=null, $a_gui_cmd="")
Show subhiearchy of chapters, scos and pages.
Class ilSCORM2004Chapter.
static stripSlashesArray($a_arr, $a_strip_html=true, $a_allow="")
Strip slashes from array.
showTrackingItemsBySco()
show tracking data
insertPageClip()
Insert pages from clipboard.
saveSequencing()
Save sequencing.
_lookupStandard($a_id)
Lookup standard flag.
showSequencing()
Show Sequencing.
insertScoClip()
Insert scos from clipboard.
selectExport()
Select the export type of the SCORM 2004 module.
editStyleProperties()
Edit Stlye Properties.
static getParticipantsForObject($a_ref_id)
Get participant ids for given object.
This class represents a non editable value in a property form.
clipboardCut($a_slm_obj_id, $a_ids)
Cut and copy a set of chapters/pages into the clipboard.
SCORM editor explorer GUI class.
static renameExecutables($a_dir)
Rename uploaded executables for security reasons.
proceedDragDrop()
Perform drag and drop action.
Class ilObjSCORM2004LearningModule.
This class represents a text area property in a property form.
getTabs(&$tabs_gui)
Adds tabs to tab gui object.
Class ilSCORM2004ChapterGUI.
confirmedDelete($a_redirect=true)
Delete chapters/scos/pages.
assignObject()
assign scorm object to scorm gui object
static initjQuery($a_tpl=null)
Init jQuery.
static activeLayouts($a_special_page=false, $a_module=null)
Get active layouts.
insertAsset($a_redirect=true)
Insert (multiple) assets at node.
cancelDelete()
cancel delete
Class ilSCORM2004ChapterGUI.
confirmLMChapterInsert()
Confirm lm chapter insert.
setTabs()
output main frameset of media pool left frame: explorer tree of folders right frame: media pool conte...
showExportList()
Show Export List.
static yn2tf($a_yn)
convert "y"/"n" to true/false
static _writeTitle($a_obj_id, $a_title)
Write Title.
static redirect($a_script)
http redirect to other script
addHeaderAction()
Add header action menu.
initPropertiesForm()
Initialize properties form.
deleteExportFile()
delete export files
static insertAssetClip($a_slm_obj, $a_type="ass")
Insert assets from clipboard.
Class ilSCORM2004AssetGUI.
assignGlossary()
Assign glossary.
performLMChapterInsert()
Perform lm chapter insert.
selectGlossary()
Select glossary.
getEditTree()
Get editing tree object.
properties()
Scorm 2004 module properties.
Confirmation screen class.
Class ilObjSCORMLearningModuleGUI.
confirmExpertMode()
Confirm activation of expert mode.
executeCommand()
execute command