4 require_once(
"./Modules/LearningModule/classes/class.ilLMPageObject.php");
5 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
33 if ((
$_SESSION[
"il_link_cont_obj"] !=
"" && !$tree->isInTree(
$_SESSION[
"il_link_cont_obj"])) ||
34 (
$_SESSION[
"il_link_glossary"] !=
"" && !$tree->isInTree(
$_SESSION[
"il_link_glossary"])) ||
42 $this->ilias =& $ilias;
44 $this->ctrl->saveParameter($this, array(
"linkmode",
"target_type"));
45 $this->default_type = $a_default_type;
46 $this->default_obj = $a_default_obj;
47 $this->filter_link_types = array();
56 switch($this->link_type)
59 case "StructureObject":
60 if (empty(
$_SESSION[
"il_link_cont_obj"]) &&
61 ($def_type !=
"mep" && $def_type !=
"glo"))
68 if (empty(
$_SESSION[
"il_link_glossary"]) && $def_type ==
"glo")
75 if (empty(
$_SESSION[
"il_link_mep"]) && $def_type ==
"mep")
91 $ltype = (
$_SESSION[
"il_link_type"] ==
"")
94 $ltype_arr = explode(
"_", $ltype);
95 $this->link_type = ($ltype_arr[0] ==
"")
98 $this->link_target = $ltype_arr[1];
103 $this->mode = $a_mode;
108 $this->set_link_script = $a_script;
113 $this->
return = $a_return;
123 $this->filter_link_types[] = $a_link_type;
128 $next_class = $this->ctrl->getNextClass($this);
130 $cmd = $this->ctrl->getCmd(
"showLinkHelp");
157 if ($this->
return ==
"")
159 $this->ctrl->returnToParent($this);
172 include_once(
"./Services/COPage/classes/class.ilPageEditorGUI.php");
175 $str = htmlspecialchars($str, ENT_QUOTES);
188 $target_str = ($this->link_target ==
"")
190 :
" target=\"".$this->link_target.
"\"";
192 if(($this->link_type ==
"GlossaryItem") &&
197 if(($this->link_type ==
"PageObject" || $this->link_type ==
"StructureObject") &&
203 $tpl =&
new ilTemplate(
"tpl.link_help.html",
true,
true,
"Modules/LearningModule");
206 switch($this->link_type)
209 $this->ctrl->setParameter($this,
"target_type",
"glo");
213 case "StructureObject":
214 $this->ctrl->setParameter($this,
"target_type",
"cont_obj");
218 $this->ctrl->setParameter($this,
"target_type",
"mep");
228 $tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
229 $tpl->setVariable(
"FORMACTION2", $this->ctrl->getFormAction($this));
230 $tpl->setVariable(
"TXT_HELP_HEADER", $this->lng->txt(
"cont_link_select"));
231 $tpl->setVariable(
"TXT_TYPE", $this->lng->txt(
"cont_link_type"));
232 $ltypes = array(
"StructureObject" => $this->lng->txt(
"cont_lk_chapter"),
233 "StructureObject_New" => $this->lng->txt(
"cont_lk_chapter_new"),
234 "PageObject" => $this->lng->txt(
"cont_lk_page"),
235 "PageObject_FAQ" => $this->lng->txt(
"cont_lk_page_faq"),
236 "PageObject_New" => $this->lng->txt(
"cont_lk_page_new"),
237 "GlossaryItem" => $this->lng->txt(
"cont_lk_term"),
238 "GlossaryItem_New" => $this->lng->txt(
"cont_lk_term_new"),
239 "Media" => $this->lng->txt(
"cont_lk_media_inline"),
240 "Media_Media" => $this->lng->txt(
"cont_lk_media_media"),
241 "Media_FAQ" => $this->lng->txt(
"cont_lk_media_faq"),
242 "Media_New" => $this->lng->txt(
"cont_lk_media_new"),
243 "RepositoryItem" => $this->lng->txt(
"cont_repository_item")
247 foreach($this->filter_link_types as
$link_type)
249 unset($ltypes[$link_type]);
252 $ltype = ($this->link_target !=
"")
253 ? $this->link_type.
"_".$this->link_target
259 "ltype", $ltypes,
false,
true);
260 $tpl->setVariable(
"SELECT_TYPE", $select_ltype);
261 $tpl->setVariable(
"CMD_CHANGETYPE",
"changeLinkType");
262 $tpl->setVariable(
"BTN_CHANGETYPE", $this->lng->txt(
"cont_change_type"));
270 $tpl->setVariable(
"CMD_CLOSE",
"closeLinkHelp");
271 $tpl->setVariable(
"BTN_CLOSE", $this->lng->txt(
"close"));
274 $chapterRowBlock =
"chapter_row";
275 $anchor_row_block =
"anchor_link";
278 $chapterRowBlock .=
"_js";
279 $anchor_row_block .=
"_js";
285 switch($this->link_type)
291 require_once(
"./Modules/LearningModule/classes/class.ilObjLearningModule.php");
294 else if (
$type ==
"dbk")
296 require_once(
"./Modules/LearningModule/classes/class.ilObjDlBook.php");
301 $ctree =& $cont_obj->getLMTree();
302 $nodes = $ctree->getSubtree($ctree->getNodeData($ctree->getRootId()));
303 $tpl->setCurrentBlock(
"chapter_list");
304 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->lng->txt(
"cont_content_obj"));
305 $tpl->setVariable(
"TXT_CONT_TITLE", $cont_obj->getTitle());
306 $tpl->setCurrentBlock(
"change_cont_obj");
307 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
308 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->lng->txt(
"change"));
309 $tpl->parseCurrentBlock();
311 foreach($nodes as $node)
313 if($node[
"type"] ==
"st")
315 $tpl->setCurrentBlock(
"chapter_row");
316 $tpl->setVariable(
"TXT_CHAPTER", $node[
"title"]);
317 $tpl->setVariable(
"ROWCLASS",
"tblrow1");
320 $tpl->parseCurrentBlock();
323 if($node[
"type"] ==
"pg")
328 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
329 require_once(
"./Services/MediaObjects/classes/class.ilImageMapEditorGUI.php");
331 $tpl->setCurrentBlock(
"link_row");
332 $tpl->setVariable(
"ROWCLASS",
"tblrow2");
333 $tpl->setVariable(
"TXT_CHAPTER", $node[
"title"]);
334 $tpl->setVariable(
"LINK_TARGET",
"content");
335 $tpl->setVariable(
"LINK",
337 "linktype=PageObject".
338 "&linktarget=il__pg_".$node[
"obj_id"].
339 "&linktargetframe=".$this->link_target));
340 $tpl->parseCurrentBlock();
345 if (count($anchors) > 0)
347 foreach ($anchors as $anchor)
349 $tpl->setCurrentBlock($anchor_row_block);
350 $tpl->setVariable(
"TXT_LINK",
"#".$anchor);
351 $tpl->setVariable(
"HREF_LINK",
352 $this->
prepareJavascriptOutput(
"[iln page=\"".$node[
"obj_id"].
"\"".$target_str.
" anchor=\"$anchor\"] [/iln]"));
353 $tpl->parseCurrentBlock();
356 $tpl->setCurrentBlock($chapterRowBlock);
357 $tpl->setVariable(
"TXT_CHAPTER", $node[
"title"]);
360 $tpl->setVariable(
"TXT_CHAPTER_JS", htmlspecialchars(str_replace(
"'",
"\'", $node[
"title"])));
362 $tpl->setVariable(
"ROWCLASS",
"tblrow2");
363 $tpl->setVariable(
"LINK_CHAPTER",
365 $tpl->parseCurrentBlock();
369 $tpl->setCurrentBlock(
"row");
370 $tpl->parseCurrentBlock();
375 $free_pages = array();
376 foreach ($pages as $page)
378 if (!$ctree->isInTree($page[
"obj_id"]))
380 $free_pages[] = $page;
383 if(count($free_pages) > 0)
385 $tpl->setCurrentBlock(str_replace(
"_js",
"",$chapterRowBlock));
386 $tpl->setVariable(
"TXT_CHAPTER", $this->lng->txt(
"cont_free_pages"));
387 $tpl->setVariable(
"ROWCLASS",
"tblrow1");
388 $tpl->parseCurrentBlock();
390 foreach ($free_pages as $node)
395 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
396 require_once(
"./Services/MediaObjects/classes/class.ilImageMapEditorGUI.php");
398 $tpl->setCurrentBlock(
"link_row");
399 $tpl->setVariable(
"ROWCLASS",
"tblrow2");
400 $tpl->setVariable(
"TXT_CHAPTER", $node[
"title"]);
401 $tpl->setVariable(
"LINK_TARGET",
"content");
402 $tpl->setVariable(
"LINK",
404 "linktype=PageObject".
405 "&linktarget=il__pg_".$node[
"obj_id"].
406 "&linktargetframe=".$this->link_target));
407 $tpl->parseCurrentBlock();
411 $tpl->setCurrentBlock($chapterRowBlock);
412 $tpl->setVariable(
"TXT_CHAPTER", $node[
"title"]);
415 $tpl->setVariable(
"TXT_CHAPTER_JS", htmlspecialchars(str_replace(
"'",
"\'", $node[
"title"])));
417 $tpl->setVariable(
"ROWCLASS",
"tblrow2");
418 $tpl->setVariable(
"LINK_CHAPTER",
420 $tpl->parseCurrentBlock();
426 $tpl->setCurrentBlock(
"chapter_list");
427 $tpl->parseCurrentBlock();
432 case "StructureObject":
437 require_once(
"./Modules/LearningModule/classes/class.ilObjLearningModule.php");
440 else if (
$type ==
"dbk")
442 require_once(
"./Modules/LearningModule/classes/class.ilObjDlBook.php");
447 $ctree =& $cont_obj->getLMTree();
448 $nodes = $ctree->getSubtree($ctree->getNodeData($ctree->getRootId()));
449 $tpl->setCurrentBlock(
"chapter_list");
450 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->lng->txt(
"cont_content_obj"));
451 $tpl->setVariable(
"TXT_CONT_TITLE", $cont_obj->getTitle());
452 $tpl->setCurrentBlock(
"change_cont_obj");
453 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
454 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->lng->txt(
"change"));
455 $tpl->parseCurrentBlock();
457 foreach($nodes as $node)
459 if($node[
"type"] ==
"st")
461 $css_row = ($css_row ==
"tblrow1")
468 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
469 require_once(
"./Services/MediaObjects/classes/class.ilImageMapEditorGUI.php");
471 $tpl->setCurrentBlock(
"link_row");
472 $tpl->setVariable(
"ROWCLASS", $css_row);
473 $tpl->setVariable(
"TXT_CHAPTER", $node[
"title"]);
474 $tpl->setVariable(
"LINK_TARGET",
"content");
475 $tpl->setVariable(
"LINK",
477 "linktype=StructureObject".
478 "&linktarget=il__st_".$node[
"obj_id"].
479 "&linktargetframe=".$this->link_target));
480 $tpl->parseCurrentBlock();
484 $tpl->setCurrentBlock($chapterRowBlock);
485 $tpl->setVariable(
"ROWCLASS", $css_row);
486 $tpl->setVariable(
"TXT_CHAPTER", $node[
"title"]);
489 $tpl->setVariable(
"TXT_CHAPTER_JS", htmlspecialchars(str_replace(
"'",
"\'", $node[
"title"])));
491 $tpl->setVariable(
"LINK_CHAPTER",
493 $tpl->parseCurrentBlock();
497 $tpl->setCurrentBlock(
"row");
498 $tpl->parseCurrentBlock();
500 $tpl->setCurrentBlock(
"chapter_list");
501 $tpl->parseCurrentBlock();
506 require_once(
"./Modules/Glossary/classes/class.ilObjGlossary.php");
510 $terms = $glossary->getTermList();
511 $tpl->setCurrentBlock(
"chapter_list");
512 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->lng->txt(
"glossary"));
513 $tpl->setVariable(
"TXT_CONT_TITLE", $glossary->getTitle());
514 $tpl->setCurrentBlock(
"change_cont_obj");
515 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
516 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->lng->txt(
"change"));
517 $tpl->parseCurrentBlock();
519 foreach($terms as $term)
521 $css_row = ($css_row ==
"tblrow1")
528 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
529 require_once(
"./Services/MediaObjects/classes/class.ilImageMapEditorGUI.php");
531 $tpl->setCurrentBlock(
"link_row");
532 $tpl->setVariable(
"ROWCLASS",
"tblrow2");
533 $tpl->setVariable(
"TXT_CHAPTER", $term[
"term"]);
534 $tpl->setVariable(
"LINK_TARGET",
"content");
535 $tpl->setVariable(
"LINK",
537 "linktype=GlossaryItem".
538 "&linktarget=il__git_".$term[
"id"].
539 "&linktargetframe=".$this->link_target));
540 $tpl->parseCurrentBlock();
544 $tpl->setCurrentBlock($chapterRowBlock);
545 $tpl->setVariable(
"ROWCLASS", $css_row);
546 $tpl->setVariable(
"TXT_CHAPTER", $term[
"term"]);
549 $tpl->setVariable(
"TXT_CHAPTER_JS", htmlspecialchars(str_replace(
"'",
"\'", $term[
"term"])));
552 $tpl->setVariable(
"LINK_CHAPTER",
554 $tpl->parseCurrentBlock();
555 $tpl->setCurrentBlock(
"row");
556 $tpl->parseCurrentBlock();
561 $tpl->setCurrentBlock(
"chapter_list");
562 $tpl->parseCurrentBlock();
567 include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolItem.php");
572 $tpl->setCurrentBlock(
"change_cont_obj");
573 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
574 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->lng->txt(
"change"));
575 $tpl->parseCurrentBlock();
576 $mobjs = $this->ilias->account->getClipboardObjects(
"mob");
579 foreach ($mobjs as $obj)
581 $objs[$obj[
"title"].
":".$obj[
"id"]] = $obj;
584 $tpl->setCurrentBlock(
"chapter_list");
585 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->lng->txt(
"cont_media_source"));
586 $tpl->setVariable(
"TXT_CONT_TITLE", $this->lng->txt(
"cont_personal_clipboard"));
587 $tpl->setVariable(
"COLSPAN",
"2");
589 foreach($objs as $obj)
594 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
595 require_once(
"./Services/MediaObjects/classes/class.ilImageMapEditorGUI.php");
597 $tpl->setCurrentBlock(
"link_row");
599 $tpl->setCurrentBlock(
"link_row");
601 $tpl->setCurrentBlock(
"link_row");
602 $tpl->setVariable(
"ROWCLASS",
"tblrow2");
603 $tpl->setVariable(
"TXT_CHAPTER", $obj[
"title"]);
604 $tpl->setVariable(
"LINK_TARGET",
"content");
605 $tpl->setVariable(
"LINK",
607 "linktype=MediaObject".
608 "&linktarget=il__mob_".$obj[
"id"].
609 "&linktargetframe=".$this->link_target));
610 $tpl->parseCurrentBlock();
614 $tpl->setCurrentBlock($chapterRowBlock);
616 $tpl->setCurrentBlock($chapterRowBlock);
617 $tpl->setVariable(
"TXT_CHAPTER", $obj[
"title"]);
620 $tpl->setVariable(
"TXT_CHAPTER_JS", htmlspecialchars(str_replace(
"'",
"\'", $obj[
"title"])));
622 $tpl->setVariable(
"ROWCLASS",
"tblrow1");
623 if (!empty($target_str))
625 $tpl->setVariable(
"LINK_CHAPTER",
630 $tpl->setVariable(
"LINK_CHAPTER",
633 $tpl->parseCurrentBlock();
634 $tpl->setCurrentBlock(
"row");
635 $tpl->parseCurrentBlock();
639 $tpl->setCurrentBlock(
"chapter_list");
640 $tpl->parseCurrentBlock();
644 require_once(
"./Modules/MediaPool/classes/class.ilObjMediaPool.php");
647 $fobjs = $med_pool->getChilds(
$_SESSION[
"il_link_mep_obj"],
"fold");
649 foreach ($fobjs as $obj)
651 $f2objs[$obj[
"title"].
":".$obj[
"child"]] = $obj;
655 $mobjs = $med_pool->getChilds(
$_SESSION[
"il_link_mep_obj"],
"mob");
657 foreach ($mobjs as $obj)
659 $m2objs[$obj[
"title"].
":".$obj[
"child"]] = $obj;
664 $objs = array_merge($f2objs, $m2objs);
666 $tpl->setCurrentBlock(
"chapter_list");
667 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->lng->txt(
"mep"));
668 $tpl->setVariable(
"TXT_CONT_TITLE", $med_pool->getTitle());
669 $tpl->setCurrentBlock(
"change_cont_obj");
670 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
671 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->lng->txt(
"change"));
672 $tpl->setVariable(
"COLSPAN",
"2");
673 $tpl->parseCurrentBlock();
674 if ($parent_id = $med_pool->getParentId(
$_SESSION[
"il_link_mep_obj"]))
676 $css_row =
"tblrow1";
677 $tpl->setCurrentBlock(
"icon");
679 $tpl->parseCurrentBlock();
680 $tpl->setCurrentBlock(
"link_row");
681 $tpl->setVariable(
"ROWCLASS", $css_row);
682 $tpl->setVariable(
"TXT_CHAPTER",
"..");
683 $this->ctrl->setParameter($this,
"mep_fold", $parent_id);
684 $tpl->setVariable(
"LINK",
685 $this->ctrl->getLinkTarget($this,
"setMedPoolFolder"));
686 $tpl->parseCurrentBlock();
687 $tpl->setCurrentBlock(
"row");
688 $tpl->parseCurrentBlock();
690 foreach($objs as $obj)
692 if($obj[
"type"] ==
"fold")
694 $css_row = ($css_row ==
"tblrow2")
697 $tpl->setCurrentBlock(
"icon");
699 $tpl->parseCurrentBlock();
700 $tpl->setCurrentBlock(
"link_row");
701 $tpl->setVariable(
"ROWCLASS", $css_row);
702 $tpl->setVariable(
"TXT_CHAPTER", $obj[
"title"]);
703 $this->ctrl->setParameter($this,
"mep_fold", $obj[
"child"]);
704 $tpl->setVariable(
"LINK",
705 $this->ctrl->getLinkTarget($this,
"setMedPoolFolder"));
706 $tpl->parseCurrentBlock();
713 $css_row = ($css_row ==
"tblrow2")
719 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
720 require_once(
"./Services/MediaObjects/classes/class.ilImageMapEditorGUI.php");
722 $tpl->setCurrentBlock(
"link_row");
724 $tpl->setCurrentBlock(
"link_row");
725 $tpl->setVariable(
"ROWCLASS", $css_row);
726 $tpl->setVariable(
"TXT_CHAPTER", $obj[
"title"]);
727 $tpl->setVariable(
"LINK_TARGET",
"content");
728 $tpl->setVariable(
"LINK",
730 "linktype=MediaObject".
731 "&linktarget=il__mob_".$fid.
732 "&linktargetframe=".$this->link_target));
733 $tpl->parseCurrentBlock();
737 $tpl->setCurrentBlock($chapterRowBlock);
739 $tpl->setCurrentBlock($chapterRowBlock);
740 $tpl->setVariable(
"ROWCLASS", $css_row);
741 $tpl->setVariable(
"TXT_CHAPTER", $obj[
"title"]);
744 $tpl->setVariable(
"TXT_CHAPTER_JS", htmlspecialchars(str_replace(
"'",
"\'", $obj[
"title"])));
746 if ($target_str !=
"")
748 $tpl->setVariable(
"LINK_CHAPTER",
753 $tpl->setVariable(
"LINK_CHAPTER",
756 $tpl->parseCurrentBlock();
761 $tpl->setCurrentBlock(
"row");
762 $tpl->parseCurrentBlock();
764 $tpl->setCurrentBlock(
"chapter_list");
765 $tpl->parseCurrentBlock();
770 case "RepositoryItem":
789 $med =& $mob->getMediaItem(
"Standard");
790 $target = $med->getThumbnailTarget(
"small");
791 if ($a_mode ==
"link")
793 $tpl->setCurrentBlock(
"thumbnail_link");
797 $tpl->setCurrentBlock(
"thumbnail_js");
801 $tpl->setCurrentBlock(
"thumbnail");
805 $tpl->setCurrentBlock(
"thumb");
806 $tpl->setVariable(
"SRC_THUMB", $target);
807 $tpl->parseCurrentBlock();
811 $tpl->setVariable(
"NO_THUMB",
" ");
814 if ($a_mode ==
"link")
816 $tpl->setCurrentBlock(
"thumbnail_link");
821 $tpl->setCurrentBlock(
"thumbnail_js");
825 $tpl->setCurrentBlock(
"thumbnail");
827 $tpl->parseCurrentBlock();
857 if(
$_GET[
"do"] ==
"set")
859 switch (
$_GET[
"target_type"])
879 $a_type =
$_GET[
"target_type"];
882 $tpl =&
new ilTemplate(
"tpl.link_help_explorer.html",
true,
true,
"Modules/LearningModule");
885 require_once
"classes/class.ilExplorer.php";
891 $this->ctrl->getTargetScript(),
"do=set"));
892 if (
$_GET[
"expand"] ==
"")
894 $expanded = $this->tree->readRootId();
898 $expanded =
$_GET[
"expand"];
900 $exp->setExpand($expanded);
903 $exp->setTargetGet(
"sel_id");
904 $this->ctrl->setParameter($this,
"target_type", $a_type);
905 $exp->setParamsGet($this->ctrl->getParameterArray($this,
"changeTargetObject"));
911 $exp->addFilter(
"root");
912 $exp->addFilter(
"cat");
913 $exp->addFilter(
"grp");
914 $exp->addFilter(
"fold");
915 $exp->addFilter(
"crs");
920 $exp->addFilter(
"glo");
924 $exp->addFilter(
"mep");
928 $exp->addFilter(
"lm");
929 $exp->addFilter(
"dbk");
932 $exp->setFiltered(
true);
935 $exp->setClickable(
"cat",
false);
936 $exp->setClickable(
"grp",
false);
937 $exp->setClickable(
"fold",
false);
938 $exp->setClickable(
"crs",
false);
940 $exp->setFrameTarget(
"");
943 $output = $exp->getOutput();
946 $tpl->setCurrentBlock(
"content");
947 if ($a_type ==
"glo")
949 $tpl->setVariable(
"TXT_EXPLORER_HEADER", $this->lng->txt(
"cont_choose_glossary"));
951 else if ($a_type ==
"mep")
953 $tpl->setVariable(
"TXT_EXPLORER_HEADER", $this->lng->txt(
"cont_choose_media_source"));
957 $tpl->setVariable(
"TXT_EXPLORER_HEADER", $this->lng->txt(
"cont_choose_cont_obj"));
959 $tpl->setVariable(
"EXPLORER",$output);
960 $tpl->setVariable(
"ACTION", $this->ctrl->getFormAction($this));
961 $tpl->setVariable(
"BTN_REFRESH",
"changeTargetObject");
962 $tpl->setVariable(
"TXT_REFRESH", $this->lng->txt(
"refresh"));
963 $tpl->setVariable(
"BTN_RESET",
"resetLinkList");
964 $tpl->setVariable(
"TXT_RESET", $this->lng->txt(
"reset"));
966 if ($a_type ==
"mep")
968 $tpl->setCurrentBlock(
"sel_clipboard");
969 $this->ctrl->setParameter($this,
"do",
"set");
974 $tpl->setVariable(
"LINK_CLIPBOARD", $this->ctrl->getLinkTarget($this,
"changeTargetObject"));
975 $tpl->setVariable(
"TXT_PERS_CLIPBOARD", $this->lng->txt(
"clipboard"));
976 $tpl->parseCurrentBlock();
982 $tpl->parseCurrentBlock();
997 $a_type =
$_GET[
"target_type"];
1000 $tpl =&
new ilTemplate(
"tpl.link_help_explorer.html",
true,
true,
"Modules/LearningModule");
1003 include_once
"./Modules/LearningModule/classes/class.ilIntLinkRepItemExplorer.php";
1005 $this->ctrl->getTargetScript(),
"do=set"));
1006 if (
$_GET[
"expand"] ==
"")
1008 $expanded = $this->tree->readRootId();
1012 $expanded =
$_GET[
"expand"];
1014 $exp->setMode($this->mode);
1016 $exp->setExpand($expanded);
1018 $exp->setTargetGet(
"sel_id");
1019 $this->ctrl->setParameter($this,
"target_type", $a_type);
1020 $exp->setParamsGet($this->ctrl->getParameterArray($this,
"showLinkHelp"));
1023 $exp->setFiltered(
true);
1025 $exp->addFilter(
"root");
1026 $exp->addFilter(
"cat");
1027 $exp->addFilter(
"grp");
1028 $exp->addFilter(
"fold");
1029 $exp->addFilter(
"crs");
1030 $exp->addFilter(
"lm");
1031 $exp->addFilter(
"htlm");
1032 $exp->addFilter(
"dbk");
1033 $exp->addFilter(
"glo");
1034 $exp->addFilter(
"frm");
1035 $exp->addFilter(
"exc");
1036 $exp->addFilter(
"tst");
1037 $exp->addFilter(
"svy");
1038 $exp->addFilter(
"webr");
1039 $exp->addFilter(
"file");
1040 $exp->addFilter(
"chat");
1041 $exp->addFilter(
"sahs");
1042 $exp->addFilter(
"mcst");
1044 $sel_types = array(
'lm',
'dbk',
'htlm',
'glo',
'frm',
'exc',
'tst',
'svy',
'webr',
'chat',
1045 'cat',
'crs',
'grp',
'file',
'fold',
'sahs',
'mcst');
1046 $exp->setSelectableTypes($sel_types);
1054 $exp->setFrameTarget(
"");
1057 $output = $exp->getOutput();
1060 $tpl->setCurrentBlock(
"content");
1061 $tpl->setVariable(
"TXT_EXPLORER_HEADER", $this->lng->txt(
"cont_repository_item_links"));
1062 $tpl->setVariable(
"EXPLORER",$output);
1063 $tpl->setVariable(
"ACTION", $this->ctrl->getFormAction($this));
1064 $tpl->setVariable(
"BTN_REFRESH",
"showLinkHelp");
1065 $tpl->setVariable(
"TXT_REFRESH", $this->lng->txt(
"refresh"));
1066 $tpl->setVariable(
"BTN_RESET",
"resetLinkList");
1067 $tpl->setVariable(
"TXT_RESET", $this->lng->txt(
"reset"));
1072 $tpl->parseCurrentBlock();
1088 include_once(
"./Services/COPage/classes/class.ilPageEditorGUI.php");
1089 if($ilias->getSetting(
"enable_js_edit"))