ILIAS  release_7 Revision v7.30-3-g800a261c036
ilExplorerBaseGUI Class Reference

Explorer base GUI class. More...

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

Public Member Functions

 __construct ($a_expl_id, $a_parent_obj, $a_parent_cmd)
 Constructor. More...
 
 setChildLimit ($a_val)
 Set child limit. More...
 
 getChildLimit ()
 Get child limit. More...
 
 setSearchTerm ($a_val)
 Set search term. More...
 
 getSearchTerm ()
 Get search term. More...
 
 setMainTemplate ($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...
 

Static Public Member Functions

static getLocalExplorerJsPath ()
 Get local path of explorer js. More...
 
static getLocalJsTreeJsPath ()
 Get local path of jsTree js. More...
 
static getLocalJsTreeCssPath ()
 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...
 

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 ()
 

Protected Attributes

 $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
 
 $search_term = ""
 
 $open_nodes = []
 
 $store
 
 $parent_obj
 
 $child_limit = 0
 
 $parent_cmd = ''
 

Static Protected Attributes

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

Private Attributes

 $nodeOnclickEnabled
 

Detailed Description

Explorer base GUI class.

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
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

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

Constructor & Destructor Documentation

◆ __construct()

ilExplorerBaseGUI::__construct (   $a_expl_id,
  $a_parent_obj,
  $a_parent_cmd 
)

Constructor.

Reimplemented in ilVirtualSkillTreeExplorerGUI, ilLinkTargetObjectExplorerGUI, ilPublicSectionExplorerGUI, ilMediaPoolExplorerGUI, ilGroupActionTargetExplorerGUI, ilMaterialExplorer, ilSCORM2004EditorExplorerGUI, and ilTestQuestionPoolSelectorExplorer.

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

72 {
73 global $DIC;
74
75 $this->log = $DIC["ilLog"];
76 $this->ctrl = $DIC->ctrl();
77 $this->tpl = $DIC["tpl"];
78 $this->id = $a_expl_id;
79 $this->parent_obj = $a_parent_obj;
80 $this->parent_cmd = $a_parent_cmd;
81 // get open nodes
82 include_once("./Services/Authentication/classes/class.ilSessionIStorage.php");
83 $this->store = new ilSessionIStorage("expl2");
84 $open_nodes = $this->store->get("on_" . $this->id);
85 $this->open_nodes = unserialize($open_nodes);
86 if (!is_array($this->open_nodes)) {
87 $this->open_nodes = array();
88 }
89
90 $this->requested_node_id = $_GET["node_id"];
91
92 $this->nodeOnclickEnabled = true;
94 }
$_GET["client_id"]
Session based immediate storage.
static initConnection(ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Connection module.
global $DIC
Definition: goto.php:24

References $_GET, $DIC, $open_nodes, and ilYuiUtil\initConnection().

+ Here is the call graph for this function:

Member Function Documentation

◆ beforeRendering()

ilExplorerBaseGUI::beforeRendering ( )

Before rendering.

Reimplemented in ilLMExplorerGUI, and ilPublicSectionExplorerGUI.

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

620 {
621 }

Referenced by getHTML(), and getNodeAsync().

+ Here is the caller graph for this function:

◆ closeNode()

ilExplorerBaseGUI::closeNode ( )

Close node.

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

578 {
579 $ilLog = $this->log;
580
581 $id = $this->getNodeIdForDomNodeId($_GET["node_id"]);
582 if (in_array($id, $this->open_nodes)) {
583 $k = array_search($id, $this->open_nodes);
584 unset($this->open_nodes[$k]);
585 }
586 $this->store->set("on_" . $this->id, serialize($this->open_nodes));
587 exit;
588 }
getNodeIdForDomNodeId($a_dom_node_id)
Get node id for dom node id.
exit
Definition: login.php:29

References $_GET, $log, exit, and getNodeIdForDomNodeId().

+ Here is the call graph for this function:

◆ createHTMLExportDirs()

static ilExplorerBaseGUI::createHTMLExportDirs (   $a_target_dir)
static

Create html export directories.

Parameters
string$a_target_dirtarget directory

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

178 {
179 ilUtil::makeDirParents($a_target_dir . "/Services/UIComponent/Explorer2/lib/jstree-v.pre1.0");
180 ilUtil::makeDirParents($a_target_dir . "/Services/UIComponent/Explorer2/js");
181 }
static makeDirParents($a_dir)
Create a new directory and all parent directories.

References ilUtil\makeDirParents().

+ Here is the call graph for this function:

◆ getAjax()

ilExplorerBaseGUI::getAjax ( )

Get ajax.

Returns
boolean ajax

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

417 {
418 return $this->ajax;
419 }

References $ajax.

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

+ Here is the caller graph for this function:

◆ getChildLimit()

ilExplorerBaseGUI::getChildLimit ( )

Get child limit.

Returns
int child limit

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

References $child_limit.

Referenced by renderChilds().

+ Here is the caller graph for this function:

◆ getChildsOfNode()

ilExplorerBaseGUI::getChildsOfNode (   $a_parent_node_id)
abstract

Get childs of node.

Parameters
string$a_parent_idparent node id
Returns
array childs

Reimplemented in ilPersonalSkillExplorerGUI, ilSkillTemplateTreeExplorerGUI, ilVirtualSkillTreeExplorerGUI, ilLSTOCGUI, ilObjStudyProgrammeTreeExplorerGUI, ilAdministrationExplorerGUI, ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilTreeExplorerGUI, and ilForumExplorerGUI.

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

+ Here is the caller graph for this function:

◆ getContainerId()

ilExplorerBaseGUI::getContainerId ( )

Get container id.

Parameters

return

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

555 {
556 return "il_expl2_jstree_cont_" . $this->getId();
557 }
getId()
Get id of explorer element.

References getId().

Referenced by ilObjStudyProgrammeTreeExplorerGUI\getHTML(), 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

return

Reimplemented in ilVirtualSkillTreeExplorerGUI.

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

953 {
954 return "exp_node_" . $this->getId() . "_" . $a_node_id;
955 }

References getId().

Referenced by ilTreeExplorerGUI\getChildsOfNode(), getNodeToggleOnClick(), getOnLoadCode(), getSelectOnClick(), ilObjStudyProgrammeTreeExplorerGUI\listItemStart(), listItemStart(), and renderChilds().

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

◆ getHTML()

ilExplorerBaseGUI::getHTML ( )

Get HTML.

Reimplemented in ilObjStudyProgrammeTreeExplorerGUI.

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

738 {
740 $ilCtrl = $this->ctrl;
741
742 $root = $this->getNodeId($this->getRootNode());
743 if (!in_array($root, $this->open_nodes)) {
744 $this->open_nodes[] = $root;
745 }
746
747 $this->beforeRendering();
748
750 $container_id = $this->getContainerId();
751 $container_outer_id = "il_expl2_jstree_cont_out_" . $this->getId();
752
753 if (!$ilCtrl->isAsynch()) {
754 $tpl->addOnLoadCode($this->getOnLoadCode());
755 }
756
757 $etpl = new ilTemplate("tpl.explorer2.html", true, true, "Services/UIComponent/Explorer2");
758
759 if (!$this->ajax) {
760 // render childs
761 $root_node = $this->getRootNode();
762
763 if (!$this->getSkipRootNode() &&
764 $this->isNodeVisible($this->getRootNode())) {
765 $this->listStart($etpl);
766 $this->renderNode($this->getRootNode(), $etpl);
767 $this->listEnd($etpl);
768 } else {
769 $childs = $this->getChildsOfNode($this->getNodeId($root_node));
770 $childs = $this->sortChilds($childs, $this->getNodeId($root_node));
771 $any = false;
772 foreach ($childs as $child_node) {
773 if ($this->isNodeVisible($child_node)) {
774 if (!$any) {
775 $this->listStart($etpl);
776 $any = true;
777 }
778 $this->renderNode($child_node, $etpl);
779 }
780 }
781 if ($any) {
782 $this->listEnd($etpl);
783 }
784 }
785 }
786
787 $etpl->setVariable("CONTAINER_ID", $container_id);
788 $etpl->setVariable("CONTAINER_OUTER_ID", $container_outer_id);
789
790 $add = "";
791 if ($ilCtrl->isAsynch()) {
792 $add = "<script>" . $this->getOnLoadCode() . "</script>";
793 }
794
795 $content = $etpl->get();
796 //echo $content.$add; exit;
797 return $content . $add;
798 }
getContainerId()
Get container id.
static init($a_main_tpl=null)
Init JS.
beforeRendering()
Before rendering.
getOnLoadCode()
Get on load code.
renderNode($a_node, $tpl)
Render node.
getChildsOfNode($a_parent_node_id)
Get childs of node.
sortChilds($a_childs, $a_parent_node_id)
Sort childs.
getNodeId($a_node)
Get id of a node.
getSkipRootNode()
Get skip root node.
getRootNode()
Get root node.
isNodeVisible($a_node)
Is node visible?
special template class to simplify handling of ITX/PEAR

References $ctrl, $tpl, 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
integer id

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

375 {
376 return $this->id;
377 }

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

+ Here is the caller graph for this function:

◆ getJSTreePlugins()

ilExplorerBaseGUI::getJSTreePlugins ( )
protected

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

703 {
704 $plugins = array("html_data", "themes", "json_data");
705 if ($this->isEnableDnd()) {
706 $plugins[] = "dnd";
707 }
708 return $plugins;
709 }

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

Get local path of explorer js.

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

152 {
153 return self::$js_expl_path;
154 }

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

Get local path of jsTree js.

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

168 {
170 }

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

Get local path of jsTree js.

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

160 {
161 return self::$js_tree_path;
162 }

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 593 of file class.ilExplorerBaseGUI.php.

594 {
595 $this->beforeRendering();
596
597 $etpl = new ilTemplate("tpl.explorer2.html", true, true, "Services/UIComponent/Explorer2");
598
599 $root = $this->getNodeId($this->getRootNode());
600 if (!in_array($root, $this->open_nodes)) {
601 $this->open_nodes[] = $root;
602 }
603
604 if ($_GET["node_id"] != "") {
605 $id = $this->getNodeIdForDomNodeId($_GET["node_id"]);
606 $this->setSearchTerm(ilUtil::stripSlashes($_GET["searchterm"]));
607 $this->renderChilds($id, $etpl);
608 } else {
609 $id = $this->getNodeId($this->getRootNode());
610 $this->renderNode($this->getRootNode(), $etpl);
611 }
612 echo $etpl->get("tag");
613 exit;
614 }
renderChilds($a_node_id, $tpl)
Render childs.
setSearchTerm($a_val)
Set search term.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled

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

+ Here is the call graph for this function:

◆ getNodeContent()

◆ getNodeHref()

◆ getNodeIcon()

◆ getNodeIconAlt()

ilExplorerBaseGUI::getNodeIconAlt (   $a_node)

Get node icon alt attribute.

Parameters
mixed$a_nodenode object/array
Returns
string image alt attribute

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

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

291 {
292 return "";
293 }

Referenced by renderNode().

+ Here is the caller graph for this function:

◆ getNodeId()

ilExplorerBaseGUI::getNodeId (   $a_node)
abstract

Get id of a node.

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

Reimplemented in ilForumExplorerGUI, ilLSTOCGUI, ilObjStudyProgrammeTreeExplorerGUI, ilVirtualSkillTreeExplorerGUI, ilTreeExplorerGUI, and ilKSDocumentationExplorerGUI.

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

+ Here is the caller graph for this function:

◆ getNodeIdForDomNodeId()

ilExplorerBaseGUI::getNodeIdForDomNodeId (   $a_dom_node_id)

Get node id for dom node id.

Parameters

return

Reimplemented in ilVirtualSkillTreeExplorerGUI.

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

964 {
965 $i = strlen("exp_node_" . $this->getId() . "_");
966 return substr($a_dom_node_id, $i);
967 }
$i
Definition: metadata.php:24

References $i, and getId().

Referenced by closeNode(), getNodeAsync(), ilObjStudyProgrammeTreeExplorerGUI\openCertainNode(), 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
mixed$a_nodenode object/array
Returns
string onclick value

Reimplemented in ilGroupActionTargetExplorerGUI, ilIntLinkRepItemExplorerGUI, ilLinkTargetObjectExplorerGUI, and ilTaxonomyExplorerGUI.

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

313 {
314 if ($this->select_postvar != "") {
315 return $this->getSelectOnClick($a_node);
316 }
317 return "";
318 }
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
mixed$a_nodenode object/array
Returns
string target

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

302 {
303 return "";
304 }

Referenced by renderNode().

+ Here is the caller graph for this function:

◆ getNodeToggleOnClick()

ilExplorerBaseGUI::getNodeToggleOnClick (   $a_node)
finalprotected

Get onclick attribute for node toggling.

Parameters

return

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

461 {
462 return "$('#" . $this->getContainerId() . "').jstree('toggle_node' , '#" .
463 $this->getDomNodeIdForNodeId($this->getNodeId($a_node)) . "'); return false;";
464 }
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 ( )

◆ getOnLoadCode()

ilExplorerBaseGUI::getOnLoadCode ( )

Get on load code.

Parameters

return

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

644 {
645 $ilCtrl = $this->ctrl;
646
647 $container_id = $this->getContainerId();
648 $container_outer_id = "il_expl2_jstree_cont_out_" . $this->getId();
649
650 // collect open nodes
651 $open_nodes = array($this->getDomNodeIdForNodeId($this->getNodeId($this->getRootNode())));
652 foreach ($this->open_nodes as $nid) {
653 $open_nodes[] = $this->getDomNodeIdForNodeId($nid);
654 }
655 foreach ($this->custom_open_nodes as $nid) {
656 $dnode = $this->getDomNodeIdForNodeId($nid);
657 if (!in_array($dnode, $open_nodes)) {
658 $open_nodes[] = $dnode;
659 }
660 }
661
662 // ilias config options
663 $url = "";
664 if (!$this->getOfflineMode()) {
665 if (is_object($this->parent_obj)) {
666 $url = $ilCtrl->getLinkTarget($this->parent_obj, $this->parent_cmd, "", true);
667 } else {
668 $url = $ilCtrl->getLinkTargetByClass($this->parent_obj, $this->parent_cmd, "", true);
669 }
670 }
671
672 // secondary highlighted nodes
673 $shn = array();
674 foreach ($this->sec_highl_nodes as $sh) {
675 $shn[] = $this->getDomNodeIdForNodeId($sh);
676 }
677 $config = array(
678 "container_id" => $container_id,
679 "container_outer_id" => $container_outer_id,
680 "url" => $url,
681 "second_hnodes" => $shn,
682 "ajax" => $this->getAjax(),
683 );
684
685
686 // jstree config options
687 $js_tree_config = array(
688 "core" => array(
689 "animation" => 0,
690 "initially_open" => $open_nodes,
691 "open_parents" => false,
692 "strings" => array("loading" => "Loading ...", "new_node" => "New node"),
693 "themes" => array("dots" => false, "icons" => false, "theme" => "")
694 ),
695 "plugins" => $this->getJSTreePlugins(),
696 "html_data" => array()
697 );
698
699 return 'il.Explorer2.init(' . json_encode($config) . ', ' . json_encode($js_tree_config) . ');';
700 }
getOfflineMode()
Get offline mode.
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68
$url

References $config, $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
mixed root node object/array

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

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

+ Here is the caller graph for this function:

◆ getSearchTerm()

ilExplorerBaseGUI::getSearchTerm ( )

Get search term.

Returns
string search term

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

References $search_term.

Referenced by ilTreeExplorerGUI\getChildsOfNode(), ilTreeExplorerGUI\matches(), and renderChilds().

+ Here is the caller graph for this function:

◆ getSecondaryHighlightedNodes()

ilExplorerBaseGUI::getSecondaryHighlightedNodes ( )

Get secondary (background) highlighted nodes.

Returns
array array of node ids

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

References $sec_highl_nodes.

◆ getSelectOnClick()

ilExplorerBaseGUI::getSelectOnClick (   $a_node)
finalprotected

Get onclick attribute for selecting radio/checkbox.

Parameters

return

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

473 {
474 $dn_id = $this->getDomNodeIdForNodeId($this->getNodeId($a_node));
475 $oc = "il.Explorer2.selectOnClick(event, '" . $dn_id . "'); return false;";
476 return $oc;
477 }

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 ( )

Get skip root node.

Returns
boolean skip root node

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

References $skip_root_node.

Referenced by getHTML(), and renderNode().

+ Here is the caller graph for this function:

◆ handleCommand()

ilExplorerBaseGUI::handleCommand ( )

Handle explorer internal command.

Returns
boolean true, if an internal command has been performed.

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

535 {
536 if ($_GET["exp_cmd"] != "" &&
537 $_GET["exp_cont"] == $this->getContainerId()) {
538 $cmd = $_GET["exp_cmd"];
539 if (in_array($cmd, array("openNode", "closeNode", "getNodeAsync"))) {
540 $this->$cmd();
541 }
542
543 return true;
544 }
545 return false;
546 }

References $_GET, and getContainerId().

+ Here is the call graph for this function:

◆ init()

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

Init JS.

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

716 {
717 global $DIC;
718
719 if ($a_main_tpl == null) {
720 $tpl = $DIC["tpl"];
721 } else {
722 $tpl = $a_main_tpl;
723 }
724
725 include_once("./Services/jQuery/classes/class.iljQueryUtil.php");
727
728 $tpl->addJavascript(self::getLocalExplorerJsPath());
729 $tpl->addJavascript(self::getLocalJsTreeJsPath());
730 $tpl->addCss(self::getLocalJsTreeCssPath());
731 }
static initjQuery(ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template

References $DIC, $tpl, 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 1045 of file class.ilExplorerBaseGUI.php.

1046 {
1047 return $this->enable_dnd;
1048 }

References $enable_dnd.

Referenced by getJSTreePlugins().

+ Here is the caller graph for this function:

◆ isNodeClickable()

◆ isNodeHighlighted()

ilExplorerBaseGUI::isNodeHighlighted (   $a_node)

Is node highlighted?

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

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

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

338 {
339 return false;
340 }

Referenced by renderNode().

+ Here is the caller graph for this function:

◆ isNodeOnclickEnabled()

ilExplorerBaseGUI::isNodeOnclickEnabled ( )
Returns
boolean

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

References $nodeOnclickEnabled.

Referenced by renderNode().

+ Here is the caller graph for this function:

◆ isNodeOpen()

ilExplorerBaseGUI::isNodeOpen (   $node_id)
protected

Get all open nodes.

Parameters

return

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

630 {
631 return ($this->getNodeId($this->getRootNode()) == $node_id
632 || in_array($node_id, $this->open_nodes)
633 || in_array($node_id, $this->custom_open_nodes));
634 }

References getNodeId(), and getRootNode().

Referenced by listItemStart().

+ 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
mixed$a_nodenode object/array
Returns
boolean node selectable true/false

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

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

360 {
361 return true;
362 }

Referenced by renderNode().

+ Here is the caller graph for this function:

◆ isNodeVisible()

ilExplorerBaseGUI::isNodeVisible (   $a_node)

Is node visible?

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

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

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

327 {
328 return true;
329 }

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

+ Here is the caller graph for this function:

◆ listEnd()

ilExplorerBaseGUI::listEnd (   $tpl)

List end.

Parameters

return

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

1024 {
1025 $tpl->touchBlock("list_end");
1026 $tpl->touchBlock("tag");
1027 }

References $tpl.

Referenced by getHTML(), and renderChilds().

+ Here is the caller graph for this function:

◆ listItemEnd()

ilExplorerBaseGUI::listItemEnd (   $tpl)

List item end.

Parameters

return

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

1000 {
1001 $tpl->touchBlock("list_item_end");
1002 $tpl->touchBlock("tag");
1003 }

References $tpl.

Referenced by renderNode().

+ Here is the caller graph for this function:

◆ listItemStart()

ilExplorerBaseGUI::listItemStart (   $tpl,
  $a_node 
)

List item start.

Parameters

return

Reimplemented in ilObjStudyProgrammeTreeExplorerGUI.

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

976 {
977 $tpl->setCurrentBlock("list_item_start");
978 if ($this->getAjax() && $this->nodeHasVisibleChilds($a_node) && !$this->isNodeOpen($this->getNodeId($a_node))) {
979 $tpl->touchBlock("li_closed");
980 }
981 if ($this->isNodeOpen($this->getNodeId($a_node))) {
982 $tpl->touchBlock("li_opened");
983 }
984
985 $tpl->setVariable(
986 "DOM_NODE_ID",
987 $this->getDomNodeIdForNodeId($this->getNodeId($a_node))
988 );
989 $tpl->parseCurrentBlock();
990 $tpl->touchBlock("tag");
991 }
nodeHasVisibleChilds($a_node)
Node has childs?
isNodeOpen($node_id)
Get all open nodes.

References $tpl, getAjax(), getDomNodeIdForNodeId(), getNodeId(), isNodeOpen(), and nodeHasVisibleChilds().

Referenced by renderNode().

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

◆ listStart()

ilExplorerBaseGUI::listStart (   $tpl)

List start.

Parameters

return

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

1012 {
1013 $tpl->touchBlock("list_start");
1014 $tpl->touchBlock("tag");
1015 }

References $tpl.

Referenced by getHTML(), and renderChilds().

+ Here is the caller graph for this function:

◆ nodeHasVisibleChilds()

ilExplorerBaseGUI::nodeHasVisibleChilds (   $a_node)

Node has childs?

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

Parameters

return

Reimplemented in ilRepositoryExplorerGUI.

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

249 {
250 $childs = $this->getChildsOfNode($this->getNodeId($a_node));
251
252 foreach ($childs as $child) {
253 if ($this->isNodeVisible($child)) {
254 return true;
255 }
256 }
257 return false;
258 }

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

Referenced by ilObjStudyProgrammeTreeExplorerGUI\listItemStart(), and 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 562 of file class.ilExplorerBaseGUI.php.

563 {
564 $ilLog = $this->log;
565
566 $id = $this->getNodeIdForDomNodeId($_GET["node_id"]);
567 if (!in_array($id, $this->open_nodes)) {
568 $this->open_nodes[] = $id;
569 }
570 $this->store->set("on_" . $this->id, serialize($this->open_nodes));
571 exit;
572 }

References $_GET, $log, exit, and getNodeIdForDomNodeId().

+ Here is the call graph for this function:

◆ renderChilds()

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

Render childs.

Parameters

return

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

889 {
890 $childs = $this->getChildsOfNode($a_node_id);
891 $childs = $this->sortChilds($childs, $a_node_id);
892
893 if (count($childs) > 0 || ($this->getSearchTerm() != "" && $this->requested_node_id == $this->getDomNodeIdForNodeId($a_node_id))) {
894 // collect visible childs
895
896 $visible_childs = [];
897 $cnt_child = 0;
898
899 foreach ($childs as $child) {
900 $cnt_child++;
901 if ($this->getChildLimit() > 0 && $this->getChildLimit() < $cnt_child) {
902 continue;
903 }
904
905 if ($this->isNodeVisible($child)) {
906 $visible_childs[] = $child;
907 }
908 }
909
910 // search field, if too many childs
911 $any = false;
912 if ($this->getChildLimit() > 0 && $this->getChildLimit() < $cnt_child
913 || ($this->getSearchTerm() != "")) {
914 if (!$any) {
915 $this->listStart($tpl);
916 $any = true;
917 }
918 $tpl->setCurrentBlock("list_search");
919 $tpl->setVariable("SEARCH_CONTAINER_ID", $a_node_id);
920 if ($this->requested_node_id == $this->getDomNodeIdForNodeId($a_node_id)) {
921 $tpl->setVariable("SEARCH_VAL", $this->getSearchTerm());
922 }
923 $tpl->parseCurrentBlock();
924 $tpl->touchBlock("tag");
925 }
926
927 // render visible childs
928 foreach ($visible_childs as $child) {
929 // check child limit
930 $cnt_child++;
931
932 if ($this->isNodeVisible($child)) {
933 if (!$any) {
934 $this->listStart($tpl);
935 $any = true;
936 }
937 $this->renderNode($child, $tpl);
938 }
939 }
940 if ($any) {
941 $this->listEnd($tpl);
942 }
943 }
944 }
getChildLimit()
Get child limit.
getSearchTerm()
Get search term.

References $tpl, getChildLimit(), getChildsOfNode(), getDomNodeIdForNodeId(), getSearchTerm(), isNodeVisible(), listEnd(), listStart(), renderNode(), and sortChilds().

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,
  $tpl 
)

Render node.

Parameters

return

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

807 {
808 $skip = ($this->getSkipRootNode()
809 && $this->getNodeId($this->getRootNode()) == $this->getNodeId($a_node));
810 if (!$skip) {
811 $this->listItemStart($tpl, $a_node);
812
813 // select mode?
814 if ($this->select_postvar != "" && $this->isNodeSelectable($a_node)) {
815 if ($this->select_multi) {
816 $tpl->setCurrentBlock("cb");
817 if (in_array($this->getNodeId($a_node), $this->selected_nodes)) {
818 $tpl->setVariable("CHECKED", 'checked="checked"');
819 }
820 $tpl->setVariable("CB_VAL", $this->getNodeId($a_node));
821 $tpl->setVariable("CB_NAME", $this->select_postvar . "[]");
822 $tpl->parseCurrentBlock();
823 } else {
824 $tpl->setCurrentBlock("rd");
825 if (in_array($this->getNodeId($a_node), $this->selected_nodes)) {
826 $tpl->setVariable("SELECTED", 'checked="checked"');
827 }
828 $tpl->setVariable("RD_VAL", $this->getNodeId($a_node));
829 $tpl->setVariable("RD_NAME", $this->select_postvar);
830 $tpl->parseCurrentBlock();
831 }
832 }
833
834
835 if ($this->isNodeHighlighted($a_node)) {
836 $tpl->touchBlock("hl");
837 }
838 $tpl->setCurrentBlock("content");
839 if ($this->getNodeIcon($a_node) != "") {
840 $tpl->setVariable("ICON", ilUtil::img($this->getNodeIcon($a_node), $this->getNodeIconAlt($a_node)) . " ");
841 }
842 $tpl->setVariable("CONTENT", $this->getNodeContent($a_node));
843 if ($this->isNodeClickable($a_node)) {
844 $tpl->setVariable("HREF", $this->getNodeHref($a_node));
845 }
846 $target = $this->getNodeTarget($a_node);
847 if ($target != "") {
848 $targetRelatedParams = array(
849 'target="' . $target . '"'
850 );
851
852 if ('_blank' === $target) {
853 $targetRelatedParams[] = 'rel="noopener"';
854 }
855
856 $tpl->setVariable('TARGET', implode(' ', $targetRelatedParams));
857 }
858 if (!$this->isNodeOnclickEnabled() || !$this->isNodeClickable($a_node)) {
859 $tpl->setVariable("ONCLICK", 'onclick="return false;"');
860 $tpl->setVariable("A_CLASS", 'class="disabled"');
861 } else {
862 $onclick = $this->getNodeOnClick($a_node);
863 if ($onclick != "") {
864 $tpl->setVariable("ONCLICK", 'onclick="' . $onclick . '"');
865 }
866 }
867 $tpl->parseCurrentBlock();
868
869 $tpl->touchBlock("tag");
870 }
871
872 if (!$this->getAjax() || in_array($this->getNodeId($a_node), $this->open_nodes)
873 || in_array($this->getNodeId($a_node), $this->custom_open_nodes)) {
874 $this->renderChilds($this->getNodeId($a_node), $tpl);
875 }
876
877 if (!$skip) {
878 $this->listItemEnd($tpl);
879 }
880 }
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.
getNodeHref($a_node)
Get href for node.
isNodeHighlighted($a_node)
Is node highlighted?
listItemEnd($tpl)
List item end.
listItemStart($tpl, $a_node)
List item start.
static img($a_src, $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(), and renderChilds().

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 (   $a_val)

Set child limit.

Parameters
int$a_valchild limit

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

102 {
103 $this->child_limit = $a_val;
104 }

Referenced by ilRepositorySelectorExplorerGUI\__construct(), and ilRepositoryExplorerGUI\__construct().

+ Here is the caller graph for this function:

◆ setEnableDnd()

ilExplorerBaseGUI::setEnableDnd (   $enable_dnd)

Enable Drag & Drop functionality.

Parameters
boolean$enable_dnd

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

1055 {
1056 $this->enable_dnd = $enable_dnd;
1057 }

References $enable_dnd.

Referenced by ilObjStudyProgrammeTreeExplorerGUI\__construct().

+ Here is the caller graph for this function:

◆ setMainTemplate()

ilExplorerBaseGUI::setMainTemplate (   $a_main_tpl = null)

Set main template (that is responsible for adding js/css)

Parameters
ilTemplate | null$a_main_tpl

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

143 {
144 $this->tpl = $a_main_tpl;
145 }

◆ setNodeOnclickEnabled()

ilExplorerBaseGUI::setNodeOnclickEnabled (   $nodeOnclickEnabled)
Parameters
boolean$nodeOnclickEnabled

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

1041 {
1042 $this->nodeOnclickEnabled = $nodeOnclickEnabled;
1043 }

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

return

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

448 {
449 if (!in_array($a_id, $this->custom_open_nodes)) {
450 $this->custom_open_nodes[] = $a_id;
451 }
452 }

Referenced by ilRepositoryExplorerGUI\__construct(), ilMediaPoolExplorerGUI\__construct(), ilLMTableOfContentsExplorerGUI\__construct(), ilForumExplorerGUI\__construct(), ilPublicSectionExplorerGUI\beforeRendering(), ilKSDocumentationExplorerGUI\openNodesRecursively(), and ilTreeExplorerGUI\setPathOpen().

+ 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

return

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

499 {
500 if (!in_array($a_id, $this->selected_nodes)) {
501 $this->selected_nodes[] = $a_id;
502 }
503 }

Referenced by ilPublicSectionExplorerGUI\beforeRendering(), and ilSkillSelectorGUI\setSkillSelected().

+ Here is the caller graph for this function:

◆ setOfflineMode()

ilExplorerBaseGUI::setOfflineMode (   $a_val)

Set offline mode.

Parameters
bool$a_valoffline mode

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

511 {
512 $this->offline_mode = $a_val;
513 }

Referenced by ilKSDocumentationExplorerGUI\__construct().

+ Here is the caller graph for this function:

◆ setSearchTerm()

ilExplorerBaseGUI::setSearchTerm (   $a_val)

Set search term.

Parameters
string$a_valsearch term

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

122 {
123 $this->search_term = $a_val;
124 }

Referenced by getNodeAsync().

+ Here is the caller graph for this function:

◆ setSecondaryHighlightedNodes()

ilExplorerBaseGUI::setSecondaryHighlightedNodes (   $a_val)

Set secondary (background) highlighted nodes.

Parameters
array$a_valarray of node ids

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

427 {
428 $this->sec_highl_nodes = $a_val;
429 }

Referenced by ilLMTOCExplorerGUI\__construct().

+ Here is the caller graph for this function:

◆ setSelectMode()

ilExplorerBaseGUI::setSelectMode (   $a_postvar,
  $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
boolean$a_multimulti select (checkboxes) or not (radio)
Returns

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

487 {
488 $this->select_postvar = $a_postvar;
489 $this->select_multi = $a_multi;
490 }

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

+ Here is the caller graph for this function:

◆ setSkipRootNode()

◆ sortChilds()

ilExplorerBaseGUI::sortChilds (   $a_childs,
  $a_parent_node_id 
)

Sort childs.

Parameters
array$a_childsarray of child nodes
mixed$a_parent_nodeparent node
Returns
array array of childs nodes

Reimplemented in ilAdministrationExplorerGUI, ilRepositoryExplorerGUI, and ilRepositorySelectorExplorerGUI.

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

269 {
270 return $a_childs;
271 }

Referenced by getHTML(), and renderChilds().

+ Here is the caller graph for this function:

Field Documentation

◆ $ajax

ilExplorerBaseGUI::$ajax = false
protected

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

Referenced by getAjax().

◆ $child_limit

ilExplorerBaseGUI::$child_limit = 0
protected

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

Referenced by getChildLimit().

◆ $ctrl

◆ $custom_open_nodes

ilExplorerBaseGUI::$custom_open_nodes = array()
protected

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

◆ $enable_dnd

ilExplorerBaseGUI::$enable_dnd = false
protected

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

Referenced by isEnableDnd(), and setEnableDnd().

◆ $js_expl_path

ilExplorerBaseGUI::$js_expl_path = "./Services/UIComponent/Explorer2/js/Explorer2.js"
staticprotected

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

Referenced by getLocalExplorerJsPath().

◆ $js_tree_path

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

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

Referenced by getLocalJsTreeJsPath().

◆ $js_tree_path_css

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

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

Referenced by getLocalJsTreeCssPath().

◆ $log

ilExplorerBaseGUI::$log
protected

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

Referenced by closeNode(), and openNode().

◆ $nodeOnclickEnabled

ilExplorerBaseGUI::$nodeOnclickEnabled
private

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

Referenced by isNodeOnclickEnabled(), and setNodeOnclickEnabled().

◆ $offline_mode

ilExplorerBaseGUI::$offline_mode = false
protected

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

Referenced by getOfflineMode().

◆ $open_nodes

ilExplorerBaseGUI::$open_nodes = []
protected

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

Referenced by __construct(), and getOnLoadCode().

◆ $parent_cmd

ilExplorerBaseGUI::$parent_cmd = ''
protected

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

◆ $parent_obj

◆ $search_term

ilExplorerBaseGUI::$search_term = ""
protected

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

Referenced by getSearchTerm().

◆ $sec_highl_nodes

ilExplorerBaseGUI::$sec_highl_nodes = array()
protected

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

Referenced by getSecondaryHighlightedNodes().

◆ $select_postvar

ilExplorerBaseGUI::$select_postvar = ""
protected

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

Referenced by ilSkillSelectorGUI\getSelectedSkills().

◆ $selected_nodes

ilExplorerBaseGUI::$selected_nodes = array()
protected

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

◆ $skip_root_node

ilExplorerBaseGUI::$skip_root_node = false
protected

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

Referenced by getSkipRootNode().

◆ $store

ilExplorerBaseGUI::$store
protected

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

◆ $tpl

ilExplorerBaseGUI::$tpl
protected

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