4include_once(
"./Services/UIComponent/Explorer2/classes/class.ilTreeExplorerGUI.php");
 
   42        public function __construct($a_parent_obj, $a_parent_cmd, $a_selection_gui = 
null, $a_selection_cmd = 
"selectObject",
 
   43                                                                $a_selection_par = 
"sel_ref_id", $a_id = 
"rep_exp_sel")
 
   45                global 
$tree, $objDefinition;
 
   47                if (is_null($a_selection_gui))
 
   49                        $a_selection_gui = $a_parent_obj;
 
   52                $this->selection_gui = is_object($a_selection_gui)
 
   53                        ? strtolower(get_class($a_selection_gui))
 
   54                        : strtolower($a_selection_gui);
 
   55                $this->selection_cmd = $a_selection_cmd;
 
   56                $this->selection_par = $a_selection_par;
 
   57                parent::__construct($a_id, $a_parent_obj, $a_parent_cmd, 
$tree);
 
   65                foreach ($objDefinition->getSubObjectsRecursively(
"root") as $rtype)
 
   67                        if ($rtype[
"name"] != 
"itgr" && !$objDefinition->isSideBlock($rtype[
"name"]))
 
   75                if ((
int) 
$_GET[
"ref_id"] > 0)
 
   88                $this->nc_modifier = $a_val;
 
  117                $title = $a_node[
"title"];
 
  122                                $title = $lng->txt(
"repository");
 
  153                        $title = $a_node[
"title"];
 
  162                return parent::getNodeIconAlt($a_node);
 
  182                if ($a_node[
"child"] == 
$_GET[
"ref_id"] ||
 
  200                if ($this->select_postvar == 
"")
 
  202                        $ilCtrl->setParameterByClass($this->selection_gui, $this->selection_par, $a_node[
"child"]);
 
  203                        $link = 
$ilCtrl->getLinkTargetByClass($this->selection_gui, $this->selection_cmd);
 
  204                        $ilCtrl->setParameterByClass($this->selection_gui, $this->selection_par, 
"");
 
  224                if (!$ilAccess->checkAccess(
'visible', 
'', $a_node[
"child"]))
 
  241                global $objDefinition;
 
  245                if ($parent_obj_id > 0)
 
  251                        $parent_type  = 
"dummy";
 
  252                        $this->type_grps[
"dummy"] = array(
"root" => 
"dummy");
 
  255                if (empty($this->type_grps[$parent_type]))
 
  257                        $this->type_grps[$parent_type] =
 
  258                                $objDefinition->getGroupedRepositoryObjectTypes($parent_type);
 
  262                foreach ($a_childs as $child)
 
  264                        $g = $objDefinition->getGroupOfObj($child[
"type"]);
 
  269                        $group[$g][] = $child;
 
  274                if(is_array($wl) && in_array(
"poll", $wl))
 
  276                        $this->type_grps[$parent_type][
"poll"] = array();
 
  280                foreach ($this->type_grps[$parent_type] as 
$t => $g)
 
  282                        if (is_array($group[
$t]))
 
  285                                include_once(
"./Services/Container/classes/class.ilContainer.php");
 
  286                                include_once(
"./Services/Container/classes/class.ilContainerSorting.php");
 
  288                                $group = $sort->sortItems($group);
 
  296                                foreach ($group[
$t] as $k => $item)
 
  316                if (!$ilAccess->checkAccess(
"read", 
"", $a_parent_node_id))
 
  321                return parent::getChildsOfNode($a_parent_node_id);
 
  334                if ($this->select_postvar != 
"")
 
  339                if (!$ilAccess->checkAccess(
"read", 
"", $a_node[
"child"]))
 
  359                $this->highlighted_node = $a_value;
 
  380                if(!is_array($a_types))
 
  382                        $a_types = array($a_types);
 
  384                $this->clickable_types = $a_types;
 
  428                if(!is_array($a_types))
 
  430                        $a_types = array($a_types);
 
  432                $this->selectable_types = $a_types;
 
  442                return (array)$this->selectable_types;
 
An exception for terminatinating execution or to throw for unit testing.
static _getInstance($a_obj_id)
get instance by obj_id
setSkipRootNode($a_val)
Set skip root node.
static _lookupObjId($a_id)
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
static _lookupType($a_id, $a_reference=false)
lookup object type
Explorer for selecting repository items.
setNodeContentModifier(callable $a_val)
Set node content modifier.
isNodeHighlighted($a_node)
Is node highlighted?
isNodeVisible($a_node)
Is node visible.
getNodeContentModifier()
Get node content modifier.
getNodeHref($a_node)
Get href for node.
__construct($a_parent_obj, $a_parent_cmd, $a_selection_gui=null, $a_selection_cmd="selectObject", $a_selection_par="sel_ref_id", $a_id="rep_exp_sel")
Constructor.
getClickableTypes()
get whitelist for clickable items
setHighlightedNode($a_value)
set an alternate highlighted node if $_GET["ref_id"] is not set or wrong
sortChilds($a_childs, $a_parent_node_id)
Sort childs.
isNodeClickable($a_node)
Is node clickable?
setSelectableTypes($a_types)
Get HTML.
getHighlightedNode()
get an alternate highlighted node if $_GET["ref_id"] is not set or wrong Returns null if not set
getSelectableTypes()
get whitelist for clickable items
getNodeIcon($a_node)
Get node icon.
getChildsOfNode($a_parent_node_id)
Get childs of node.
getNodeContent($a_node)
Get node content.
getNodeIconAlt($a_node)
Get node icon alt text.
isNodeSelectable($a_node)
Is node selectable?
setClickableTypes($a_types)
set Whitelist for clickable items
Explorer class that works on tree objects (Services/Tree)
setTypeWhiteList($a_val)
Set type white list.
getRootNode()
Get root node.
setPathOpen($a_id)
Set node path to be opened.
getTypeWhiteList()
Get type white list.
getNodeId($a_node)
Get id for node.
setOrderField($a_val, $a_numeric=false)
Set order field.