33require_once(
"./Services/UIComponent/Explorer/classes/class.ilExplorer.php");
61 parent::__construct($a_target);
63 $this->root_id = $this->tree->readRootId();
64 $this->order_column =
"title";
84 $this->clickable_types = $a_types;
89 if (in_array(
$a_type, $this->clickable_types)) {
97 $this->target_class = $a_class;
101 return $this->target_class ? $this->target_class :
'ilsearchgui';
109 return $this->cmd ? $this->cmd :
'selectRoot';
114 $this->selectable_type =
$a_type;
118 $this->ref_id = $a_ref_id;
124 $this->ctrl->setParameterByClass($this->
getTargetClass(),
"root_id", $a_node_id);
138 if ($a_ref_id == 0) {
161 #$tpl = new ilTemplate("tpl.tree.html", true, true, "Services/UIComponent/Explorer");
163 if (in_array(
"root", $this->clickable_types)) {
164 $tpl->setCurrentBlock(
"link");
167 $this->ctrl->setParameterByClass($this->
getTargetClass(),
'root_id', ROOT_FOLDER_ID);
168 $tpl->setVariable(
"LINK_TARGET", $this->ctrl->getLinkTargetByClass($this->getTargetClass(), $this->getCmd()));
169 $tpl->setVariable(
"TITLE",
$lng->txt(
"repository"));
171 $tpl->parseCurrentBlock();
174 #$this->output[] = $tpl->get();
An exception for terminatinating execution or to throw for unit testing.
Class ilExplorer class for explorer view in admin frame.
setSessionExpandVariable($a_var_name="expand")
set name of expand session variable
addFilter($a_item)
adds item to the filter @access public
setTitleLength($a_length)
Set max title length.
setFilterMode($a_mode=IL_FM_NEGATIVE)
set filter mode
setFiltered($a_bool)
active/deactivate the filter @access public
const TITLE_LENGTH
max length of object title
buildLinkTarget($a_node_id, $a_type)
get link target (may be overwritten by derived classes)
setSelectableType($a_type)
formatHeader($tpl, $a_obj_id, $a_option)
overwritten method from base class @access public
buildFrameTarget($a_type, $a_child=0, $a_obj_id=0)
get frame target (may be overwritten by derived classes)
isClickable($a_type, $a_ref_id=0)
check if links for certain object type are activated
setClickableTypes($a_types)
showChilds($a_ref_id)
determines wether the childs of an object should be shown or not note: this standard implementation a...
__construct($a_target)
Constructor @access public.