33 include_once(
"./Services/UIComponent/Explorer/classes/class.ilExplorer.php");
50 parent::ilExplorer($a_target);
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");
buildOnClick($a_node_id, $a_type, $a_title)
get onclick event handling
setSelectableTypes($a_types)
buildLinkTarget($a_node_id, $a_type)
setAsynchExpanding($a_val)
Set asynch expanding.
ilLMMenuObjectSelector($a_target)
Constructor public.
Internal Link: Repository Item Selector Explorer.
static appendUrlParameterString($a_url, $a_par, $xml_style=false)
append URL parameter string ("par1=value1&par2=value2...") to given URL string
setSetLinkTargetScript($a_script)
Set "set link target" script.
formatHeader(&$tpl, $a_obj_id, $a_option)
overwritten method from base class public
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
buildFrameTarget($a_type, $a_child=0, $a_obj_id=0)
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
Class ilExplorer class for explorer view in admin frame.
isClickable($a_type, $a_ref_id)
return if item is clickable
getSetLinkTargetScript()
Get "set link target" script.
buildDescription($a_desc, $a_id, $a_type)
standard implementation for description, may be overwritten by derived classes
buildTitle($a_title, $a_id, $a_type)
build item title