33 include_once(
"classes/class.ilExplorer.php");
55 $this->selectable_types = $a_types;
60 $this->mode = $a_mode;
65 $this->link_target_script = $a_script;
70 $this->ref_id = $a_ref_id;
75 if ($this->mode !=
"link")
84 "linktype=RepositoryItem".
85 "&linktarget=il__".$a_type.
"_".$a_node_id);
94 if ($this->mode ==
"link")
111 if ($ilUser->getPref(
"ilPageEditor_JavaScript") !=
"enable"
112 && $this->mode !=
"link")
118 return in_array($a_type,$this->selectable_types);
138 if ($ilUser->getPref(
"ilPageEditor_JavaScript") !=
"enable")
140 if (in_array($a_type,$this->selectable_types))
142 if ($this->mode !=
"link")
144 return "[iln ".$a_type.
"=\"$a_id\"] [/iln]";
156 return "parent.content.addInternalLink('[iln ".$a_type.
"="".$a_node_id.
""] [/iln]','".$a_title.
"');setTimeout('window.close()',300);return(false);";
170 if ($rbacsystem->checkAccess(
"read", $a_ref_id))
192 $tpl->setCurrentBlock(
"icon");
194 $tpl->setVariable(
"TXT_ALT_IMG", $lng->txt(
"repository"));
195 $tpl->parseCurrentBlock();
197 $tpl->setCurrentBlock(
"text");
198 $tpl->setVariable(
"OBJ_TITLE", $lng->txt(
"repository"));
199 $tpl->parseCurrentBlock();
204 $tpl->touchBlock(
"element");