24 require_once(
"./Modules/LearningModule/classes/class.ilLMPageObject.php");
25 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
53 if ((
$_SESSION[
"il_link_cont_obj"] !=
"" && !$tree->isInTree(
$_SESSION[
"il_link_cont_obj"])) ||
54 (
$_SESSION[
"il_link_glossary"] !=
"" && !$tree->isInTree(
$_SESSION[
"il_link_glossary"])) ||
62 $this->ilias =& $ilias;
64 $this->ctrl->saveParameter($this, array(
"linkmode",
"target_type"));
65 $this->default_type = $a_default_type;
66 $this->default_obj = $a_default_obj;
67 $this->filter_link_types = array();
76 switch($this->link_type)
79 case "StructureObject":
80 if (empty(
$_SESSION[
"il_link_cont_obj"]) &&
81 ($def_type !=
"mep" && $def_type !=
"glo"))
88 if (empty(
$_SESSION[
"il_link_glossary"]) && $def_type ==
"glo")
95 if (empty(
$_SESSION[
"il_link_mep"]) && $def_type ==
"mep")
111 $ltype = (
$_SESSION[
"il_link_type"] ==
"")
112 ? $this->default_type
114 $ltype_arr = explode(
"_", $ltype);
115 $this->link_type = ($ltype_arr[0] ==
"")
116 ? $this->default_type
118 $this->link_target = $ltype_arr[1];
123 $this->mode = $a_mode;
128 $this->set_link_script = $a_script;
133 $this->
return = $a_return;
143 $this->filter_link_types[] = $a_link_type;
148 $next_class = $this->ctrl->getNextClass($this);
150 $cmd = $this->ctrl->getCmd(
"showLinkHelp");
177 if ($this->
return ==
"")
179 $this->ctrl->returnToParent($this);
192 include_once(
"./Services/COPage/classes/class.ilPageEditorGUI.php");
195 $str = htmlspecialchars($str);
208 $target_str = ($this->link_target ==
"")
210 :
" target=\"".$this->link_target.
"\"";
212 if(($this->link_type ==
"GlossaryItem") &&
217 if(($this->link_type ==
"PageObject" || $this->link_type ==
"StructureObject") &&
223 $tpl =&
new ilTemplate(
"tpl.link_help.html",
true,
true,
"Modules/LearningModule");
226 switch($this->link_type)
229 $this->ctrl->setParameter($this,
"target_type",
"glo");
233 case "StructureObject":
234 $this->ctrl->setParameter($this,
"target_type",
"cont_obj");
238 $this->ctrl->setParameter($this,
"target_type",
"mep");
248 $tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
249 $tpl->setVariable(
"FORMACTION2", $this->ctrl->getFormAction($this));
250 $tpl->setVariable(
"TXT_HELP_HEADER", $this->lng->txt(
"cont_link_select"));
251 $tpl->setVariable(
"TXT_TYPE", $this->lng->txt(
"cont_link_type"));
252 $ltypes = array(
"StructureObject" => $this->lng->txt(
"cont_lk_chapter"),
253 "StructureObject_New" => $this->lng->txt(
"cont_lk_chapter_new"),
254 "PageObject" => $this->lng->txt(
"cont_lk_page"),
255 "PageObject_FAQ" => $this->lng->txt(
"cont_lk_page_faq"),
256 "PageObject_New" => $this->lng->txt(
"cont_lk_page_new"),
257 "GlossaryItem" => $this->lng->txt(
"cont_lk_term"),
258 "GlossaryItem_New" => $this->lng->txt(
"cont_lk_term_new"),
259 "Media" => $this->lng->txt(
"cont_lk_media_inline"),
260 "Media_Media" => $this->lng->txt(
"cont_lk_media_media"),
261 "Media_FAQ" => $this->lng->txt(
"cont_lk_media_faq"),
262 "Media_New" => $this->lng->txt(
"cont_lk_media_new"),
263 "RepositoryItem" => $this->lng->txt(
"cont_repository_item")
267 foreach($this->filter_link_types as
$link_type)
269 unset($ltypes[$link_type]);
272 $ltype = ($this->link_target !=
"")
273 ? $this->link_type.
"_".$this->link_target
279 "ltype", $ltypes,
false,
true);
280 $tpl->setVariable(
"SELECT_TYPE", $select_ltype);
281 $tpl->setVariable(
"CMD_CHANGETYPE",
"changeLinkType");
282 $tpl->setVariable(
"BTN_CHANGETYPE", $this->lng->txt(
"cont_change_type"));
290 $tpl->setVariable(
"CMD_CLOSE",
"closeLinkHelp");
291 $tpl->setVariable(
"BTN_CLOSE", $this->lng->txt(
"close"));
294 $chapterRowBlock =
"chapter_row";
297 $chapterRowBlock .=
"_js";
303 switch($this->link_type)
309 require_once(
"./Modules/LearningModule/classes/class.ilObjLearningModule.php");
312 else if ($type ==
"dbk")
314 require_once(
"./Modules/LearningModule/classes/class.ilObjDlBook.php");
319 $ctree =& $cont_obj->getLMTree();
320 $nodes = $ctree->getSubtree($ctree->getNodeData($ctree->getRootId()));
321 $tpl->setCurrentBlock(
"chapter_list");
322 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->lng->txt(
"cont_content_obj"));
323 $tpl->setVariable(
"TXT_CONT_TITLE", $cont_obj->getTitle());
324 $tpl->setCurrentBlock(
"change_cont_obj");
325 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
326 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->lng->txt(
"change"));
327 $tpl->parseCurrentBlock();
329 foreach($nodes as $node)
331 if($node[
"type"] ==
"st")
333 $tpl->setCurrentBlock(
"chapter_row");
334 $tpl->setVariable(
"TXT_CHAPTER", $node[
"title"]);
335 $tpl->setVariable(
"ROWCLASS",
"tblrow1");
338 $tpl->parseCurrentBlock();
340 if($node[
"type"] ==
"pg")
345 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
346 require_once(
"./Services/MediaObjects/classes/class.ilImageMapEditorGUI.php");
348 $tpl->setCurrentBlock(
"link_row");
349 $tpl->setVariable(
"ROWCLASS",
"tblrow2");
350 $tpl->setVariable(
"TXT_CHAPTER", $node[
"title"]);
351 $tpl->setVariable(
"LINK_TARGET",
"content");
352 $tpl->setVariable(
"LINK",
354 "linktype=PageObject".
355 "&linktarget=il__pg_".$node[
"obj_id"].
356 "&linktargetframe=".$this->link_target));
357 $tpl->parseCurrentBlock();
361 $tpl->setCurrentBlock($chapterRowBlock);
362 $tpl->setVariable(
"TXT_CHAPTER", $node[
"title"]);
363 $tpl->setVariable(
"ROWCLASS",
"tblrow2");
364 $tpl->setVariable(
"LINK_CHAPTER",
366 $tpl->parseCurrentBlock();
370 $tpl->setCurrentBlock(
"row");
371 $tpl->parseCurrentBlock();
376 $free_pages = array();
377 foreach ($pages as $page)
379 if (!$ctree->isInTree($page[
"obj_id"]))
381 $free_pages[] = $page;
384 if(count($free_pages) > 0)
386 $tpl->setCurrentBlock(str_replace(
"_js",
"",$chapterRowBlock));
387 $tpl->setVariable(
"TXT_CHAPTER", $this->lng->txt(
"cont_free_pages"));
388 $tpl->setVariable(
"ROWCLASS",
"tblrow1");
389 $tpl->parseCurrentBlock();
391 foreach ($free_pages as $node)
396 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
397 require_once(
"./Services/MediaObjects/classes/class.ilImageMapEditorGUI.php");
399 $tpl->setCurrentBlock(
"link_row");
400 $tpl->setVariable(
"ROWCLASS",
"tblrow2");
401 $tpl->setVariable(
"TXT_CHAPTER", $node[
"title"]);
402 $tpl->setVariable(
"LINK_TARGET",
"content");
403 $tpl->setVariable(
"LINK",
405 "linktype=PageObject".
406 "&linktarget=il__pg_".$node[
"obj_id"].
407 "&linktargetframe=".$this->link_target));
408 $tpl->parseCurrentBlock();
412 $tpl->setCurrentBlock($chapterRowBlock);
413 $tpl->setVariable(
"TXT_CHAPTER", $node[
"title"]);
414 $tpl->setVariable(
"ROWCLASS",
"tblrow2");
415 $tpl->setVariable(
"LINK_CHAPTER",
417 $tpl->parseCurrentBlock();
423 $tpl->setCurrentBlock(
"chapter_list");
424 $tpl->parseCurrentBlock();
429 case "StructureObject":
434 require_once(
"./Modules/LearningModule/classes/class.ilObjLearningModule.php");
437 else if ($type ==
"dbk")
439 require_once(
"./Modules/LearningModule/classes/class.ilObjDlBook.php");
444 $ctree =& $cont_obj->getLMTree();
445 $nodes = $ctree->getSubtree($ctree->getNodeData($ctree->getRootId()));
446 $tpl->setCurrentBlock(
"chapter_list");
447 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->lng->txt(
"cont_content_obj"));
448 $tpl->setVariable(
"TXT_CONT_TITLE", $cont_obj->getTitle());
449 $tpl->setCurrentBlock(
"change_cont_obj");
450 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
451 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->lng->txt(
"change"));
452 $tpl->parseCurrentBlock();
454 foreach($nodes as $node)
456 if($node[
"type"] ==
"st")
458 $css_row = ($css_row ==
"tblrow1")
465 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
466 require_once(
"./Services/MediaObjects/classes/class.ilImageMapEditorGUI.php");
468 $tpl->setCurrentBlock(
"link_row");
469 $tpl->setVariable(
"ROWCLASS", $css_row);
470 $tpl->setVariable(
"TXT_CHAPTER", $node[
"title"]);
471 $tpl->setVariable(
"LINK_TARGET",
"content");
472 $tpl->setVariable(
"LINK",
474 "linktype=StructureObject".
475 "&linktarget=il__st_".$node[
"obj_id"].
476 "&linktargetframe=".$this->link_target));
477 $tpl->parseCurrentBlock();
481 $tpl->setCurrentBlock($chapterRowBlock);
482 $tpl->setVariable(
"ROWCLASS", $css_row);
483 $tpl->setVariable(
"TXT_CHAPTER", $node[
"title"]);
484 $tpl->setVariable(
"LINK_CHAPTER",
486 $tpl->parseCurrentBlock();
490 $tpl->setCurrentBlock(
"row");
491 $tpl->parseCurrentBlock();
493 $tpl->setCurrentBlock(
"chapter_list");
494 $tpl->parseCurrentBlock();
499 require_once(
"./Modules/Glossary/classes/class.ilObjGlossary.php");
503 $terms = $glossary->getTermList();
504 $tpl->setCurrentBlock(
"chapter_list");
505 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->lng->txt(
"glossary"));
506 $tpl->setVariable(
"TXT_CONT_TITLE", $glossary->getTitle());
507 $tpl->setCurrentBlock(
"change_cont_obj");
508 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
509 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->lng->txt(
"change"));
510 $tpl->parseCurrentBlock();
512 foreach($terms as $term)
514 $css_row = ($css_row ==
"tblrow1")
521 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
522 require_once(
"./Services/MediaObjects/classes/class.ilImageMapEditorGUI.php");
524 $tpl->setCurrentBlock(
"link_row");
525 $tpl->setVariable(
"ROWCLASS",
"tblrow2");
526 $tpl->setVariable(
"TXT_CHAPTER", $term[
"term"]);
527 $tpl->setVariable(
"LINK_TARGET",
"content");
528 $tpl->setVariable(
"LINK",
530 "linktype=GlossaryItem".
531 "&linktarget=il__git_".$term[
"id"].
532 "&linktargetframe=".$this->link_target));
533 $tpl->parseCurrentBlock();
537 $tpl->setCurrentBlock($chapterRowBlock);
538 $tpl->setVariable(
"ROWCLASS", $css_row);
539 $tpl->setVariable(
"TXT_CHAPTER", $term[
"term"]);
540 $tpl->setVariable(
"LINK_CHAPTER",
542 $tpl->parseCurrentBlock();
543 $tpl->setCurrentBlock(
"row");
544 $tpl->parseCurrentBlock();
549 $tpl->setCurrentBlock(
"chapter_list");
550 $tpl->parseCurrentBlock();
559 $tpl->setCurrentBlock(
"change_cont_obj");
560 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
561 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->lng->txt(
"change"));
562 $tpl->parseCurrentBlock();
563 $mobjs = $this->ilias->account->getClipboardObjects(
"mob");
566 foreach ($mobjs as $obj)
568 $objs[$obj[
"title"].
":".$obj[
"id"]] = $obj;
571 $tpl->setCurrentBlock(
"chapter_list");
572 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->lng->txt(
"cont_media_source"));
573 $tpl->setVariable(
"TXT_CONT_TITLE", $this->lng->txt(
"cont_personal_clipboard"));
574 $tpl->setVariable(
"COLSPAN",
"2");
576 foreach($objs as $obj)
581 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
582 require_once(
"./Services/MediaObjects/classes/class.ilImageMapEditorGUI.php");
584 $tpl->setCurrentBlock(
"link_row");
586 $tpl->setCurrentBlock(
"link_row");
588 $tpl->setCurrentBlock(
"link_row");
589 $tpl->setVariable(
"ROWCLASS",
"tblrow2");
590 $tpl->setVariable(
"TXT_CHAPTER", $obj[
"title"]);
591 $tpl->setVariable(
"LINK_TARGET",
"content");
592 $tpl->setVariable(
"LINK",
594 "linktype=MediaObject".
595 "&linktarget=il__mob_".$obj[
"id"].
596 "&linktargetframe=".$this->link_target));
597 $tpl->parseCurrentBlock();
601 $tpl->setCurrentBlock($chapterRowBlock);
603 $tpl->setCurrentBlock($chapterRowBlock);
604 $tpl->setVariable(
"TXT_CHAPTER", $obj[
"title"]);
605 $tpl->setVariable(
"ROWCLASS",
"tblrow1");
606 if (!empty($target_str))
608 $tpl->setVariable(
"LINK_CHAPTER",
613 $tpl->setVariable(
"LINK_CHAPTER",
616 $tpl->parseCurrentBlock();
617 $tpl->setCurrentBlock(
"row");
618 $tpl->parseCurrentBlock();
622 $tpl->setCurrentBlock(
"chapter_list");
623 $tpl->parseCurrentBlock();
627 require_once(
"./Modules/MediaPool/classes/class.ilObjMediaPool.php");
631 $fobjs = $med_pool->getChilds(
$_SESSION[
"il_link_mep_obj"],
"fold");
633 foreach ($fobjs as $obj)
635 $f2objs[$obj[
"title"].
":".$obj[
"id"]] = $obj;
640 $mobjs = $med_pool->getChilds(
$_SESSION[
"il_link_mep_obj"],
"mob");
642 foreach ($mobjs as $obj)
644 $m2objs[$obj[
"title"].
":".$obj[
"id"]] = $obj;
649 $objs = array_merge($f2objs, $m2objs);
651 $tpl->setCurrentBlock(
"chapter_list");
652 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->lng->txt(
"mep"));
653 $tpl->setVariable(
"TXT_CONT_TITLE", $med_pool->getTitle());
654 $tpl->setCurrentBlock(
"change_cont_obj");
655 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
656 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->lng->txt(
"change"));
657 $tpl->setVariable(
"COLSPAN",
"2");
658 $tpl->parseCurrentBlock();
660 if ($parent_id = $med_pool->getParentId(
$_SESSION[
"il_link_mep_obj"]))
662 $css_row =
"tblrow1";
663 $tpl->setCurrentBlock(
"icon");
665 $tpl->parseCurrentBlock();
666 $tpl->setCurrentBlock(
"link_row");
667 $tpl->setVariable(
"ROWCLASS", $css_row);
668 $tpl->setVariable(
"TXT_CHAPTER",
"..");
669 $this->ctrl->setParameter($this,
"mep_fold", $parent_id);
670 $tpl->setVariable(
"LINK",
671 $this->ctrl->getLinkTarget($this,
"setMedPoolFolder"));
672 $tpl->parseCurrentBlock();
673 $tpl->setCurrentBlock(
"row");
674 $tpl->parseCurrentBlock();
677 foreach($objs as $obj)
679 if($obj[
"type"] ==
"fold")
681 $css_row = ($css_row ==
"tblrow2")
684 $tpl->setCurrentBlock(
"icon");
686 $tpl->parseCurrentBlock();
687 $tpl->setCurrentBlock(
"link_row");
688 $tpl->setVariable(
"ROWCLASS", $css_row);
689 $tpl->setVariable(
"TXT_CHAPTER", $obj[
"title"]);
690 $this->ctrl->setParameter($this,
"mep_fold", $obj[
"obj_id"]);
691 $tpl->setVariable(
"LINK",
692 $this->ctrl->getLinkTarget($this,
"setMedPoolFolder"));
693 $tpl->parseCurrentBlock();
697 $css_row = ($css_row ==
"tblrow2")
703 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
704 require_once(
"./Services/MediaObjects/classes/class.ilImageMapEditorGUI.php");
706 $tpl->setCurrentBlock(
"link_row");
708 $tpl->setCurrentBlock(
"link_row");
709 $tpl->setVariable(
"ROWCLASS", $css_row);
710 $tpl->setVariable(
"TXT_CHAPTER", $obj[
"title"]);
711 $tpl->setVariable(
"LINK_TARGET",
"content");
712 $tpl->setVariable(
"LINK",
714 "linktype=MediaObject".
715 "&linktarget=il__mob_".$obj[
"obj_id"].
716 "&linktargetframe=".$this->link_target));
717 $tpl->parseCurrentBlock();
721 $tpl->setCurrentBlock($chapterRowBlock);
723 $tpl->setCurrentBlock($chapterRowBlock);
724 $tpl->setVariable(
"ROWCLASS", $css_row);
725 $tpl->setVariable(
"TXT_CHAPTER", $obj[
"title"]);
726 if ($target_str !=
"")
728 $tpl->setVariable(
"LINK_CHAPTER",
733 $tpl->setVariable(
"LINK_CHAPTER",
736 $tpl->parseCurrentBlock();
740 $tpl->setCurrentBlock(
"row");
741 $tpl->parseCurrentBlock();
743 $tpl->setCurrentBlock(
"chapter_list");
744 $tpl->parseCurrentBlock();
749 case "RepositoryItem":
768 $med =& $mob->getMediaItem(
"Standard");
769 $target = $med->getThumbnailTarget(
"small");
770 if ($a_mode ==
"link")
772 $tpl->setCurrentBlock(
"thumbnail_link");
776 $tpl->setCurrentBlock(
"thumbnail_js");
780 $tpl->setCurrentBlock(
"thumbnail");
784 $tpl->setCurrentBlock(
"thumb");
785 $tpl->setVariable(
"SRC_THUMB", $target);
786 $tpl->parseCurrentBlock();
790 $tpl->setVariable(
"NO_THUMB",
" ");
793 if ($a_mode ==
"link")
795 $tpl->setCurrentBlock(
"thumbnail_link");
800 $tpl->setCurrentBlock(
"thumbnail_js");
804 $tpl->setCurrentBlock(
"thumbnail");
806 $tpl->parseCurrentBlock();
815 $_SESSION[
"il_link_type"] = $_POST[
"ltype"];
836 if(
$_GET[
"do"] ==
"set")
838 switch (
$_GET[
"target_type"])
858 $a_type =
$_GET[
"target_type"];
861 $tpl =&
new ilTemplate(
"tpl.link_help_explorer.html",
true,
true,
"Modules/LearningModule");
864 require_once
"classes/class.ilExplorer.php";
870 $this->ctrl->getTargetScript(),
"do=set"));
871 if (
$_GET[
"expand"] ==
"")
873 $expanded = $this->tree->readRootId();
877 $expanded =
$_GET[
"expand"];
879 $exp->setExpand($expanded);
882 $exp->setTargetGet(
"sel_id");
883 $this->ctrl->setParameter($this,
"target_type", $a_type);
884 $exp->setParamsGet($this->ctrl->getParameterArray($this,
"changeTargetObject"));
890 $exp->addFilter(
"root");
891 $exp->addFilter(
"cat");
892 $exp->addFilter(
"grp");
893 $exp->addFilter(
"fold");
894 $exp->addFilter(
"crs");
899 $exp->addFilter(
"glo");
903 $exp->addFilter(
"mep");
907 $exp->addFilter(
"lm");
908 $exp->addFilter(
"dbk");
911 $exp->setFiltered(
true);
914 $exp->setClickable(
"cat",
false);
915 $exp->setClickable(
"grp",
false);
916 $exp->setClickable(
"fold",
false);
917 $exp->setClickable(
"crs",
false);
919 $exp->setFrameTarget(
"");
922 $output = $exp->getOutput();
925 $tpl->setCurrentBlock(
"content");
926 if ($a_type ==
"glo")
928 $tpl->setVariable(
"TXT_EXPLORER_HEADER", $this->lng->txt(
"cont_choose_glossary"));
930 else if ($a_type ==
"mep")
932 $tpl->setVariable(
"TXT_EXPLORER_HEADER", $this->lng->txt(
"cont_choose_media_source"));
936 $tpl->setVariable(
"TXT_EXPLORER_HEADER", $this->lng->txt(
"cont_choose_cont_obj"));
938 $tpl->setVariable(
"EXPLORER",$output);
939 $tpl->setVariable(
"ACTION", $this->ctrl->getFormAction($this));
940 $tpl->setVariable(
"BTN_REFRESH",
"changeTargetObject");
941 $tpl->setVariable(
"TXT_REFRESH", $this->lng->txt(
"refresh"));
942 $tpl->setVariable(
"BTN_RESET",
"resetLinkList");
943 $tpl->setVariable(
"TXT_RESET", $this->lng->txt(
"reset"));
945 if ($a_type ==
"mep")
947 $tpl->setCurrentBlock(
"sel_clipboard");
948 $this->ctrl->setParameter($this,
"do",
"set");
953 $tpl->setVariable(
"LINK_CLIPBOARD", $this->ctrl->getLinkTarget($this,
"changeTargetObject"));
954 $tpl->setVariable(
"TXT_PERS_CLIPBOARD", $this->lng->txt(
"clipboard"));
955 $tpl->parseCurrentBlock();
961 $tpl->parseCurrentBlock();
976 $a_type =
$_GET[
"target_type"];
979 $tpl =&
new ilTemplate(
"tpl.link_help_explorer.html",
true,
true,
"Modules/LearningModule");
982 include_once
"./Modules/LearningModule/classes/class.ilIntLinkRepItemExplorer.php";
984 $this->ctrl->getTargetScript(),
"do=set"));
985 if (
$_GET[
"expand"] ==
"")
987 $expanded = $this->tree->readRootId();
991 $expanded =
$_GET[
"expand"];
993 $exp->setMode($this->mode);
995 $exp->setExpand($expanded);
997 $exp->setTargetGet(
"sel_id");
998 $this->ctrl->setParameter($this,
"target_type", $a_type);
999 $exp->setParamsGet($this->ctrl->getParameterArray($this,
"showLinkHelp"));
1002 $exp->setFiltered(
true);
1004 $exp->addFilter(
"root");
1005 $exp->addFilter(
"cat");
1006 $exp->addFilter(
"grp");
1007 $exp->addFilter(
"fold");
1008 $exp->addFilter(
"crs");
1009 $exp->addFilter(
"lm");
1010 $exp->addFilter(
"htlm");
1011 $exp->addFilter(
"dbk");
1012 $exp->addFilter(
"glo");
1013 $exp->addFilter(
"frm");
1014 $exp->addFilter(
"exc");
1015 $exp->addFilter(
"tst");
1016 $exp->addFilter(
"svy");
1017 $exp->addFilter(
"webr");
1018 $exp->addFilter(
"file");
1019 $exp->addFilter(
"chat");
1020 $exp->addFilter(
"sahs");
1021 $exp->addFilter(
"mcst");
1023 $sel_types = array(
'lm',
'dbk',
'htlm',
'glo',
'frm',
'exc',
'tst',
'svy',
'webr',
'chat',
1024 'cat',
'crs',
'grp',
'file',
'fold',
'sahs',
'mcst');
1025 $exp->setSelectableTypes($sel_types);
1033 $exp->setFrameTarget(
"");
1036 $output = $exp->getOutput();
1039 $tpl->setCurrentBlock(
"content");
1040 $tpl->setVariable(
"TXT_EXPLORER_HEADER", $this->lng->txt(
"cont_repository_item_links"));
1041 $tpl->setVariable(
"EXPLORER",$output);
1042 $tpl->setVariable(
"ACTION", $this->ctrl->getFormAction($this));
1043 $tpl->setVariable(
"BTN_REFRESH",
"showLinkHelp");
1044 $tpl->setVariable(
"TXT_REFRESH", $this->lng->txt(
"refresh"));
1045 $tpl->setVariable(
"BTN_RESET",
"resetLinkList");
1046 $tpl->setVariable(
"TXT_RESET", $this->lng->txt(
"reset"));
1051 $tpl->parseCurrentBlock();
1067 include_once(
"./Services/COPage/classes/class.ilPageEditorGUI.php");
1068 if($ilias->getSetting(
"enable_js_edit"))