33 include_once(
"./Services/UIComponent/Explorer/classes/class.ilExplorer.php");
55 $this->selectable_types = $a_types;
60 $this->mode = $a_mode;
61 if ($this->mode ==
"asynch")
74 $this->link_target_script = $a_script;
82 return $this->link_target_script;
88 $this->ref_id = $a_ref_id;
102 "linktype=RepositoryItem".
103 "&linktarget=il__".$a_type.
"_".$a_node_id);
112 if ($this->mode ==
"link")
129 if ($ilUser->getPref(
"ilPageEditor_JavaScript") !=
"enable"
130 && $this->mode !=
"link" && $this->mode !=
"asynch")
136 return in_array($a_type,$this->selectable_types);
156 if ($ilUser->getPref(
"ilPageEditor_JavaScript") !=
"enable" &&
157 $this->mode !=
"asynch")
159 if (in_array($a_type,$this->selectable_types))
161 if ($this->mode !=
"link")
163 return "[iln ".$a_type.
"=\"$a_id\"] [/iln]";
177 return "return il.IntLink.addInternalLink('[iln ".$a_type.
"="".$a_node_id.
""]','[/iln]', event);";
196 if ($rbacsystem->checkAccess(
"read", $a_ref_id))
218 $tpl->setCurrentBlock(
"icon");
220 $tpl->setVariable(
"TXT_ALT_IMG", $lng->txt(
"repository"));
221 $tpl->parseCurrentBlock();
223 $tpl->setCurrentBlock(
"text");
224 $tpl->setVariable(
"OBJ_TITLE", $lng->txt(
"repository"));
225 $tpl->parseCurrentBlock();
230 $tpl->touchBlock(
"element");