4include_once(
"./Services/UIComponent/Explorer2/classes/class.ilTreeExplorerGUI.php");
 
   37        public function __construct($a_parent_obj, $a_parent_cmd, $a_selection_gui = 
null, $a_selection_cmd = 
"selectObject",
 
   38                $a_selection_par = 
"sel_ref_id")
 
   40                global 
$tree, $objDefinition;
 
   42                if (is_null($a_selection_gui))
 
   44                        $a_selection_gui = $a_parent_obj;
 
   47                $this->selection_gui = is_object($a_selection_gui)
 
   48                        ? strtolower(get_class($a_selection_gui))
 
   49                        : strtolower($a_selection_gui);
 
   50                $this->selection_cmd = $a_selection_cmd;
 
   51                $this->selection_par = $a_selection_par;
 
   53                parent::__construct(
"rep_exp_sel", $a_parent_obj, $a_parent_cmd, 
$tree);
 
   61                foreach ($objDefinition->getSubObjectsRecursively(
"root") as $rtype)
 
   63                        if ($rtype[
"name"] != 
"itgr" && !$objDefinition->isSideBlock($rtype[
"name"]))
 
   65                                $white[] = $rtype[
"name"];
 
   71                if ((
int) 
$_GET[
"ref_id"] > 0)
 
   87                $title = $a_node[
"title"];
 
   90                        if ($title == 
"ILIAS")
 
   92                                $title = 
$lng->txt(
"repository");
 
  123                        $title = $a_node[
"title"];
 
  124                        if ($title == 
"ILIAS")
 
  126                                $title = 
$lng->txt(
"repository");
 
  128                        return $lng->txt(
"icon").
" ".$title;
 
  132                return parent::getNodeIconAlt($a_node);
 
  152                if ($a_node[
"child"] == 
$_GET[
"ref_id"] ||
 
  170                $ilCtrl->setParameterByClass($this->selection_gui, $this->selection_par, $a_node[
"child"]);
 
  171                $link = 
$ilCtrl->getLinkTargetByClass($this->selection_gui, $this->selection_cmd);
 
  172                $ilCtrl->setParameterByClass($this->selection_gui, $this->selection_par, 
"");
 
  187                if (!$ilAccess->checkAccess(
'visible', 
'', $a_node[
"child"]))
 
  204                global $objDefinition;
 
  208                if ($parent_obj_id > 0)
 
  214                        $parent_type  = 
"dummy";
 
  215                        $this->type_grps[
"dummy"] = array(
"root" => 
"dummy");
 
  218                if (empty($this->type_grps[$parent_type]))
 
  220                        $this->type_grps[$parent_type] =
 
  221                                $objDefinition->getGroupedRepositoryObjectTypes($parent_type);
 
  225                foreach ($a_childs as $child)
 
  227                        $g = $objDefinition->getGroupOfObj($child[
"type"]);
 
  232                        $group[$g][] = $child;
 
  237                if(is_array($wl) && in_array(
"poll", $wl))
 
  239                        $this->type_grps[$parent_type][
"poll"] = array();
 
  243                foreach ($this->type_grps[$parent_type] as 
$t => $g)
 
  245                        if (is_array($group[
$t]))
 
  248                                include_once(
"./Services/Container/classes/class.ilContainer.php");
 
  249                                include_once(
"./Services/Container/classes/class.ilContainerSorting.php");
 
  251                                $group = $sort->sortItems($group);
 
  259                                foreach ($group[
$t] as $k => $item)
 
  279                if (!$ilAccess->checkAccess(
"read", 
"", $a_parent_node_id))
 
  284                return parent::getChildsOfNode($a_parent_node_id);
 
  297                if ($this->select_postvar != 
"")
 
  302                if (!$ilAccess->checkAccess(
"read", 
"", $a_node[
"child"]))
 
  322                $this->highlighted_node = $a_value;
 
  343                if(!is_array($a_types))
 
  345                        $a_types = array($a_types);
 
  347                $this->clickable_types = $a_types;
 
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.
isNodeHighlighted($a_node)
Is node highlighted?
isNodeVisible($a_node)
Is node visible.
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")
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?
getHighlightedNode()
get an alternate highlighted node if $_GET["ref_id"] is not set or wrong Returns null if not set
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.
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.