ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilRepositorySelectorExplorerGUI Class Reference

Explorer for selecting repository items. More...

+ Inheritance diagram for ilRepositorySelectorExplorerGUI:
+ Collaboration diagram for ilRepositorySelectorExplorerGUI:

Public Member Functions

 __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. More...
 
 setNodeContentModifier (callable $a_val)
 Set node content modifier. More...
 
 getNodeContentModifier ()
 Get node content modifier. More...
 
 getNodeContent ($a_node)
 Get node content. More...
 
 getNodeIcon ($a_node)
 Get node icon. More...
 
 getNodeIconAlt ($a_node)
 Get node icon alt text. More...
 
 isNodeHighlighted ($a_node)
 Is node highlighted? More...
 
 getNodeHref ($a_node)
 Get href for node. More...
 
 isNodeVisible ($a_node)
 Is node visible. More...
 
 sortChilds ($a_childs, $a_parent_node_id)
 Sort childs. More...
 
 getChildsOfNode ($a_parent_node_id)
 Get childs of node. More...
 
 isNodeClickable ($a_node)
 Is node clickable? More...
 
 setHighlightedNode ($a_value)
 set an alternate highlighted node if $_GET["ref_id"] is not set or wrong More...
 
 getHighlightedNode ()
 get an alternate highlighted node if $_GET["ref_id"] is not set or wrong Returns null if not set More...
 
 setClickableTypes ($a_types)
 set Whitelist for clickable items More...
 
 getClickableTypes ()
 get whitelist for clickable items More...
 
 setSelectableTypes ($a_types)
 Get HTML. More...
 
 getSelectableTypes ()
 get whitelist for clickable items More...
 
- Public Member Functions inherited from ilTreeExplorerGUI
 __construct ($a_expl_id, $a_parent_obj, $a_parent_cmd, $a_tree)
 Constructor. More...
 
 getTree ()
 Get tree. More...
 
 setOrderField ($a_val, $a_numeric=false)
 Set order field. More...
 
 getOrderField ()
 Get order field. More...
 
 setTypeWhiteList ($a_val)
 Set type white list. More...
 
 getTypeWhiteList ()
 Get type white list. More...
 
 setTypeBlackList ($a_val)
 Set type black list. More...
 
 getTypeBlackList ()
 Get type black list. More...
 
 setPreloadChilds ($a_val)
 Set preload childs. More...
 
 getPreloadChilds ()
 Get preload childs. More...
 
 getSuccessorNode ($a_node_id, $a_type="")
 Get successor node (currently only(!) based on lft/rgt tree values) More...
 
 getChildsOfNode ($a_parent_node_id)
 Get childs of node. More...
 
 getNodeId ($a_node)
 Get id for node. More...
 
 getNodeIconAlt ($a_node)
 Get node icon alt attribute. More...
 
 getRootNode ()
 Get root node. More...
 
 setRootId ($a_root)
 
 setPathOpen ($a_id)
 Set node path to be opened. More...
 
 getHTML ()
 Get HTML. More...
 
- Public Member Functions inherited from ilExplorerBaseGUI
 __construct ($a_expl_id, $a_parent_obj, $a_parent_cmd)
 Constructor. More...
 
 setMainTemplate (ilTemplate $a_main_tpl=null)
 Set main template (that is responsible for adding js/css) More...
 
 getRootNode ()
 Get root node. More...
 
 getChildsOfNode ($a_parent_node_id)
 Get childs of node. More...
 
 getNodeContent ($a_node)
 Get content of a node. More...
 
 getNodeId ($a_node)
 Get id of a node. More...
 
 getNodeHref ($a_node)
 Get href for node. More...
 
 nodeHasVisibleChilds ($a_node)
 Node has childs? More...
 
 sortChilds ($a_childs, $a_parent_node_id)
 Sort childs. More...
 
 getNodeIcon ($a_node)
 Get node icon path. More...
 
 getNodeIconAlt ($a_node)
 Get node icon alt attribute. More...
 
 getNodeTarget ($a_node)
 Get node target (frame) attribute. More...
 
 getNodeOnClick ($a_node)
 Get node onclick attribute. More...
 
 isNodeVisible ($a_node)
 Is node visible? More...
 
 isNodeHighlighted ($a_node)
 Is node highlighted? More...
 
 isNodeClickable ($a_node)
 Is node clickable? More...
 
 getId ()
 Get id of explorer element. More...
 
 setSkipRootNode ($a_val)
 Set skip root node. More...
 
 getSkipRootNode ()
 Get skip root node. More...
 
 setAjax ($a_val)
 Set ajax. More...
 
 getAjax ()
 Get ajax. More...
 
 setSecondaryHighlightedNodes ($a_val)
 Set secondary (background) highlighted nodes. More...
 
 getSecondaryHighlightedNodes ()
 Get secondary (background) highlighted nodes. More...
 
 setNodeOpen ($a_id)
 Set node to be opened (additional custom opened node, not standard expand behaviour) More...
 
 setSelectMode ($a_postvar, $a_multi=false)
 Set select mode (to deactivate, pass an empty string as postvar) More...
 
 setNodeSelected ($a_id)
 Set node to be opened (additional custom opened node, not standard expand behaviour) More...
 
 setOfflineMode ($a_val)
 Set offline mode. More...
 
 getOfflineMode ()
 Get offline mode. More...
 
 handleCommand ()
 Handle explorer internal command. More...
 
 getContainerId ()
 Get container id. More...
 
 openNode ()
 Open node. More...
 
 closeNode ()
 Close node. More...
 
 getNodeAsync ()
 Get node asynchronously. More...
 
 beforeRendering ()
 Before rendering. More...
 
 getOnLoadCode ()
 Get on load code. More...
 
 getHTML ()
 Get HTML. More...
 
 renderNode ($a_node, $tpl)
 Render node. More...
 
 renderChilds ($a_node_id, $tpl)
 Render childs. More...
 
 getDomNodeIdForNodeId ($a_node_id)
 Get DOM node id for node id. More...
 
 getNodeIdForDomNodeId ($a_dom_node_id)
 Get node id for dom node id. More...
 
 listItemStart ($tpl, $a_node)
 List item start. More...
 
 listItemEnd ($tpl)
 List item end. More...
 
 listStart ($tpl)
 List start. More...
 
 listEnd ($tpl)
 List end. More...
 
 isNodeOnclickEnabled ()
 
 setNodeOnclickEnabled ($nodeOnclickEnabled)
 
 isEnableDnd ()
 
 setEnableDnd ($enable_dnd)
 Enable Drag & Drop functionality. More...
 

Protected Member Functions

 isNodeSelectable ($a_node)
 Is node selectable? More...
 
- Protected Member Functions inherited from ilTreeExplorerGUI
 preloadChilds ()
 Preload childs. More...
 
 getRootId ()
 
- Protected Member Functions inherited from ilExplorerBaseGUI
 isNodeSelectable ($a_node)
 Is node selectable? More...
 
 getNodeToggleOnClick ($a_node)
 Get onclick attribute for node toggling. More...
 
 getSelectOnClick ($a_node)
 Get onclick attribute for selecting radio/checkbox. More...
 
 getJSTreePlugins ()
 

Protected Attributes

 $obj_definition
 
 $lng
 
 $type_grps = array()
 
 $session_materials = array()
 
 $highlighted_node = null
 
 $clickable_types = array()
 
 $ctrl
 
 $access
 
 $nc_modifier = null
 
 $selection_gui = null
 
 $selection_par
 
 $selection_cmd
 
- Protected Attributes inherited from ilTreeExplorerGUI
 $lng
 
 $tree = null
 
 $order_field = ""
 
 $order_field_numeric = false
 
 $type_white_list = array()
 
 $type_black_list = array()
 
 $childs = array()
 
 $preloaded = false
 
 $preload_childs = false
 
 $root_node_data = null
 
 $all_childs = array()
 
- Protected Attributes inherited from ilExplorerBaseGUI
 $log
 
 $ctrl
 
 $tpl
 
 $skip_root_node = false
 
 $ajax = false
 
 $custom_open_nodes = array()
 
 $selected_nodes = array()
 
 $select_postvar = ""
 
 $offline_mode = false
 
 $sec_highl_nodes = array()
 
 $enable_dnd = false
 

Additional Inherited Members

- Static Public Member Functions inherited from ilExplorerBaseGUI
static getLocalExplorerJsPath ()
 Get local path of explorer js. More...
 
static getLocalJsTreeJsPath ()
 Get local path of jsTree js. More...
 
static createHTMLExportDirs ($a_target_dir)
 Create html export directories. More...
 
static init ($a_main_tpl=null)
 Init JS. More...
 
- Static Protected Attributes inherited from ilExplorerBaseGUI
static $js_tree_path = "./libs/bower/bower_components/jstree/jquery.jstree.js"
 
static $js_expl_path = "./Services/UIComponent/Explorer2/js/Explorer2.js"
 

Detailed Description

Explorer for selecting repository items.

The implementation starts as a replacement for the often (ab)used ilSearchRootSelector class. Clicking items triggers a "selection" command. However ajax/checkbox/radio and use in an inputgui class should be implemented in the future, too.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 18 of file class.ilRepositorySelectorExplorerGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilRepositorySelectorExplorerGUI::__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.

Parameters
object$a_parent_objparent gui object
string$a_parent_cmdparent cmd that renders the explorer
object/string$a_selection_gui gui class that should be called for the selection command
string$a_selection_cmdselection command
string$a_selection_parselection parameter

Reimplemented in ilPoolSelectorGUI, and ilPCFileItemFileSelectorGUI.

Definition at line 74 of file class.ilRepositorySelectorExplorerGUI.php.

81 {
82 global $DIC;
83
84 $this->tree = $DIC->repositoryTree();
85 $this->obj_definition = $DIC["objDefinition"];
86 $this->lng = $DIC->language();
87 $tree = $DIC->repositoryTree();
88 $objDefinition = $DIC["objDefinition"];
89
90 $this->access = $DIC->access();
91 $this->ctrl = $DIC->ctrl();
92
93 if (is_null($a_selection_gui)) {
94 $a_selection_gui = $a_parent_obj;
95 }
96
97 $this->selection_gui = is_object($a_selection_gui)
98 ? strtolower(get_class($a_selection_gui))
99 : strtolower($a_selection_gui);
100 $this->selection_cmd = $a_selection_cmd;
101 $this->selection_par = $a_selection_par;
102 parent::__construct($a_id, $a_parent_obj, $a_parent_cmd, $tree);
103
104 $this->setSkipRootNode(false);
105 $this->setAjax(true);
106 $this->setOrderField("title");
107
108 // per default: all object types, except item groups
109 $white = array();
110 foreach ($objDefinition->getSubObjectsRecursively("root") as $rtype) {
111 if ($rtype["name"] != "itgr" && !$objDefinition->isSideBlock($rtype["name"])) {
112 $white[] = $rtype["name"];
113 }
114 }
115 $this->setTypeWhiteList($white);
116
117 // always open the path to the current ref id
118 if ((int) $_GET["ref_id"] > 0) {
119 $this->setPathOpen((int) $_GET["ref_id"]);
120 }
121 }
$_GET["client_id"]
setSkipRootNode($a_val)
Set skip root node.
setTypeWhiteList($a_val)
Set type white list.
setPathOpen($a_id)
Set node path to be opened.
setOrderField($a_val, $a_numeric=false)
Set order field.
$white
Definition: example_030.php:84
global $DIC
Definition: saml.php:7

References $_GET, $DIC, ilTreeExplorerGUI\$tree, $white, ilExplorerBaseGUI\setAjax(), ilTreeExplorerGUI\setOrderField(), ilTreeExplorerGUI\setPathOpen(), ilExplorerBaseGUI\setSkipRootNode(), and ilTreeExplorerGUI\setTypeWhiteList().

+ Here is the call graph for this function:

Member Function Documentation

◆ getChildsOfNode()

ilRepositorySelectorExplorerGUI::getChildsOfNode (   $a_parent_node_id)

Get childs of node.

Parameters
int$a_parent_node_idnode id
Returns
array childs array

Reimplemented from ilTreeExplorerGUI.

Definition at line 330 of file class.ilRepositorySelectorExplorerGUI.php.

331 {
332 $ilAccess = $this->access;
333
334 if (!$ilAccess->checkAccess("read", "", $a_parent_node_id)) {
335 return array();
336 }
337
338 return parent::getChildsOfNode($a_parent_node_id);
339 }

References $access.

Referenced by ilPoolSelectorGUI\isNodeVisible().

+ Here is the caller graph for this function:

◆ getClickableTypes()

ilRepositorySelectorExplorerGUI::getClickableTypes ( )

get whitelist for clickable items

Returns
array types

Definition at line 405 of file class.ilRepositorySelectorExplorerGUI.php.

References $clickable_types.

Referenced by isNodeClickable().

+ Here is the caller graph for this function:

◆ getHighlightedNode()

ilRepositorySelectorExplorerGUI::getHighlightedNode ( )

get an alternate highlighted node if $_GET["ref_id"] is not set or wrong Returns null if not set

Returns
mixed ref_id

Definition at line 382 of file class.ilRepositorySelectorExplorerGUI.php.

References $highlighted_node.

Referenced by isNodeHighlighted().

+ Here is the caller graph for this function:

◆ getNodeContent()

ilRepositorySelectorExplorerGUI::getNodeContent (   $a_node)

Get node content.

Parameters
array$a_nodenode data
Returns
string content

Reimplemented from ilExplorerBaseGUI.

Definition at line 149 of file class.ilRepositorySelectorExplorerGUI.php.

150 {
152
153 $c = $this->getNodeContentModifier();
154 if (is_callable($c)) {
155 return $c($a_node);
156 }
157
158 $title = $a_node["title"];
159 if ($a_node["child"] == $this->getNodeId($this->getRootNode())) {
160 if ($title == "ILIAS") {
161 $title = $lng->txt("repository");
162 }
163 }
164
165 return $title;
166 }
getNodeId($a_node)
Get id for node.

References $lng, $title, getNodeContentModifier(), ilTreeExplorerGUI\getNodeId(), and ilTreeExplorerGUI\getRootNode().

+ Here is the call graph for this function:

◆ getNodeContentModifier()

ilRepositorySelectorExplorerGUI::getNodeContentModifier ( )

Get node content modifier.

Returns
callable

Definition at line 138 of file class.ilRepositorySelectorExplorerGUI.php.

References $nc_modifier.

Referenced by getNodeContent().

+ Here is the caller graph for this function:

◆ getNodeHref()

ilRepositorySelectorExplorerGUI::getNodeHref (   $a_node)

Get href for node.

Parameters
mixed$a_nodenode object/array
Returns
string href attribute

Reimplemented from ilExplorerBaseGUI.

Reimplemented in ilPCFileItemFileSelectorGUI, ilPoolSelectorGUI, and ilIntLinkRepItemExplorerGUI.

Definition at line 230 of file class.ilRepositorySelectorExplorerGUI.php.

231 {
233
234 if ($this->select_postvar == "") {
235 $ilCtrl->setParameterByClass($this->selection_gui, $this->selection_par, $a_node["child"]);
236 $link = $ilCtrl->getLinkTargetByClass($this->selection_gui, $this->selection_cmd);
237 $ilCtrl->setParameterByClass($this->selection_gui, $this->selection_par, "");
238 } else {
239 return "#";
240 }
241
242 return $link;
243 }
global $ilCtrl
Definition: ilias.php:18

References $ctrl, and $ilCtrl.

◆ getNodeIcon()

ilRepositorySelectorExplorerGUI::getNodeIcon (   $a_node)

Get node icon.

Parameters
array$a_nodenode data
Returns
string icon path

Reimplemented from ilExplorerBaseGUI.

Definition at line 174 of file class.ilRepositorySelectorExplorerGUI.php.

175 {
176 $obj_id = ilObject::_lookupObjId($a_node["child"]);
177 return ilObject::_getIcon($obj_id, "tiny", $a_node["type"]);
178 }
static _lookupObjId($a_id)
static _getIcon( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.

References ilObject\_getIcon(), and ilObject\_lookupObjId().

+ Here is the call graph for this function:

◆ getNodeIconAlt()

ilRepositorySelectorExplorerGUI::getNodeIconAlt (   $a_node)

Get node icon alt text.

Parameters
array$a_nodenode data
Returns
string alt text

Reimplemented from ilTreeExplorerGUI.

Definition at line 186 of file class.ilRepositorySelectorExplorerGUI.php.

187 {
189
190 if ($a_node["child"] == $this->getNodeId($this->getRootNode())) {
191 $title = $a_node["title"];
192 if ($title == "ILIAS") {
193 $title = $lng->txt("repository");
194 }
195 return $lng->txt("icon") . " " . $title;
196 }
197
198
199 return parent::getNodeIconAlt($a_node);
200 }

References $lng, $title, ilTreeExplorerGUI\getNodeId(), and ilTreeExplorerGUI\getRootNode().

+ Here is the call graph for this function:

◆ getSelectableTypes()

ilRepositorySelectorExplorerGUI::getSelectableTypes ( )

get whitelist for clickable items

Returns
array types

Definition at line 452 of file class.ilRepositorySelectorExplorerGUI.php.

453 {
454 return (array) $this->selectable_types;
455 }

Referenced by isNodeSelectable().

+ Here is the caller graph for this function:

◆ isNodeClickable()

ilRepositorySelectorExplorerGUI::isNodeClickable (   $a_node)

Is node clickable?

Parameters
array$a_nodenode data
Returns
boolean node clickable true/false

Reimplemented from ilExplorerBaseGUI.

Reimplemented in ilForumMoveTopicsExplorer, ilGroupActionTargetExplorerGUI, ilConditionSelector, ilPCFileItemFileSelectorGUI, ilLinkTargetObjectExplorerGUI, and ilTestQuestionPoolSelectorExplorer.

Definition at line 347 of file class.ilRepositorySelectorExplorerGUI.php.

348 {
349 $ilAccess = $this->access;
350
351 if ($this->select_postvar != "") {
352 // return false; #14354
353 }
354
355 if (!$ilAccess->hasUserRBACorAnyPositionAccess("read", $a_node["child"])) {
356 return false;
357 }
358
359 if (is_array($this->getClickableTypes()) && count($this->getClickableTypes())>0) {
360 return in_array($a_node["type"], $this->getClickableTypes());
361 }
362
363 return true;
364 }
getClickableTypes()
get whitelist for clickable items

References $access, and getClickableTypes().

Referenced by ilPoolSelectorGUI\isNodeVisible().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isNodeHighlighted()

ilRepositorySelectorExplorerGUI::isNodeHighlighted (   $a_node)

Is node highlighted?

Parameters
mixed$a_nodenode object/array
Returns
boolean node visible true/false

Reimplemented from ilExplorerBaseGUI.

Reimplemented in ilConditionSelector.

Definition at line 208 of file class.ilRepositorySelectorExplorerGUI.php.

209 {
210 if ($this->getHighlightedNode()) {
211 if ($this->getHighlightedNode() == $a_node["child"]) {
212 return true;
213 }
214 return false;
215 }
216
217 if ($a_node["child"] == $_GET["ref_id"] ||
218 ($_GET["ref_id"] == "" && $a_node["child"] == $this->getNodeId($this->getRootNode()))) {
219 return true;
220 }
221 return false;
222 }
getHighlightedNode()
get an alternate highlighted node if $_GET["ref_id"] is not set or wrong Returns null if not set

References $_GET, getHighlightedNode(), ilTreeExplorerGUI\getNodeId(), and ilTreeExplorerGUI\getRootNode().

+ Here is the call graph for this function:

◆ isNodeSelectable()

ilRepositorySelectorExplorerGUI::isNodeSelectable (   $a_node)
protected

Is node selectable?

Parameters
mixed$a_nodenode object/array
Returns
boolean node selectable true/false

Reimplemented from ilExplorerBaseGUI.

Reimplemented in ilForumMoveTopicsExplorer.

Definition at line 463 of file class.ilRepositorySelectorExplorerGUI.php.

464 {
465 if (count($this->getSelectableTypes())) {
466 return in_array($a_node['type'], $this->getSelectableTypes());
467 }
468 return true;
469 }
getSelectableTypes()
get whitelist for clickable items

References getSelectableTypes().

+ Here is the call graph for this function:

◆ isNodeVisible()

ilRepositorySelectorExplorerGUI::isNodeVisible (   $a_node)

Is node visible.

Parameters
array$a_nodenode data
Returns
bool visible true/false

Reimplemented from ilExplorerBaseGUI.

Reimplemented in ilForumMoveTopicsExplorer, ilConditionSelector, ilPoolSelectorGUI, and ilTestQuestionPoolSelectorExplorer.

Definition at line 251 of file class.ilRepositorySelectorExplorerGUI.php.

252 {
253 $ilAccess = $this->access;
254
255 if (!$ilAccess->checkAccess('visible', '', $a_node["child"])) {
256 return false;
257 }
258
259 return true;
260 }

References $access.

◆ setClickableTypes()

ilRepositorySelectorExplorerGUI::setClickableTypes (   $a_types)

set Whitelist for clickable items

Parameters
array/string$a_types array type

Definition at line 392 of file class.ilRepositorySelectorExplorerGUI.php.

393 {
394 if (!is_array($a_types)) {
395 $a_types = array($a_types);
396 }
397 $this->clickable_types = $a_types;
398 }

Referenced by ilPCFileItemFileSelectorGUI\__construct(), and ilTestQuestionPoolSelectorExplorer\__construct().

+ Here is the caller graph for this function:

◆ setHighlightedNode()

ilRepositorySelectorExplorerGUI::setHighlightedNode (   $a_value)

set an alternate highlighted node if $_GET["ref_id"] is not set or wrong

Parameters
int$a_valueref_id

Definition at line 371 of file class.ilRepositorySelectorExplorerGUI.php.

372 {
373 $this->highlighted_node = $a_value;
374 }

◆ setNodeContentModifier()

ilRepositorySelectorExplorerGUI::setNodeContentModifier ( callable  $a_val)

Set node content modifier.

Parameters
callable$a_val

Definition at line 128 of file class.ilRepositorySelectorExplorerGUI.php.

129 {
130 $this->nc_modifier = $a_val;
131 }

◆ setSelectableTypes()

ilRepositorySelectorExplorerGUI::setSelectableTypes (   $a_types)

Get HTML.

Parameters

return set Whitelist for clickable items

Parameters
array/string$a_types array type

Definition at line 439 of file class.ilRepositorySelectorExplorerGUI.php.

440 {
441 if (!is_array($a_types)) {
442 $a_types = array($a_types);
443 }
444 $this->selectable_types = $a_types;
445 }

◆ sortChilds()

ilRepositorySelectorExplorerGUI::sortChilds (   $a_childs,
  $a_parent_node_id 
)

Sort childs.

Parameters
array$a_childsarray of child nodes
int$a_parent_node_idparent node id
Returns
array array of childs nodes

Reimplemented from ilExplorerBaseGUI.

Definition at line 269 of file class.ilRepositorySelectorExplorerGUI.php.

270 {
271 $objDefinition = $this->obj_definition;
272
273 $parent_obj_id = ilObject::_lookupObjId($a_parent_node_id);
274
275 if ($parent_obj_id > 0) {
276 $parent_type = ilObject::_lookupType($parent_obj_id);
277 } else {
278 $parent_type = "dummy";
279 $this->type_grps["dummy"] = array("root" => "dummy");
280 }
281
282 if (empty($this->type_grps[$parent_type])) {
283 $this->type_grps[$parent_type] =
284 $objDefinition->getGroupedRepositoryObjectTypes($parent_type);
285 }
286 $group = array();
287
288 foreach ($a_childs as $child) {
289 $g = $objDefinition->getGroupOfObj($child["type"]);
290 if ($g == "") {
291 $g = $child["type"];
292 }
293 $group[$g][] = $child;
294 }
295
296 // #14587 - $objDefinition->getGroupedRepositoryObjectTypes does NOT include side blocks!
297 $wl = $this->getTypeWhiteList();
298 if (is_array($wl) && in_array("poll", $wl)) {
299 $this->type_grps[$parent_type]["poll"] = array();
300 }
301
302 $childs = array();
303 foreach ($this->type_grps[$parent_type] as $t => $g) {
304 if (is_array($group[$t])) {
305 // do we have to sort this group??
306 include_once("./Services/Container/classes/class.ilContainer.php");
307 include_once("./Services/Container/classes/class.ilContainerSorting.php");
308 $sort = ilContainerSorting::_getInstance($parent_obj_id);
309 $group = $sort->sortItems($group);
310
311 // need extra session sorting here
312 if ($t == "sess") {
313 }
314
315 foreach ($group[$t] as $k => $item) {
316 $childs[] = $item;
317 }
318 }
319 }
320
321 return $childs;
322 }
static _getInstance($a_obj_id)
get instance by obj_id
static _lookupType($a_id, $a_reference=false)
lookup object type
getTypeWhiteList()
Get type white list.

References ilTreeExplorerGUI\$childs, $obj_definition, $t, ilContainerSorting\_getInstance(), ilObject\_lookupObjId(), ilObject\_lookupType(), and ilTreeExplorerGUI\getTypeWhiteList().

+ Here is the call graph for this function:

Field Documentation

◆ $access

ilRepositorySelectorExplorerGUI::$access
protected

◆ $clickable_types

ilRepositorySelectorExplorerGUI::$clickable_types = array()
protected

Definition at line 33 of file class.ilRepositorySelectorExplorerGUI.php.

Referenced by getClickableTypes().

◆ $ctrl

ilRepositorySelectorExplorerGUI::$ctrl
protected

◆ $highlighted_node

ilRepositorySelectorExplorerGUI::$highlighted_node = null
protected

Definition at line 32 of file class.ilRepositorySelectorExplorerGUI.php.

Referenced by getHighlightedNode().

◆ $lng

ilRepositorySelectorExplorerGUI::$lng
protected

Definition at line 28 of file class.ilRepositorySelectorExplorerGUI.php.

Referenced by getNodeContent(), and getNodeIconAlt().

◆ $nc_modifier

ilRepositorySelectorExplorerGUI::$nc_modifier = null
protected

Definition at line 48 of file class.ilRepositorySelectorExplorerGUI.php.

Referenced by getNodeContentModifier().

◆ $obj_definition

ilRepositorySelectorExplorerGUI::$obj_definition
protected

Definition at line 23 of file class.ilRepositorySelectorExplorerGUI.php.

Referenced by sortChilds().

◆ $selection_cmd

ilRepositorySelectorExplorerGUI::$selection_cmd
protected

Definition at line 63 of file class.ilRepositorySelectorExplorerGUI.php.

◆ $selection_gui

ilRepositorySelectorExplorerGUI::$selection_gui = null
protected

Definition at line 53 of file class.ilRepositorySelectorExplorerGUI.php.

◆ $selection_par

ilRepositorySelectorExplorerGUI::$selection_par
protected

Definition at line 58 of file class.ilRepositorySelectorExplorerGUI.php.

◆ $session_materials

ilRepositorySelectorExplorerGUI::$session_materials = array()
protected

Definition at line 31 of file class.ilRepositorySelectorExplorerGUI.php.

◆ $type_grps

ilRepositorySelectorExplorerGUI::$type_grps = array()
protected

Definition at line 30 of file class.ilRepositorySelectorExplorerGUI.php.


The documentation for this class was generated from the following file: