ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ilExplorerBaseGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilExplorerBaseGUI:
+ Collaboration diagram for ilExplorerBaseGUI:

Public Member Functions

 setChildLimit (int $a_val)
 
 getChildLimit ()
 
 setSearchTerm (string $a_val)
 
 getSearchTerm ()
 
 setMainTemplate (?ilGlobalTemplateInterface $a_main_tpl=null)
 
 getRootNode ()
 Get root node. More...
 
 getChildsOfNode ($a_parent_node_id)
 Get children 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 children Please note that this standard method may not be optimal depending on what a derived class does in isNodeVisible. More...
 
 sortChilds (array $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 (bool $a_val)
 
 getSkipRootNode ()
 
 setAjax (bool $a_val)
 
 getAjax ()
 
 setSecondaryHighlightedNodes (array $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 (string $a_postvar, bool $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 (bool $a_val)
 
 getOfflineMode ()
 
 handleCommand ()
 Handle explorer internal command. More...
 
 getContainerId ()
 
 openNode ()
 Open node. More...
 
 closeNode ()
 Close node. More...
 
 getNodeAsync ()
 Get node asynchronously. More...
 
 beforeRendering ()
 Before rendering. More...
 
 getOnLoadCode ()
 Get on load code. More...
 
 getHTML ()
 
 renderNode ($a_node, ilTemplate $tpl)
 Render node. More...
 
 renderChilds ($a_node_id, ilTemplate $tpl)
 Render childs. More...
 
 getDomNodeIdForNodeId ($a_node_id)
 Get DOM node id for node id. More...
 
 getNodeIdForDomNodeId (string $a_dom_node_id)
 Get node id for dom node id. More...
 
 listItemStart (ilTemplate $tpl, $a_node)
 List item start. More...
 
 listItemEnd (ilTemplate $tpl)
 
 listStart (ilTemplate $tpl)
 
 listEnd (ilTemplate $tpl)
 
 isNodeOnclickEnabled ()
 
 setNodeOnclickEnabled (bool $nodeOnclickEnabled)
 
 isEnableDnd ()
 
 setEnableDnd (bool $enable_dnd)
 

Static Public Member Functions

static getLocalExplorerJsPath ()
 
static getLocalJsTreeJsPath ()
 
static getLocalJsTreeCssPath ()
 
static createHTMLExportDirs (string $a_target_dir)
 
static init (?ilGlobalTemplateInterface $a_main_tpl=null)
 

Protected Member Functions

 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...
 
 isNodeOpen ($node_id)
 Get all open nodes. More...
 
 getJSTreePlugins ()
 
 isNodeRequested (string $a_node_id)
 

Protected Attributes

string $node_parameter_name
 
ilLogger $log
 
ilCtrl $ctrl
 
ilGlobalTemplateInterface $tpl
 
bool $skip_root_node = false
 
bool $ajax = false
 
array $custom_open_nodes = array()
 
array $selected_nodes = array()
 
string $select_postvar = ""
 
bool $offline_mode = false
 
array $sec_highl_nodes = array()
 
bool $enable_dnd = false
 
string $search_term = ""
 
array $open_nodes = []
 
ilSessionIStorage $store
 
bool $select_multi = false
 
 $parent_obj
 
int $child_limit = 0
 
string $parent_cmd = ''
 
string $requested_exp_cmd = ""
 
string $requested_exp_cont = ""
 
string $requested_searchterm = ""
 
string $requested_node_id = ""
 
string $id
 

Static Protected Attributes

static string $js_tree_path = "./node_modules/jstree/dist/jstree.js"
 
static string $js_tree_path_css = "./node_modules/jstree/dist/themes/default/style.min.css"
 
static string $js_expl_path = "assets/js/Explorer2.js"
 

Private Attributes

bool $nodeOnclickEnabled
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning The class is supposed to work on a hierarchie of nodes that are identified by IDs. Whether nodes are represented by associative arrays or objects is not defined by this abstract class.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de
Deprecated:
with ILIAS 12

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

Member Function Documentation

◆ beforeRendering()

ilExplorerBaseGUI::beforeRendering ( )

Before rendering.

Reimplemented in ilLMExplorerGUI.

Definition at line 503 of file class.ilExplorerBaseGUI.php.

503 : void
504 {
505 }

Referenced by getHTML(), and getNodeAsync().

+ Here is the caller graph for this function:

◆ closeNode()

ilExplorerBaseGUI::closeNode ( )

Close node.

Definition at line 464 of file class.ilExplorerBaseGUI.php.

464 : void
465 {
466 $id = $this->getNodeIdForDomNodeId($this->requested_node_id);
467 if (in_array($id, $this->open_nodes)) {
468 $k = array_search($id, $this->open_nodes);
469 unset($this->open_nodes[$k]);
470 }
471 $this->store->set("on_" . $this->id, serialize($this->open_nodes));
472 exit;
473 }
getNodeIdForDomNodeId(string $a_dom_node_id)
Get node id for dom node id.
exit

References $id, exit, and getNodeIdForDomNodeId().

+ Here is the call graph for this function:

◆ createHTMLExportDirs()

static ilExplorerBaseGUI::createHTMLExportDirs ( string  $a_target_dir)
static

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

138 : void
139 {
140 ilFileUtils::makeDirParents($a_target_dir . "/components/ILIAS/UIComponent/Explorer2/lib/jstree-v.pre1.0");
141 ilFileUtils::makeDirParents($a_target_dir . "/components/ILIAS/UIComponent/Explorer2/js");
142 }
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.

References ilFileUtils\makeDirParents().

+ Here is the call graph for this function:

◆ getAjax()

ilExplorerBaseGUI::getAjax ( )

Definition at line 337 of file class.ilExplorerBaseGUI.php.

337 : bool
338 {
339 return $this->ajax;
340 }

References $ajax.

Referenced by getOnLoadCode(), listItemStart(), and renderNode().

+ Here is the caller graph for this function:

◆ getChildLimit()

ilExplorerBaseGUI::getChildLimit ( )

Definition at line 103 of file class.ilExplorerBaseGUI.php.

103 : int
104 {
105 return $this->child_limit;
106 }

References $child_limit.

Referenced by renderChilds().

+ Here is the caller graph for this function:

◆ getChildsOfNode()

ilExplorerBaseGUI::getChildsOfNode (   $a_parent_node_id)
abstract

◆ getContainerId()

ilExplorerBaseGUI::getContainerId ( )

Definition at line 443 of file class.ilExplorerBaseGUI.php.

443 : string
444 {
445 return "il_expl2_jstree_cont_" . $this->getId();
446 }
getId()
Get id of explorer element.

References getId().

Referenced by getHTML(), getNodeToggleOnClick(), getOnLoadCode(), and handleCommand().

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

◆ getDomNodeIdForNodeId()

ilExplorerBaseGUI::getDomNodeIdForNodeId (   $a_node_id)

Get DOM node id for node id.

Parameters
string$a_node_id

Reimplemented in ilVirtualSkillTreeExplorerGUI.

Definition at line 823 of file class.ilExplorerBaseGUI.php.

823 : string
824 {
825 return "exp_node_" . $this->getId() . "_" . $a_node_id;
826 }

References getId().

Referenced by getNodeToggleOnClick(), getOnLoadCode(), getSelectOnClick(), isNodeRequested(), and listItemStart().

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

◆ getHTML()

ilExplorerBaseGUI::getHTML ( )

Definition at line 611 of file class.ilExplorerBaseGUI.php.

611 : string
612 {
614 $ilCtrl = $this->ctrl;
615
616 $root = $this->getNodeId($this->getRootNode());
617 if (!in_array($root, $this->open_nodes)) {
618 $this->open_nodes[] = $root;
619 }
620
621 $this->beforeRendering();
622
624 $container_id = $this->getContainerId();
625 $container_outer_id = "il_expl2_jstree_cont_out_" . $this->getId();
626
627 if (!$ilCtrl->isAsynch()) {
629 }
630
631 $etpl = new ilTemplate("tpl.explorer2.html", true, true, "components/ILIAS/UIComponent/Explorer2");
632
633 if (!$this->ajax) {
634 // render childs
635 $root_node = $this->getRootNode();
636
637 if (!$this->getSkipRootNode() &&
638 $this->isNodeVisible($this->getRootNode())) {
639 $this->listStart($etpl);
640 $this->renderNode($this->getRootNode(), $etpl);
641 $this->listEnd($etpl);
642 } else {
643 $childs = $this->getChildsOfNode($this->getNodeId($root_node));
644 $childs = $this->sortChilds($childs, $this->getNodeId($root_node));
645 $any = false;
646 foreach ($childs as $child_node) {
647 if ($this->isNodeVisible($child_node)) {
648 if (!$any) {
649 $this->listStart($etpl);
650 $any = true;
651 }
652 $this->renderNode($child_node, $etpl);
653 }
654 }
655 if ($any) {
656 $this->listEnd($etpl);
657 }
658 }
659 }
660
661 $etpl->setVariable("CONTAINER_ID", $container_id);
662 $etpl->setVariable("CONTAINER_OUTER_ID", $container_outer_id);
663
664 $add = "";
665 if ($ilCtrl->isAsynch()) {
666 $add = "<script>" . $this->getOnLoadCode() . "</script>";
667 }
668
669 $content = $etpl->get();
670 //echo $content.$add; exit;
671 return $content . $add;
672 }
sortChilds(array $a_childs, $a_parent_node_id)
Sort childs.
renderNode($a_node, ilTemplate $tpl)
Render node.
beforeRendering()
Before rendering.
getOnLoadCode()
Get on load code.
getChildsOfNode($a_parent_node_id)
Get children of node.
getNodeId($a_node)
Get id of a node.
getRootNode()
Get root node.
isNodeVisible($a_node)
Is node visible?
ilGlobalTemplateInterface $tpl
static init(?ilGlobalTemplateInterface $a_main_tpl=null)
special template class to simplify handling of ITX/PEAR
addOnLoadCode(string $a_code, int $a_batch=2)
Add on load code.

References $ctrl, $tpl, ILIAS\UICore\GlobalTemplate\addOnLoadCode(), beforeRendering(), getChildsOfNode(), getContainerId(), getId(), getNodeId(), getOnLoadCode(), getRootNode(), getSkipRootNode(), init(), isNodeVisible(), listEnd(), listStart(), renderNode(), and sortChilds().

+ Here is the call graph for this function:

◆ getId()

ilExplorerBaseGUI::getId ( )

Get id of explorer element.

Returns
string id

Definition at line 317 of file class.ilExplorerBaseGUI.php.

317 : string
318 {
319 return $this->id;
320 }

References $id.

Referenced by getContainerId(), getDomNodeIdForNodeId(), getHTML(), getNodeIdForDomNodeId(), and getOnLoadCode().

+ Here is the caller graph for this function:

◆ getJSTreePlugins()

ilExplorerBaseGUI::getJSTreePlugins ( )
protected

Definition at line 586 of file class.ilExplorerBaseGUI.php.

586 : array
587 {
588 $plugins = array("html_data", "themes", "json_data");
589 if ($this->isEnableDnd()) {
590 $plugins[] = "dnd";
591 }
592 return $plugins;
593 }

References isEnableDnd().

Referenced by getOnLoadCode().

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

◆ getLocalExplorerJsPath()

static ilExplorerBaseGUI::getLocalExplorerJsPath ( )
static

Definition at line 123 of file class.ilExplorerBaseGUI.php.

123 : string
124 {
125 return self::$js_expl_path;
126 }

References $js_expl_path.

Referenced by ilGroupUserActionProvider\getJsScripts(), and ILIAS\LearningModule\Export\LMHtmlExport\getSupplyingExportFiles().

+ Here is the caller graph for this function:

◆ getLocalJsTreeCssPath()

static ilExplorerBaseGUI::getLocalJsTreeCssPath ( )
static

Definition at line 133 of file class.ilExplorerBaseGUI.php.

133 : string
134 {
136 }

References $js_tree_path_css.

Referenced by ILIAS\LearningModule\Export\LMHtmlExport\getSupplyingExportFiles().

+ Here is the caller graph for this function:

◆ getLocalJsTreeJsPath()

static ilExplorerBaseGUI::getLocalJsTreeJsPath ( )
static

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

128 : string
129 {
130 return self::$js_tree_path;
131 }

References $js_tree_path.

Referenced by ilGroupUserActionProvider\getJsScripts(), and ILIAS\LearningModule\Export\LMHtmlExport\getSupplyingExportFiles().

+ Here is the caller graph for this function:

◆ getNodeAsync()

ilExplorerBaseGUI::getNodeAsync ( )

Get node asynchronously.

Definition at line 478 of file class.ilExplorerBaseGUI.php.

478 : string
479 {
480 $this->beforeRendering();
481
482 $etpl = new ilTemplate("tpl.explorer2.html", true, true, "components/ILIAS/UIComponent/Explorer2");
483
484 $root = $this->getNodeId($this->getRootNode());
485 if (!in_array($root, $this->open_nodes)) {
486 $this->open_nodes[] = $root;
487 }
488 $this->setSearchTerm(ilUtil::stripSlashes($this->requested_searchterm));
489 if ($this->requested_node_id !== "") {
490 $id = $this->getNodeIdForDomNodeId($this->requested_node_id);
491 $this->renderChilds($id, $etpl);
492 } else {
493 $this->getNodeId($this->getRootNode());
494 $this->renderNode($this->getRootNode(), $etpl);
495 }
496 echo $etpl->get("tag");
497 exit;
498 }
renderChilds($a_node_id, ilTemplate $tpl)
Render childs.
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")

References $id, beforeRendering(), exit, getNodeId(), getNodeIdForDomNodeId(), getRootNode(), renderChilds(), renderNode(), setSearchTerm(), and ilUtil\stripSlashes().

+ Here is the call graph for this function:

◆ getNodeContent()

ilExplorerBaseGUI::getNodeContent (   $a_node)
abstract

◆ getNodeHref()

◆ getNodeIcon()

ilExplorerBaseGUI::getNodeIcon (   $a_node)

Get node icon path.

Parameters
object | array$a_node
Returns
string image file path

Reimplemented in ilAdministrationExplorerGUI, ilForumExplorerGUI, ilLMEditorExplorerGUI, ilLMTOCExplorerGUI, ilLSTOCGUI, ilMediaPoolExplorerGUI, ilOrgUnitExplorerGUI, ilWorkspaceExplorerGUI, ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilPersonalSkillExplorerGUI, ilSkillTemplateTreeExplorerGUI, ilSkillTreeExplorerGUI, ilVirtualSkillTreeExplorerGUI, and ilTaxonomyExplorerGUI.

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

230 : string
231 {
232 return "";
233 }

Referenced by renderNode().

+ Here is the caller graph for this function:

◆ getNodeIconAlt()

ilExplorerBaseGUI::getNodeIconAlt (   $a_node)

Get node icon alt attribute.

Parameters
object | array$a_node
Returns
string image alt attribute

Reimplemented in ilAdministrationExplorerGUI, ilLMEditorExplorerGUI, ilLMTOCExplorerGUI, ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilPersonalSkillExplorerGUI, ilSkillTemplateTreeExplorerGUI, ilVirtualSkillTreeExplorerGUI, and ilTreeExplorerGUI.

Definition at line 240 of file class.ilExplorerBaseGUI.php.

240 : string
241 {
242 return "";
243 }

Referenced by renderNode().

+ Here is the caller graph for this function:

◆ getNodeId()

ilExplorerBaseGUI::getNodeId (   $a_node)
abstract

Get id of a node.

Parameters
object | array$a_nodenode array or object
Returns
string id of node

Reimplemented in ilForumExplorerGUI, ilLSTOCGUI, ilVirtualSkillTreeExplorerGUI, and ilTreeExplorerGUI.

Referenced by getHTML(), getNodeAsync(), getNodeToggleOnClick(), getOnLoadCode(), getSelectOnClick(), isNodeOpen(), isNodeRequested(), listItemStart(), nodeHasVisibleChilds(), and renderNode().

+ Here is the caller graph for this function:

◆ getNodeIdForDomNodeId()

ilExplorerBaseGUI::getNodeIdForDomNodeId ( string  $a_dom_node_id)

Get node id for dom node id.

Reimplemented in ilVirtualSkillTreeExplorerGUI.

Definition at line 831 of file class.ilExplorerBaseGUI.php.

831 : string
832 {
833 $i = strlen("exp_node_" . $this->getId() . "_");
834 return substr($a_dom_node_id, $i);
835 }

References getId().

Referenced by closeNode(), getNodeAsync(), and openNode().

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

◆ getNodeOnClick()

ilExplorerBaseGUI::getNodeOnClick (   $a_node)

Get node onclick attribute.

Parameters
object | array$a_nodenode
Returns
string onclick value

Reimplemented in ilIntLinkRepItemExplorerGUI, ilLinkTargetObjectExplorerGUI, ilGroupActionTargetExplorerGUI, and ilTaxonomyExplorerGUI.

Definition at line 260 of file class.ilExplorerBaseGUI.php.

260 : string
261 {
262 if ($this->select_postvar !== "") {
263 return $this->getSelectOnClick($a_node);
264 }
265 return "";
266 }
getSelectOnClick($a_node)
Get onclick attribute for selecting radio/checkbox.

References getSelectOnClick().

Referenced by renderNode().

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

◆ getNodeTarget()

ilExplorerBaseGUI::getNodeTarget (   $a_node)

Get node target (frame) attribute.

Parameters
object | array$a_nodenode
Returns
string target

Definition at line 250 of file class.ilExplorerBaseGUI.php.

250 : string
251 {
252 return "";
253 }

Referenced by renderNode().

+ Here is the caller graph for this function:

◆ getNodeToggleOnClick()

ilExplorerBaseGUI::getNodeToggleOnClick (   $a_node)
finalprotected

Get onclick attribute for node toggling.

Parameters
object | array$a_node

Definition at line 373 of file class.ilExplorerBaseGUI.php.

373 : string
374 {
375 return "$('#" . $this->getContainerId() . "').jstree('toggle_node' , '#" .
376 $this->getDomNodeIdForNodeId($this->getNodeId($a_node)) . "'); return false;";
377 }
getDomNodeIdForNodeId($a_node_id)
Get DOM node id for node id.

References getContainerId(), getDomNodeIdForNodeId(), and getNodeId().

+ Here is the call graph for this function:

◆ getOfflineMode()

ilExplorerBaseGUI::getOfflineMode ( )

Definition at line 417 of file class.ilExplorerBaseGUI.php.

417 : bool
418 {
419 return $this->offline_mode;
420 }

References $offline_mode.

Referenced by ilLMTOCExplorerGUI\__construct(), ilLMExplorerGUI\__construct(), ilLMExplorerGUI\beforeRendering(), and getOnLoadCode().

+ Here is the caller graph for this function:

◆ getOnLoadCode()

ilExplorerBaseGUI::getOnLoadCode ( )

Get on load code.

Definition at line 522 of file class.ilExplorerBaseGUI.php.

522 : string
523 {
524 $ilCtrl = $this->ctrl;
525
526 $container_id = $this->getContainerId();
527 $container_outer_id = "il_expl2_jstree_cont_out_" . $this->getId();
528
529 // collect open nodes
530 $open_nodes = array($this->getDomNodeIdForNodeId($this->getNodeId($this->getRootNode())));
531 foreach ($this->open_nodes as $nid) {
532 $open_nodes[] = $this->getDomNodeIdForNodeId($nid);
533 }
534 foreach ($this->custom_open_nodes as $nid) {
535 $dnode = $this->getDomNodeIdForNodeId($nid);
536 if (!in_array($dnode, $open_nodes)) {
537 $open_nodes[] = $dnode;
538 }
539 }
540 // ilias config options
541 $url = "";
542 if (!$this->getOfflineMode()) {
543 if (is_object($this->parent_obj)) {
544 $url = $ilCtrl->getLinkTarget($this->parent_obj, $this->parent_cmd, "", true);
545 } else {
546 if (!is_null($this->parent_obj)) {
547 $url = $ilCtrl->getLinkTargetByClass($this->parent_obj, $this->parent_cmd, "", true);
548 }
549 }
550 }
551
552 // secondary highlighted nodes
553 $shn = array();
554 foreach ($this->sec_highl_nodes as $sh) {
555 $shn[] = $this->getDomNodeIdForNodeId($sh);
556 }
557 $config = array(
558 "container_id" => $container_id,
559 "container_outer_id" => $container_outer_id,
560 "url" => $url,
561 "second_hnodes" => $shn,
562 "ajax" => $this->getAjax(),
563 "node_par_name" => $this->node_parameter_name
564 );
565
566
567 // jstree config options
568 $js_tree_config = array(
569 "core" => array(
570 "animation" => 0,
571 "initially_open" => $open_nodes,
572 "open_parents" => false,
573 "strings" => array("loading" => "Loading ...", "new_node" => "New node"),
574 "themes" => array("dots" => false, "icons" => false, "theme" => "")
575 ),
576 "plugins" => $this->getJSTreePlugins(),
577 "html_data" => array()
578 );
579 return (
580 'il.Explorer2.init(' .
581 json_encode($config, JSON_THROW_ON_ERROR) . ', ' .
582 json_encode($js_tree_config, JSON_THROW_ON_ERROR) . ');'
583 );
584 }
$url
Definition: shib_logout.php:68

References $ctrl, $open_nodes, $url, getAjax(), getContainerId(), getDomNodeIdForNodeId(), getId(), getJSTreePlugins(), getNodeId(), getOfflineMode(), and getRootNode().

Referenced by getHTML().

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

◆ getRootNode()

ilExplorerBaseGUI::getRootNode ( )
abstract

Get root node.

Please note that the class does not make any requirements how nodes are represented (array or object)

Returns
object|array|null

Reimplemented in ilLMTOCExplorerGUI, ilLSTOCGUI, ilOrgUnitExplorerGUI, ilRepositoryExplorerGUI, ilSkillTemplateTreeExplorerGUI, ilVirtualSkillTreeExplorerGUI, and ilTreeExplorerGUI.

Referenced by getHTML(), getNodeAsync(), getOnLoadCode(), isNodeOpen(), isNodeRequested(), and renderNode().

+ Here is the caller graph for this function:

◆ getSearchTerm()

ilExplorerBaseGUI::getSearchTerm ( )

Definition at line 113 of file class.ilExplorerBaseGUI.php.

113 : string
114 {
115 return $this->search_term;
116 }

References $search_term.

Referenced by renderChilds().

+ Here is the caller graph for this function:

◆ getSecondaryHighlightedNodes()

ilExplorerBaseGUI::getSecondaryHighlightedNodes ( )

Get secondary (background) highlighted nodes.

Definition at line 353 of file class.ilExplorerBaseGUI.php.

353 : array
354 {
356 }

References $sec_highl_nodes.

◆ getSelectOnClick()

ilExplorerBaseGUI::getSelectOnClick (   $a_node)
finalprotected

Get onclick attribute for selecting radio/checkbox.

Parameters
object | array$a_node

Definition at line 383 of file class.ilExplorerBaseGUI.php.

383 : string
384 {
385 $dn_id = $this->getDomNodeIdForNodeId($this->getNodeId($a_node));
386 $oc = "il.Explorer2.selectOnClick(event, '" . $dn_id . "'); return false;";
387 return $oc;
388 }

References getDomNodeIdForNodeId(), and getNodeId().

Referenced by getNodeOnClick().

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

◆ getSkipRootNode()

ilExplorerBaseGUI::getSkipRootNode ( )

Definition at line 327 of file class.ilExplorerBaseGUI.php.

327 : bool
328 {
330 }

References $skip_root_node.

Referenced by getHTML(), ilVirtualSkillTreeExplorerGUI\getTreeComponent(), and renderNode().

+ Here is the caller graph for this function:

◆ handleCommand()

ilExplorerBaseGUI::handleCommand ( )

Handle explorer internal command.

Definition at line 429 of file class.ilExplorerBaseGUI.php.

429 : bool
430 {
431 if ($this->requested_exp_cmd !== "" &&
432 $this->requested_exp_cont === $this->getContainerId()) {
434 if (in_array($cmd, array("openNode", "closeNode", "getNodeAsync"))) {
435 $this->$cmd();
436 }
437
438 return true;
439 }
440 return false;
441 }

References $requested_exp_cmd, and getContainerId().

+ Here is the call graph for this function:

◆ init()

static ilExplorerBaseGUI::init ( ?ilGlobalTemplateInterface  $a_main_tpl = null)
static

Definition at line 597 of file class.ilExplorerBaseGUI.php.

597 : void
598 {
599 global $DIC;
600
601 $tpl = $a_main_tpl ?? $DIC["tpl"];
602
604
605 $tpl->addJavaScript(self::getLocalExplorerJsPath());
606 $tpl->addJavaScript(self::getLocalJsTreeJsPath());
607 $tpl->addCss(self::getLocalJsTreeCssPath());
608 }
static initjQuery(?ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
addJavaScript(string $a_js_file, bool $a_add_version_parameter=true, int $a_batch=2)
Add a javascript file that should be included in the header.
addCss(string $a_css_file, string $media="screen")
Add a css file that should be included in the header.
global $DIC
Definition: shib_login.php:26

References $DIC, $tpl, ILIAS\UICore\GlobalTemplate\addCss(), ILIAS\UICore\GlobalTemplate\addJavaScript(), and iljQueryUtil\initjQuery().

Referenced by getHTML(), ilInternalLinkGUI\getInitHTML(), ILIAS\Repository\Provider\RepositoryMainBarProvider\getStaticSubItems(), and ilObjStudyProgrammeGUI\initTreeJS().

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

◆ isEnableDnd()

ilExplorerBaseGUI::isEnableDnd ( )

Definition at line 887 of file class.ilExplorerBaseGUI.php.

887 : bool
888 {
889 return $this->enable_dnd;
890 }

References $enable_dnd.

Referenced by getJSTreePlugins().

+ Here is the caller graph for this function:

◆ isNodeClickable()

ilExplorerBaseGUI::isNodeClickable (   $a_node)

◆ isNodeHighlighted()

ilExplorerBaseGUI::isNodeHighlighted (   $a_node)

Is node highlighted?

Parameters
object | array$a_nodenode
Returns
bool node highlighted true/false

Reimplemented in ilAdministrationExplorerGUI, ilConditionSelector, ilLMExplorerGUI, ilLMTOCExplorerGUI, ilLSTOCGUI, ilMediaPoolExplorerGUI, ilWorkspaceExplorerGUI, ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilSkillTemplateTreeExplorerGUI, ilSkillTreeExplorerGUI, and ilTaxonomyExplorerGUI.

Definition at line 283 of file class.ilExplorerBaseGUI.php.

283 : bool
284 {
285 return false;
286 }

Referenced by renderNode().

+ Here is the caller graph for this function:

◆ isNodeOnclickEnabled()

ilExplorerBaseGUI::isNodeOnclickEnabled ( )

Definition at line 877 of file class.ilExplorerBaseGUI.php.

877 : bool
878 {
880 }

References $nodeOnclickEnabled.

Referenced by renderNode().

+ Here is the caller graph for this function:

◆ isNodeOpen()

ilExplorerBaseGUI::isNodeOpen (   $node_id)
protected

Get all open nodes.

Parameters
string$node_id

Definition at line 511 of file class.ilExplorerBaseGUI.php.

511 : bool
512 {
513 return ($this->getNodeId($this->getRootNode()) == $node_id
514 || in_array($node_id, $this->open_nodes)
515 || in_array($node_id, $this->custom_open_nodes));
516 }

References getNodeId(), and getRootNode().

Referenced by listItemStart().

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

◆ isNodeRequested()

ilExplorerBaseGUI::isNodeRequested ( string  $a_node_id)
protected

Definition at line 813 of file class.ilExplorerBaseGUI.php.

813 : bool
814 {
815 return ($this->requested_node_id === $this->getDomNodeIdForNodeId($a_node_id) ||
816 ($this->requested_node_id === "" && $a_node_id == $this->getNodeId($this->getRootNode())));
817 }

References getDomNodeIdForNodeId(), getNodeId(), and getRootNode().

Referenced by renderChilds().

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

◆ isNodeSelectable()

ilExplorerBaseGUI::isNodeSelectable (   $a_node)
protected

Is node selectable?

Parameters
object | array$a_nodenode
Returns
bool node selectable true/false

Reimplemented in ilForumMoveTopicsExplorer, ilOrgUnitExplorerGUI, ilWorkspaceExplorerGUI, ilRepositorySelectorExplorerGUI, and ilSkillSelectorGUI.

Definition at line 303 of file class.ilExplorerBaseGUI.php.

303 : bool
304 {
305 return true;
306 }

Referenced by renderNode().

+ Here is the caller graph for this function:

◆ isNodeVisible()

ilExplorerBaseGUI::isNodeVisible (   $a_node)

Is node visible?

Parameters
object | array$a_nodenode
Returns
bool node visible true/false

Reimplemented in ilAdministrationExplorerGUI, ilConditionSelector, ilStandardGlossarySelectorGUI, ilLMTOCExplorerGUI, ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, and ilTestQuestionPoolSelectorExplorer.

Definition at line 273 of file class.ilExplorerBaseGUI.php.

273 : bool
274 {
275 return true;
276 }

Referenced by getHTML(), nodeHasVisibleChilds(), and renderChilds().

+ Here is the caller graph for this function:

◆ listEnd()

ilExplorerBaseGUI::listEnd ( ilTemplate  $tpl)

Definition at line 871 of file class.ilExplorerBaseGUI.php.

871 : void
872 {
873 $tpl->touchBlock("list_end");
874 $tpl->touchBlock("tag");
875 }
touchBlock(string $block)
overwrites ITX::touchBlock.

References $tpl, and ILIAS\UICore\GlobalTemplate\touchBlock().

Referenced by getHTML(), and renderChilds().

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

◆ listItemEnd()

ilExplorerBaseGUI::listItemEnd ( ilTemplate  $tpl)

Definition at line 859 of file class.ilExplorerBaseGUI.php.

859 : void
860 {
861 $tpl->touchBlock("list_item_end");
862 $tpl->touchBlock("tag");
863 }

References $tpl, and ILIAS\UICore\GlobalTemplate\touchBlock().

Referenced by renderNode().

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

◆ listItemStart()

ilExplorerBaseGUI::listItemStart ( ilTemplate  $tpl,
  $a_node 
)

List item start.

Parameters
object | array$a_node

Definition at line 841 of file class.ilExplorerBaseGUI.php.

841 : void
842 {
843 $tpl->setCurrentBlock("list_item_start");
844 if ($this->getAjax() && $this->nodeHasVisibleChilds($a_node) && !$this->isNodeOpen($this->getNodeId($a_node))) {
845 $tpl->touchBlock("li_closed");
846 }
847 if ($this->isNodeOpen($this->getNodeId($a_node))) {
848 $tpl->touchBlock("li_opened");
849 }
850
852 "DOM_NODE_ID",
853 $this->getDomNodeIdForNodeId($this->getNodeId($a_node))
854 );
856 $tpl->touchBlock("tag");
857 }
nodeHasVisibleChilds($a_node)
Node has children Please note that this standard method may not be optimal depending on what a derive...
isNodeOpen($node_id)
Get all open nodes.
setVariable(string $variable, $value='')
Sets the given variable to the given value.
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.

References $tpl, getAjax(), getDomNodeIdForNodeId(), getNodeId(), isNodeOpen(), nodeHasVisibleChilds(), ILIAS\UICore\GlobalTemplate\parseCurrentBlock(), ILIAS\UICore\GlobalTemplate\setCurrentBlock(), ILIAS\UICore\GlobalTemplate\setVariable(), and ILIAS\UICore\GlobalTemplate\touchBlock().

Referenced by renderNode().

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

◆ listStart()

ilExplorerBaseGUI::listStart ( ilTemplate  $tpl)

Definition at line 865 of file class.ilExplorerBaseGUI.php.

865 : void
866 {
867 $tpl->touchBlock("list_start");
868 $tpl->touchBlock("tag");
869 }

References $tpl, and ILIAS\UICore\GlobalTemplate\touchBlock().

Referenced by getHTML(), and renderChilds().

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

◆ nodeHasVisibleChilds()

ilExplorerBaseGUI::nodeHasVisibleChilds (   $a_node)

Node has children Please note that this standard method may not be optimal depending on what a derived class does in isNodeVisible.

Parameters
object | array$a_node
Returns
bool

Reimplemented in ilRepositoryExplorerGUI.

Definition at line 202 of file class.ilExplorerBaseGUI.php.

202 : bool
203 {
204 $childs = $this->getChildsOfNode($this->getNodeId($a_node));
205
206 foreach ($childs as $child) {
207 if ($this->isNodeVisible($child)) {
208 return true;
209 }
210 }
211 return false;
212 }

References getChildsOfNode(), getNodeId(), and isNodeVisible().

Referenced by listItemStart().

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

◆ openNode()

ilExplorerBaseGUI::openNode ( )

Open node.

Definition at line 451 of file class.ilExplorerBaseGUI.php.

451 : void
452 {
453 $id = $this->getNodeIdForDomNodeId($this->requested_node_id);
454 if (!in_array($id, $this->open_nodes)) {
455 $this->open_nodes[] = $id;
456 }
457 $this->store->set("on_" . $this->id, serialize($this->open_nodes));
458 exit;
459 }

References $id, exit, and getNodeIdForDomNodeId().

+ Here is the call graph for this function:

◆ renderChilds()

ilExplorerBaseGUI::renderChilds (   $a_node_id,
ilTemplate  $tpl 
)
final

Render childs.

Parameters
string$a_node_id

Definition at line 757 of file class.ilExplorerBaseGUI.php.

757 : void
758 {
759 $childs = $this->getChildsOfNode($a_node_id);
760 $childs = $this->sortChilds($childs, $a_node_id);
761
762 if (count($childs) > 0 || ($this->getSearchTerm() !== "" && $this->isNodeRequested($a_node_id))) {
763 // collect visible childs
764
765 $visible_childs = [];
766 $cnt_child = 0;
767
768 foreach ($childs as $child) {
769 $cnt_child++;
770 if ($this->getChildLimit() > 0 && $this->getChildLimit() < $cnt_child) {
771 continue;
772 }
773
774 if ($this->isNodeVisible($child)) {
775 $visible_childs[] = $child;
776 }
777 }
778
779 // search field, if too many childs
780 $any = false;
781 if (($this->getChildLimit() > 0 && $this->getChildLimit() < $cnt_child) || ($this->getSearchTerm() !== "" && $this->isNodeRequested($a_node_id))) {
782 $this->listStart($tpl);
783 $any = true;
784
785 $tpl->setCurrentBlock("list_search");
786 $tpl->setVariable("SEARCH_CONTAINER_ID", $a_node_id);
787 if ($this->isNodeRequested($a_node_id)) {
788 $tpl->setVariable("SEARCH_VAL", $this->getSearchTerm());
789 }
790 $tpl->parseCurrentBlock();
791 $tpl->touchBlock("tag");
792 }
793
794 // render visible childs
795 foreach ($visible_childs as $child) {
796 // check child limit
797 $cnt_child++;
798
799 if ($this->isNodeVisible($child)) {
800 if (!$any) {
801 $this->listStart($tpl);
802 $any = true;
803 }
804 $this->renderNode($child, $tpl);
805 }
806 }
807 if ($any) {
808 $this->listEnd($tpl);
809 }
810 }
811 }
isNodeRequested(string $a_node_id)
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)

References $tpl, getChildLimit(), getChildsOfNode(), getSearchTerm(), isNodeRequested(), isNodeVisible(), listEnd(), listStart(), ilTemplate\parseCurrentBlock(), renderNode(), ILIAS\UICore\GlobalTemplate\setCurrentBlock(), ILIAS\UICore\GlobalTemplate\setVariable(), sortChilds(), and ILIAS\UICore\GlobalTemplate\touchBlock().

Referenced by getNodeAsync(), and renderNode().

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

◆ renderNode()

ilExplorerBaseGUI::renderNode (   $a_node,
ilTemplate  $tpl 
)

Render node.

Parameters
object | array$a_node

Definition at line 678 of file class.ilExplorerBaseGUI.php.

678 : void
679 {
680 $skip = ($this->getSkipRootNode()
681 && $this->getNodeId($this->getRootNode()) == $this->getNodeId($a_node));
682 if (!$skip) {
683 $this->listItemStart($tpl, $a_node);
684
685 // select mode?
686 if ($this->select_postvar !== "" && $this->isNodeSelectable($a_node)) {
687 if ($this->select_multi) {
688 $tpl->setCurrentBlock("cb");
689 if (in_array($this->getNodeId($a_node), $this->selected_nodes)) {
690 $tpl->setVariable("CHECKED", 'checked="checked"');
691 }
692 $tpl->setVariable("CB_VAL", $this->getNodeId($a_node));
693 $tpl->setVariable("CB_NAME", $this->select_postvar . "[]");
694 } else {
695 $tpl->setCurrentBlock("rd");
696 if (in_array($this->getNodeId($a_node), $this->selected_nodes)) {
697 $tpl->setVariable("SELECTED", 'checked="checked"');
698 }
699 $tpl->setVariable("RD_VAL", $this->getNodeId($a_node));
700 $tpl->setVariable("RD_NAME", $this->select_postvar);
701 }
703 }
704
705
706 if ($this->isNodeHighlighted($a_node)) {
707 $tpl->touchBlock("hl");
708 }
709 $tpl->setCurrentBlock("content");
710 if ($this->getNodeIcon($a_node) !== "") {
711 $tpl->setVariable("ICON", ilUtil::img($this->getNodeIcon($a_node), $this->getNodeIconAlt($a_node)) . " ");
712 }
713 $tpl->setVariable("CONTENT", $this->getNodeContent($a_node));
714 if ($this->isNodeClickable($a_node)) {
715 $tpl->setVariable("HREF", $this->getNodeHref($a_node));
716 }
717 $target = $this->getNodeTarget($a_node);
718 if ($target !== "") {
719 $targetRelatedParams = array(
720 'target="' . $target . '"'
721 );
722
723 if ('_blank' === $target) {
724 $targetRelatedParams[] = 'rel="noopener"';
725 }
726
727 $tpl->setVariable('TARGET', implode(' ', $targetRelatedParams));
728 }
729 if (!$this->isNodeOnclickEnabled() || !$this->isNodeClickable($a_node)) {
730 $tpl->setVariable("ONCLICK", 'onclick="return false;"');
731 $tpl->setVariable("A_CLASS", 'class="disabled"');
732 } else {
733 $onclick = $this->getNodeOnClick($a_node);
734 if ($onclick !== "") {
735 $tpl->setVariable("ONCLICK", 'onclick="' . $onclick . '"');
736 }
737 }
739
740 $tpl->touchBlock("tag");
741 }
742
743 if (!$this->getAjax() || in_array($this->getNodeId($a_node), $this->open_nodes)
744 || in_array($this->getNodeId($a_node), $this->custom_open_nodes)) {
745 $this->renderChilds($this->getNodeId($a_node), $tpl);
746 }
747
748 if (!$skip) {
749 $this->listItemEnd($tpl);
750 }
751 }
getNodeIcon($a_node)
Get node icon path.
getNodeContent($a_node)
Get content of a node.
isNodeSelectable($a_node)
Is node selectable?
getNodeIconAlt($a_node)
Get node icon alt attribute.
getNodeOnClick($a_node)
Get node onclick attribute.
isNodeClickable($a_node)
Is node clickable?
getNodeTarget($a_node)
Get node target (frame) attribute.
listItemStart(ilTemplate $tpl, $a_node)
List item start.
getNodeHref($a_node)
Get href for node.
isNodeHighlighted($a_node)
Is node highlighted?
listItemEnd(ilTemplate $tpl)
static img(string $a_src, ?string $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.

References $tpl, getAjax(), getNodeContent(), getNodeHref(), getNodeIcon(), getNodeIconAlt(), getNodeId(), getNodeOnClick(), getNodeTarget(), getRootNode(), getSkipRootNode(), ilUtil\img(), isNodeClickable(), isNodeHighlighted(), isNodeOnclickEnabled(), isNodeSelectable(), listItemEnd(), listItemStart(), ILIAS\UICore\GlobalTemplate\parseCurrentBlock(), renderChilds(), ILIAS\UICore\GlobalTemplate\setCurrentBlock(), ILIAS\UICore\GlobalTemplate\setVariable(), and ILIAS\UICore\GlobalTemplate\touchBlock().

Referenced by getHTML(), getNodeAsync(), and renderChilds().

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

◆ setAjax()

◆ setChildLimit()

ilExplorerBaseGUI::setChildLimit ( int  $a_val)

Definition at line 98 of file class.ilExplorerBaseGUI.php.

98 : void
99 {
100 $this->child_limit = $a_val;
101 }

◆ setEnableDnd()

ilExplorerBaseGUI::setEnableDnd ( bool  $enable_dnd)

Definition at line 893 of file class.ilExplorerBaseGUI.php.

893 : void
894 {
895 $this->enable_dnd = $enable_dnd;
896 }

References $enable_dnd.

◆ setMainTemplate()

ilExplorerBaseGUI::setMainTemplate ( ?ilGlobalTemplateInterface  $a_main_tpl = null)

Definition at line 118 of file class.ilExplorerBaseGUI.php.

118 : void
119 {
120 $this->tpl = $a_main_tpl;
121 }

◆ setNodeOnclickEnabled()

ilExplorerBaseGUI::setNodeOnclickEnabled ( bool  $nodeOnclickEnabled)

Definition at line 882 of file class.ilExplorerBaseGUI.php.

882 : void
883 {
884 $this->nodeOnclickEnabled = $nodeOnclickEnabled;
885 }

References $nodeOnclickEnabled.

Referenced by ilLSTOCGUI\__construct().

+ Here is the caller graph for this function:

◆ setNodeOpen()

ilExplorerBaseGUI::setNodeOpen (   $a_id)

Set node to be opened (additional custom opened node, not standard expand behaviour)

Parameters
string$a_id

Definition at line 362 of file class.ilExplorerBaseGUI.php.

362 : void
363 {
364 if (!in_array($a_id, $this->custom_open_nodes)) {
365 $this->custom_open_nodes[] = $a_id;
366 }
367 }

Referenced by ilMediaPoolExplorerGUI\__construct(), and ilForumExplorerGUI\__construct().

+ Here is the caller graph for this function:

◆ setNodeSelected()

ilExplorerBaseGUI::setNodeSelected (   $a_id)

Set node to be opened (additional custom opened node, not standard expand behaviour)

Parameters
string$a_id

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

405 : void
406 {
407 if (!in_array($a_id, $this->selected_nodes)) {
408 $this->selected_nodes[] = $a_id;
409 }
410 }

Referenced by ilSkillSelectorGUI\setSkillSelected().

+ Here is the caller graph for this function:

◆ setOfflineMode()

ilExplorerBaseGUI::setOfflineMode ( bool  $a_val)

Definition at line 412 of file class.ilExplorerBaseGUI.php.

412 : void
413 {
414 $this->offline_mode = $a_val;
415 }

◆ setSearchTerm()

ilExplorerBaseGUI::setSearchTerm ( string  $a_val)

Definition at line 108 of file class.ilExplorerBaseGUI.php.

108 : void
109 {
110 $this->search_term = $a_val;
111 }

Referenced by getNodeAsync().

+ Here is the caller graph for this function:

◆ setSecondaryHighlightedNodes()

ilExplorerBaseGUI::setSecondaryHighlightedNodes ( array  $a_val)

Set secondary (background) highlighted nodes.

Definition at line 345 of file class.ilExplorerBaseGUI.php.

345 : void
346 {
347 $this->sec_highl_nodes = $a_val;
348 }

Referenced by ilLMTOCExplorerGUI\__construct().

+ Here is the caller graph for this function:

◆ setSelectMode()

ilExplorerBaseGUI::setSelectMode ( string  $a_postvar,
bool  $a_multi = false 
)

Set select mode (to deactivate, pass an empty string as postvar)

Parameters
string$a_postvarvariable used for post, a "[]" is added automatically
bool$a_multimulti select (checkboxes) or not (radio)

Definition at line 395 of file class.ilExplorerBaseGUI.php.

395 : void
396 {
397 $this->select_postvar = $a_postvar;
398 $this->select_multi = $a_multi;
399 }

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

+ Here is the caller graph for this function:

◆ setSkipRootNode()

◆ sortChilds()

ilExplorerBaseGUI::sortChilds ( array  $a_childs,
  $a_parent_node_id 
)

Sort childs.

Parameters
array$a_childsarray of child nodes
string$a_parent_node_idparent node
Returns
array array of childs nodes

Reimplemented in ilAdministrationExplorerGUI, ilRepositoryExplorerGUI, and ilRepositorySelectorExplorerGUI.

Definition at line 220 of file class.ilExplorerBaseGUI.php.

220 : array
221 {
222 return $a_childs;
223 }

Referenced by getHTML(), and renderChilds().

+ Here is the caller graph for this function:

Field Documentation

◆ $ajax

bool ilExplorerBaseGUI::$ajax = false
protected

Definition at line 40 of file class.ilExplorerBaseGUI.php.

Referenced by getAjax().

◆ $child_limit

int ilExplorerBaseGUI::$child_limit = 0
protected

Definition at line 56 of file class.ilExplorerBaseGUI.php.

Referenced by getChildLimit().

◆ $ctrl

◆ $custom_open_nodes

array ilExplorerBaseGUI::$custom_open_nodes = array()
protected

Definition at line 41 of file class.ilExplorerBaseGUI.php.

◆ $enable_dnd

bool ilExplorerBaseGUI::$enable_dnd = false
protected

Definition at line 46 of file class.ilExplorerBaseGUI.php.

Referenced by isEnableDnd(), and setEnableDnd().

◆ $id

string ilExplorerBaseGUI::$id
protected

◆ $js_expl_path

string ilExplorerBaseGUI::$js_expl_path = "assets/js/Explorer2.js"
staticprotected

Definition at line 38 of file class.ilExplorerBaseGUI.php.

Referenced by getLocalExplorerJsPath().

◆ $js_tree_path

string ilExplorerBaseGUI::$js_tree_path = "./node_modules/jstree/dist/jstree.js"
staticprotected

Definition at line 35 of file class.ilExplorerBaseGUI.php.

Referenced by getLocalJsTreeJsPath().

◆ $js_tree_path_css

string ilExplorerBaseGUI::$js_tree_path_css = "./node_modules/jstree/dist/themes/default/style.min.css"
staticprotected

Definition at line 36 of file class.ilExplorerBaseGUI.php.

Referenced by getLocalJsTreeCssPath().

◆ $log

ilLogger ilExplorerBaseGUI::$log
protected

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

◆ $node_parameter_name

string ilExplorerBaseGUI::$node_parameter_name
protected

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

◆ $nodeOnclickEnabled

bool ilExplorerBaseGUI::$nodeOnclickEnabled
private

Definition at line 57 of file class.ilExplorerBaseGUI.php.

Referenced by isNodeOnclickEnabled(), and setNodeOnclickEnabled().

◆ $offline_mode

bool ilExplorerBaseGUI::$offline_mode = false
protected

Definition at line 44 of file class.ilExplorerBaseGUI.php.

Referenced by getOfflineMode().

◆ $open_nodes

array ilExplorerBaseGUI::$open_nodes = []
protected

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

Referenced by getOnLoadCode().

◆ $parent_cmd

string ilExplorerBaseGUI::$parent_cmd = ''
protected

◆ $parent_obj

◆ $requested_exp_cmd

string ilExplorerBaseGUI::$requested_exp_cmd = ""
protected

Definition at line 60 of file class.ilExplorerBaseGUI.php.

Referenced by handleCommand().

◆ $requested_exp_cont

string ilExplorerBaseGUI::$requested_exp_cont = ""
protected

Definition at line 61 of file class.ilExplorerBaseGUI.php.

◆ $requested_node_id

string ilExplorerBaseGUI::$requested_node_id = ""
protected

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

◆ $requested_searchterm

string ilExplorerBaseGUI::$requested_searchterm = ""
protected

Definition at line 62 of file class.ilExplorerBaseGUI.php.

◆ $search_term

string ilExplorerBaseGUI::$search_term = ""
protected

Definition at line 47 of file class.ilExplorerBaseGUI.php.

Referenced by getSearchTerm().

◆ $sec_highl_nodes

array ilExplorerBaseGUI::$sec_highl_nodes = array()
protected

Definition at line 45 of file class.ilExplorerBaseGUI.php.

Referenced by getSecondaryHighlightedNodes().

◆ $select_multi

bool ilExplorerBaseGUI::$select_multi = false
protected

Definition at line 50 of file class.ilExplorerBaseGUI.php.

◆ $select_postvar

string ilExplorerBaseGUI::$select_postvar = ""
protected

Definition at line 43 of file class.ilExplorerBaseGUI.php.

◆ $selected_nodes

array ilExplorerBaseGUI::$selected_nodes = array()
protected

Definition at line 42 of file class.ilExplorerBaseGUI.php.

Referenced by ilOrgUnitExplorerGUI\isNodeSelectable().

◆ $skip_root_node

bool ilExplorerBaseGUI::$skip_root_node = false
protected

Definition at line 39 of file class.ilExplorerBaseGUI.php.

Referenced by getSkipRootNode().

◆ $store

ilSessionIStorage ilExplorerBaseGUI::$store
protected

Definition at line 49 of file class.ilExplorerBaseGUI.php.

◆ $tpl

ilGlobalTemplateInterface ilExplorerBaseGUI::$tpl
protected

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