12 require_once(
"./Services/UIComponent/Explorer/classes/class.ilExplorer.php");
13 include_once
'./Services/Repository/classes/class.ilRepositoryExplorer.php';
41 parent::ilExplorer($a_target);
43 $this->root_id = $this->tree->readRootId();
44 $this->order_column =
"title";
65 $this->control_class =& $class;
69 return $this->control_class;
74 $this->selectable_types = $a_type;
78 $this->ref_id = $a_ref_id;
84 if(in_array($a_type,$this->selectable_types))
86 #$this->ctrl->setParameterByClass('ilrepositorygui','source_id',$a_node_id); 87 $this->ctrl->setParameter($this->
getControlClass(),
'source_id',$a_node_id);
93 $this->ctrl->setParameterByClass(
'ilrepositorygui',
"ref_id",$this->ref_id);
94 return $this->ctrl->getLinkTargetByClass(
'ilrepositorygui',
'copySelector');
105 return in_array($a_type,$this->selectable_types) and $a_ref_id !=
$this->ref_id;
117 if ($rbacsystem->checkAccess(
"read", $a_ref_id))
139 $tpl =
new ilTemplate(
"tpl.tree.html",
true,
true,
"Services/UIComponent/Explorer");
141 $tpl->setCurrentBlock(
"text");
142 $tpl->setVariable(
"OBJ_TITLE", $lng->txt(
"repository"));
143 $tpl->parseCurrentBlock();
148 $this->output[] =
$tpl->get();
setFilterMode($a_mode=IL_FM_NEGATIVE)
set filter mode
const TITLE_LENGTH
max length of object title
buildLinkTarget($a_node_id, $a_type)
setTitleLength($a_length)
Set max title length.
setFiltered($a_bool)
active/deactivate the filter public
ilConditionSelector($a_target)
Constructor public.
buildFrameTarget($a_type, $a_child=0, $a_obj_id=0)
special template class to simplify handling of ITX/PEAR
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
isClickable($a_type, $a_ref_id)
setSessionExpandVariable($a_var_name="expand")
set name of expand session variable
addFilter($a_item)
adds item to the filter public
formatHeader($a_obj_id, $a_option)
overwritten method from base class public
setSelectableTypes($a_type)