19declare(strict_types=1);
47 $this->
ctrl = $DIC->ctrl();
48 $this->system =
$DIC->rbac()->system();
51 $this->root_id = $this->tree->readRootId();
52 $this->order_column =
"title";
72 if (count($this->expanded) <= 1) {
73 foreach ($this->tree->getPathId(
$ref_id) as
$id) {
81 $this->clickable_types = $a_types;
86 return (in_array($type, $this->clickable_types));
91 $this->target_class = $a_class;
95 return $this->target_class ?:
'ilsearchgui';
97 public function setCmd(
string $a_cmd): void
103 return $this->cmd ?:
'selectRoot';
108 $this->selectable_type = $a_type;
116 $this->ref_id = $a_ref_id;
138 if ($a_parent_id == 0) {
142 if ($this->system->checkAccess(
"read", (
int) $a_parent_id)) {
155 #$tpl = new ilTemplate("tpl.tree.html", true, true, "components/ILIAS/UIComponent/Explorer");
157 if (in_array(
"root", $this->clickable_types)) {
162 $tpl->
setVariable(
"LINK_TARGET", $this->
ctrl->getLinkTargetByClass($this->getTargetClass(), $this->getCmd()));
setVariable($variable, $value='')
Sets a variable value.
const IL_FM_POSITIVE
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilCtrl provides processing control methods.
class for explorer view in admin frame
addFilter(string $a_item)
setExpand($a_node_id)
set the expand option this value is stored in a SESSION variable to save it different view (lo view,...
setFilterMode(int $a_mode=IL_FM_NEGATIVE)
setSessionExpandVariable(string $a_var_name="expand")
setTitleLength(int $a_length)
setFiltered(bool $a_bool)
ilGlobalTemplateInterface $tpl
class ilRbacSystem system function like checkAccess, addActiveRole ... Supporting system functions ar...
isClickable(string $type, int $ref_id=0)
buildLinkTarget($a_node_id, string $a_type)
formatHeader(ilTemplate $tpl, $a_obj_id, array $a_option)
@inheritDoc
buildFrameTarget(string $a_type, $a_child=0, $a_obj_id=0)
setSelectableType(string $a_type)
setTargetClass(string $a_class)
__construct($a_target)
Constructor @access public.
setClickableTypes(array $a_types)
showChilds($a_parent_id)
determines wether the childs of an object should be shown or not note: this standard implementation a...
special template class to simplify handling of ITX/PEAR
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
setVariable(string $variable, $value='')
Sets the given variable to the given value.
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc