ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 (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...
 

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 = ""
 
 $child_limit = 0
 

Static Protected Attributes

static $js_tree_path = "./libs/bower/bower_components/jstree/dist/jstree.js"
 
static $js_tree_path_css = "./libs/bower/bower_components/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.

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

References $DIC.

59  {
60  global $DIC;
61 
62  $this->log = $DIC["ilLog"];
63  $this->ctrl = $DIC->ctrl();
64  $this->tpl = $DIC["tpl"];
65  $this->id = $a_expl_id;
66  $this->parent_obj = $a_parent_obj;
67  $this->parent_cmd = $a_parent_cmd;
68  // get open nodes
69  include_once("./Services/Authentication/classes/class.ilSessionIStorage.php");
70  $this->store = new ilSessionIStorage("expl2");
71  $open_nodes = $this->store->get("on_" . $this->id);
72  $this->open_nodes = unserialize($open_nodes);
73  if (!is_array($this->open_nodes)) {
74  $this->open_nodes = array();
75  }
76 
77  $this->nodeOnclickEnabled = true;
78  }
global $DIC
Definition: saml.php:7
Session based immediate storage.

Member Function Documentation

◆ beforeRendering()

ilExplorerBaseGUI::beforeRendering ( )

Before rendering.

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

Referenced by getHTML(), and getNodeAsync().

604  {
605  }
+ Here is the caller graph for this function:

◆ closeNode()

ilExplorerBaseGUI::closeNode ( )

Close node.

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

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

562  {
563  $ilLog = $this->log;
564 
565  $id = $this->getNodeIdForDomNodeId($_GET["node_id"]);
566  if (in_array($id, $this->open_nodes)) {
567  $k = array_search($id, $this->open_nodes);
568  unset($this->open_nodes[$k]);
569  }
570  $this->store->set("on_" . $this->id, serialize($this->open_nodes));
571  exit;
572  }
$_GET["client_id"]
if(!array_key_exists('StateId', $_REQUEST)) $id
exit
Definition: backend.php:16
getNodeIdForDomNodeId($a_dom_node_id)
Get node id for dom node id.
+ 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 161 of file class.ilExplorerBaseGUI.php.

References getChildsOfNode(), getNodeContent(), getNodeId(), getRootNode(), and ilUtil\makeDirParents().

Referenced by ilObjContentObject\exportHTML().

162  {
163  ilUtil::makeDirParents($a_target_dir . "/Services/UIComponent/Explorer2/lib/jstree-v.pre1.0");
164  ilUtil::makeDirParents($a_target_dir . "/Services/UIComponent/Explorer2/js");
165  }
static makeDirParents($a_dir)
Create a new directory and all parent directories.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAjax()

ilExplorerBaseGUI::getAjax ( )

Get ajax.

Returns
boolean ajax

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

References $ajax.

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

401  {
402  return $this->ajax;
403  }
+ Here is the caller graph for this function:

◆ getChildLimit()

ilExplorerBaseGUI::getChildLimit ( )

Get child limit.

Returns
int child limit

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

References $child_limit.

Referenced by renderChilds().

96  {
97  return $this->child_limit;
98  }
+ 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

Referenced by createHTMLExportDirs(), getHTML(), ilKSDocumentationExplorerGUI\getRootNode(), nodeHasVisibleChilds(), and renderChilds().

+ Here is the caller graph for this function:

◆ getContainerId()

ilExplorerBaseGUI::getContainerId ( )

Get container id.

Parameters

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

References getId().

Referenced by ilForumExplorerGUI\getHTML(), ilObjStudyProgrammeTreeExplorerGUI\getHTML(), getHTML(), getNodeToggleOnClick(), getOnLoadCode(), and handleCommand().

539  {
540  return "il_expl2_jstree_cont_" . $this->getId();
541  }
getId()
Get id of explorer element.
+ 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

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

References getId().

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

933  {
934  return "exp_node_" . $this->getId() . "_" . $a_node_id;
935  }
getId()
Get id of explorer element.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getHTML()

ilExplorerBaseGUI::getHTML ( )

Get HTML.

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

References $ctrl, $ilCtrl, $root, $tpl, beforeRendering(), getChildsOfNode(), getContainerId(), getId(), getNodeId(), getOnLoadCode(), getRootNode(), getSkipRootNode(), init(), isNodeVisible(), listEnd(), listStart(), renderNode(), and sortChilds().

722  {
723  $tpl = $this->tpl;
725 
726  $root = $this->getNodeId($this->getRootNode());
727  if (!in_array($root, $this->open_nodes)) {
728  $this->open_nodes[] = $root;
729  }
730 
731  $this->beforeRendering();
732 
733  self::init($tpl);
734  $container_id = $this->getContainerId();
735  $container_outer_id = "il_expl2_jstree_cont_out_" . $this->getId();
736 
737  if (!$ilCtrl->isAsynch()) {
738  $tpl->addOnLoadCode($this->getOnLoadCode());
739  }
740 
741  $etpl = new ilTemplate("tpl.explorer2.html", true, true, "Services/UIComponent/Explorer2");
742 
743  // render childs
744  $root_node = $this->getRootNode();
745 
746  if (!$this->getSkipRootNode() &&
747  $this->isNodeVisible($this->getRootNode())) {
748  $this->listStart($etpl);
749  $this->renderNode($this->getRootNode(), $etpl);
750  $this->listEnd($etpl);
751  } else {
752  $childs = $this->getChildsOfNode($this->getNodeId($root_node));
753  $childs = $this->sortChilds($childs, $this->getNodeId($root_node));
754  $any = false;
755  foreach ($childs as $child_node) {
756  if ($this->isNodeVisible($child_node)) {
757  if (!$any) {
758  $this->listStart($etpl);
759  $any = true;
760  }
761  $this->renderNode($child_node, $etpl);
762  }
763  }
764  if ($any) {
765  $this->listEnd($etpl);
766  }
767  }
768 
769  $etpl->setVariable("CONTAINER_ID", $container_id);
770  $etpl->setVariable("CONTAINER_OUTER_ID", $container_outer_id);
771 
772  $add = "";
773  if ($ilCtrl->isAsynch()) {
774  $add = "<script>" . $this->getOnLoadCode() . "</script>";
775  }
776 
777  $content = $etpl->get();
778  //echo $content.$add; exit;
779  return $content . $add;
780  }
renderNode($a_node, $tpl)
Render node.
isNodeVisible($a_node)
Is node visible?
sortChilds($a_childs, $a_parent_node_id)
Sort childs.
global $ilCtrl
Definition: ilias.php:18
getSkipRootNode()
Get skip root node.
getOnLoadCode()
Get on load code.
getRootNode()
Get root node.
getNodeId($a_node)
Get id of a node.
special template class to simplify handling of ITX/PEAR
beforeRendering()
Before rendering.
$root
Definition: sabredav.php:45
listStart($tpl)
List start.
getChildsOfNode($a_parent_node_id)
Get childs of node.
while(count($oldTaskList) > 0) foreach(array_keys($newTaskList) as $task) init()
Definition: build.php:77
getId()
Get id of explorer element.
getContainerId()
Get container id.
+ Here is the call graph for this function:

◆ getId()

ilExplorerBaseGUI::getId ( )

Get id of explorer element.

Returns
integer id

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

References $id.

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

359  {
360  return $this->id;
361  }
if(!array_key_exists('StateId', $_REQUEST)) $id
+ Here is the caller graph for this function:

◆ getJSTreePlugins()

ilExplorerBaseGUI::getJSTreePlugins ( )
protected

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

References isEnableDnd().

Referenced by getOnLoadCode().

687  {
688  $plugins = array("html_data", "themes", "json_data");
689  if ($this->isEnableDnd()) {
690  $plugins[] = "dnd";
691  }
692  return $plugins;
693  }
+ 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 135 of file class.ilExplorerBaseGUI.php.

Referenced by ilGroupUserActionProvider\getJsScripts(), and ilObjContentObject\getSupplyingExportFiles().

136  {
137  return self::$js_expl_path;
138  }
+ Here is the caller graph for this function:

◆ getLocalJsTreeCssPath()

static ilExplorerBaseGUI::getLocalJsTreeCssPath ( )
static

Get local path of jsTree js.

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

Referenced by ilGroupUserActionProvider\getCssFiles(), and ilObjContentObject\getSupplyingExportFiles().

152  {
153  return self::$js_tree_path_css;
154  }
+ Here is the caller graph for this function:

◆ getLocalJsTreeJsPath()

static ilExplorerBaseGUI::getLocalJsTreeJsPath ( )
static

Get local path of jsTree js.

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

Referenced by ilGroupUserActionProvider\getJsScripts(), and ilObjContentObject\getSupplyingExportFiles().

144  {
145  return self::$js_tree_path;
146  }
+ Here is the caller graph for this function:

◆ getNodeAsync()

ilExplorerBaseGUI::getNodeAsync ( )

Get node asynchronously.

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

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

578  {
579  $this->beforeRendering();
580 
581  $etpl = new ilTemplate("tpl.explorer2.html", true, true, "Services/UIComponent/Explorer2");
582 
583  $root = $this->getNodeId($this->getRootNode());
584  if (!in_array($root, $this->open_nodes)) {
585  $this->open_nodes[] = $root;
586  }
587 
588  if ($_GET["node_id"] != "") {
589  $id = $this->getNodeIdForDomNodeId($_GET["node_id"]);
590  $this->setSearchTerm(ilUtil::stripSlashes($_GET["searchterm"]));
591  $this->renderChilds($id, $etpl);
592  } else {
593  $id = $this->getNodeId($this->getRootNode());
594  $this->renderNode($this->getRootNode(), $etpl);
595  }
596  echo $etpl->get("tag");
597  exit;
598  }
$_GET["client_id"]
renderChilds($a_node_id, $tpl)
Render childs.
if(!array_key_exists('StateId', $_REQUEST)) $id
renderNode($a_node, $tpl)
Render node.
getRootNode()
Get root node.
getNodeId($a_node)
Get id of a node.
special template class to simplify handling of ITX/PEAR
beforeRendering()
Before rendering.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
$root
Definition: sabredav.php:45
exit
Definition: backend.php:16
setSearchTerm($a_val)
Set search term.
getNodeIdForDomNodeId($a_dom_node_id)
Get node id for dom node id.
+ Here is the call graph for this function:

◆ getNodeContent()

ilExplorerBaseGUI::getNodeContent (   $a_node)
abstract

Get content of a node.

Parameters
mixed$a_nodenode array or object
Returns
string content of the node

Referenced by createHTMLExportDirs(), ilTreeExplorerGUI\matches(), and renderNode().

+ Here is the caller graph for this function:

◆ getNodeHref()

ilExplorerBaseGUI::getNodeHref (   $a_node)

Get href for node.

Parameters
mixed$a_nodenode object/array
Returns
string href attribute

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

Referenced by renderNode().

219  {
220  return "#";
221  }
+ Here is the caller graph for this function:

◆ getNodeIcon()

ilExplorerBaseGUI::getNodeIcon (   $a_node)

Get node icon path.

Parameters
mixed$a_nodenode object/array
Returns
string image file path

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

Referenced by renderNode().

264  {
265  return "";
266  }
+ Here is the caller graph for this function:

◆ getNodeIconAlt()

ilExplorerBaseGUI::getNodeIconAlt (   $a_node)

Get node icon alt attribute.

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

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

Referenced by renderNode().

275  {
276  return "";
277  }
+ 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

Referenced by createHTMLExportDirs(), 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

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

References $i, and getId().

Referenced by closeNode(), getNodeAsync(), ilObjStudyProgrammeTreeExplorerGUI\openCertainNode(), and openNode().

944  {
945  $i = strlen("exp_node_" . $this->getId() . "_");
946  return substr($a_dom_node_id, $i);
947  }
$i
Definition: disco.tpl.php:19
getId()
Get id of explorer element.
+ 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

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

References getSelectOnClick().

Referenced by renderNode().

297  {
298  if ($this->select_postvar != "") {
299  return $this->getSelectOnClick($a_node);
300  }
301  return "";
302  }
getSelectOnClick($a_node)
Get onclick attribute for selecting radio/checkbox.
+ 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 285 of file class.ilExplorerBaseGUI.php.

Referenced by renderNode().

286  {
287  return "";
288  }
+ Here is the caller graph for this function:

◆ getNodeToggleOnClick()

ilExplorerBaseGUI::getNodeToggleOnClick (   $a_node)
finalprotected

Get onclick attribute for node toggling.

Parameters

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

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

Referenced by ilBookmarkBlockExplorerGUI\getNodeOnClick().

445  {
446  return "$('#" . $this->getContainerId() . "').jstree('toggle_node' , '#" .
447  $this->getDomNodeIdForNodeId($this->getNodeId($a_node)) . "'); return false;";
448  }
getNodeId($a_node)
Get id of a node.
getDomNodeIdForNodeId($a_node_id)
Get DOM node id for node id.
getContainerId()
Get container id.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOfflineMode()

ilExplorerBaseGUI::getOfflineMode ( )

◆ getOnLoadCode()

ilExplorerBaseGUI::getOnLoadCode ( )

Get on load code.

Parameters

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

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

Referenced by getHTML().

628  {
630 
631  $container_id = $this->getContainerId();
632  $container_outer_id = "il_expl2_jstree_cont_out_" . $this->getId();
633 
634  // collect open nodes
635  $open_nodes = array($this->getDomNodeIdForNodeId($this->getNodeId($this->getRootNode())));
636  foreach ($this->open_nodes as $nid) {
637  $open_nodes[] = $this->getDomNodeIdForNodeId($nid);
638  }
639  foreach ($this->custom_open_nodes as $nid) {
640  $dnode = $this->getDomNodeIdForNodeId($nid);
641  if (!in_array($dnode, $open_nodes)) {
642  $open_nodes[] = $dnode;
643  }
644  }
645 
646  // ilias config options
647  $url = "";
648  if (!$this->getOfflineMode()) {
649  if (is_object($this->parent_obj)) {
650  $url = $ilCtrl->getLinkTarget($this->parent_obj, $this->parent_cmd, "", true);
651  } else {
652  $url = $ilCtrl->getLinkTargetByClass($this->parent_obj, $this->parent_cmd, "", true);
653  }
654  }
655 
656  // secondary highlighted nodes
657  $shn = array();
658  foreach ($this->sec_highl_nodes as $sh) {
659  $shn[] = $this->getDomNodeIdForNodeId($sh);
660  }
661  $config = array(
662  "container_id" => $container_id,
663  "container_outer_id" => $container_outer_id,
664  "url" => $url,
665  "second_hnodes" => $shn,
666  "ajax" => $this->getAjax(),
667  );
668 
669 
670  // jstree config options
671  $js_tree_config = array(
672  "core" => array(
673  "animation" => 0,
674  "initially_open" => $open_nodes,
675  "open_parents" => false,
676  "strings" => array("loading" => "Loading ...", "new_node" => "New node"),
677  "themes" => array("dots" => false, "icons" => false, "theme" => "")
678  ),
679  "plugins" => $this->getJSTreePlugins(),
680  "html_data" => array()
681  );
682 
683  return 'il.Explorer2.init(' . json_encode($config) . ', ' . json_encode($js_tree_config) . ');';
684  }
$config
Definition: bootstrap.php:15
global $ilCtrl
Definition: ilias.php:18
getRootNode()
Get root node.
getNodeId($a_node)
Get id of a node.
getOfflineMode()
Get offline mode.
$url
getDomNodeIdForNodeId($a_node_id)
Get DOM node id for node id.
getId()
Get id of explorer element.
getContainerId()
Get container id.
+ 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

Referenced by createHTMLExportDirs(), 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 115 of file class.ilExplorerBaseGUI.php.

References $search_term.

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

116  {
117  return $this->search_term;
118  }
+ 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 420 of file class.ilExplorerBaseGUI.php.

References $sec_highl_nodes.

421  {
422  return $this->sec_highl_nodes;
423  }

◆ getSelectOnClick()

ilExplorerBaseGUI::getSelectOnClick (   $a_node)
finalprotected

Get onclick attribute for selecting radio/checkbox.

Parameters

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

References getDomNodeIdForNodeId(), and getNodeId().

Referenced by getNodeOnClick().

457  {
458  $dn_id = $this->getDomNodeIdForNodeId($this->getNodeId($a_node));
459  $oc = "il.Explorer2.selectOnClick(event, '" . $dn_id . "'); return false;";
460  return $oc;
461  }
getNodeId($a_node)
Get id of a node.
getDomNodeIdForNodeId($a_node_id)
Get DOM node id for node id.
+ 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 380 of file class.ilExplorerBaseGUI.php.

References $skip_root_node.

Referenced by getHTML(), and renderNode().

381  {
382  return $this->skip_root_node;
383  }
+ 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 518 of file class.ilExplorerBaseGUI.php.

References $_GET, and getContainerId().

519  {
520  if ($_GET["exp_cmd"] != "" &&
521  $_GET["exp_cont"] == $this->getContainerId()) {
522  $cmd = $_GET["exp_cmd"];
523  if (in_array($cmd, array("openNode", "closeNode", "getNodeAsync"))) {
524  $this->$cmd();
525  }
526 
527  return true;
528  }
529  return false;
530  }
$_GET["client_id"]
getContainerId()
Get container id.
+ Here is the call graph for this function:

◆ init()

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

Init JS.

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

References $DIC, $tpl, and iljQueryUtil\initjQuery().

Referenced by ilInternalLinkGUI\getInitHTML().

700  {
701  global $DIC;
702 
703  if ($a_main_tpl == null) {
704  $tpl = $DIC["tpl"];
705  } else {
706  $tpl = $a_main_tpl;
707  }
708 
709  include_once("./Services/jQuery/classes/class.iljQueryUtil.php");
711 
712  $tpl->addJavascript(self::getLocalExplorerJsPath());
713  $tpl->addJavascript(self::getLocalJsTreeJsPath());
714  $tpl->addCss(self::getLocalJsTreeCssPath());
715  }
global $DIC
Definition: saml.php:7
static initjQuery($a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isEnableDnd()

ilExplorerBaseGUI::isEnableDnd ( )

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

References $enable_dnd.

Referenced by getJSTreePlugins().

1026  {
1027  return $this->enable_dnd;
1028  }
+ Here is the caller graph for this function:

◆ isNodeClickable()

ilExplorerBaseGUI::isNodeClickable (   $a_node)

Is node clickable?

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

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

Referenced by renderNode().

333  {
334  return true;
335  }
+ Here is the caller graph for this function:

◆ isNodeHighlighted()

ilExplorerBaseGUI::isNodeHighlighted (   $a_node)

Is node highlighted?

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

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

Referenced by renderNode().

322  {
323  return false;
324  }
+ Here is the caller graph for this function:

◆ isNodeOnclickEnabled()

ilExplorerBaseGUI::isNodeOnclickEnabled ( )
Returns
boolean

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

References $nodeOnclickEnabled.

Referenced by renderNode().

1013  {
1015  }
+ Here is the caller graph for this function:

◆ isNodeOpen()

ilExplorerBaseGUI::isNodeOpen (   $node_id)
protected

Get all open nodes.

Parameters

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

References getNodeId(), and getRootNode().

Referenced by listItemStart().

614  {
615  return ($this->getNodeId($this->getRootNode()) == $node_id
616  || in_array($node_id, $this->open_nodes)
617  || in_array($node_id, $this->custom_open_nodes));
618  }
getRootNode()
Get root node.
getNodeId($a_node)
Get id of a node.
+ 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

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

Referenced by renderNode().

344  {
345  return true;
346  }
+ 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

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

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

311  {
312  return true;
313  }
+ Here is the caller graph for this function:

◆ listEnd()

ilExplorerBaseGUI::listEnd (   $tpl)

List end.

Parameters

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

References $tpl.

Referenced by getHTML(), and renderChilds().

1004  {
1005  $tpl->touchBlock("list_end");
1006  $tpl->touchBlock("tag");
1007  }
+ Here is the caller graph for this function:

◆ listItemEnd()

ilExplorerBaseGUI::listItemEnd (   $tpl)

List item end.

Parameters

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

References $tpl.

Referenced by renderNode().

980  {
981  $tpl->touchBlock("list_item_end");
982  $tpl->touchBlock("tag");
983  }
+ Here is the caller graph for this function:

◆ listItemStart()

ilExplorerBaseGUI::listItemStart (   $tpl,
  $a_node 
)

List item start.

Parameters

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

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

Referenced by renderNode().

956  {
957  $tpl->setCurrentBlock("list_item_start");
958  if ($this->getAjax() && $this->nodeHasVisibleChilds($a_node) && !$this->isNodeOpen($this->getNodeId($a_node))) {
959  $tpl->touchBlock("li_closed");
960  }
961  if ($this->isNodeOpen($this->getNodeId($a_node))) {
962  $tpl->touchBlock("li_opened");
963  }
964 
965  $tpl->setVariable(
966  "DOM_NODE_ID",
967  $this->getDomNodeIdForNodeId($this->getNodeId($a_node))
968  );
969  $tpl->parseCurrentBlock();
970  $tpl->touchBlock("tag");
971  }
getNodeId($a_node)
Get id of a node.
isNodeOpen($node_id)
Get all open nodes.
getDomNodeIdForNodeId($a_node_id)
Get DOM node id for node id.
nodeHasVisibleChilds($a_node)
Node has childs?
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ listStart()

ilExplorerBaseGUI::listStart (   $tpl)

List start.

Parameters

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

References $tpl.

Referenced by getHTML(), and renderChilds().

992  {
993  $tpl->touchBlock("list_start");
994  $tpl->touchBlock("tag");
995  }
+ 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

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

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

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

233  {
234  $childs = $this->getChildsOfNode($this->getNodeId($a_node));
235 
236  foreach ($childs as $child) {
237  if ($this->isNodeVisible($child)) {
238  return true;
239  }
240  }
241  return false;
242  }
isNodeVisible($a_node)
Is node visible?
getNodeId($a_node)
Get id of a node.
getChildsOfNode($a_parent_node_id)
Get childs of node.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ openNode()

ilExplorerBaseGUI::openNode ( )

Open node.

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

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

547  {
548  $ilLog = $this->log;
549 
550  $id = $this->getNodeIdForDomNodeId($_GET["node_id"]);
551  if (!in_array($id, $this->open_nodes)) {
552  $this->open_nodes[] = $id;
553  }
554  $this->store->set("on_" . $this->id, serialize($this->open_nodes));
555  exit;
556  }
$_GET["client_id"]
if(!array_key_exists('StateId', $_REQUEST)) $id
exit
Definition: backend.php:16
getNodeIdForDomNodeId($a_dom_node_id)
Get node id for dom node id.
+ Here is the call graph for this function:

◆ renderChilds()

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

Render childs.

Parameters

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

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

Referenced by getNodeAsync(), and renderNode().

871  {
872  $childs = $this->getChildsOfNode($a_node_id);
873  $childs = $this->sortChilds($childs, $a_node_id);
874 
875  if (count($childs) > 0 || $this->getSearchTerm() != "") {
876  // collect visible childs
877 
878  $visible_childs = [];
879  $cnt_child = 0;
880 
881  foreach ($childs as $child) {
882  $cnt_child++;
883  if ($this->getChildLimit() > 0 && $this->getChildLimit() < $cnt_child) {
884  continue;
885  }
886 
887  if ($this->isNodeVisible($child)) {
888  $visible_childs[] = $child;
889  }
890  }
891 
892  // search field, if too many childs
893  $any = false;
894  if ($this->getChildLimit() > 0 && $this->getChildLimit() < $cnt_child
895  || $this->getSearchTerm() != "") {
896  if (!$any) {
897  $this->listStart($tpl);
898  $any = true;
899  }
900  $tpl->setCurrentBlock("list_search");
901  $tpl->setVariable("SEARCH_CONTAINER_ID", $a_node_id);
902  $tpl->setVariable("SEARCH_VAL", $this->getSearchTerm());
903  $tpl->parseCurrentBlock();
904  $tpl->touchBlock("tag");
905  }
906 
907  // render visible childs
908  foreach ($visible_childs as $child) {
909  // check child limit
910  $cnt_child++;
911 
912  if ($this->isNodeVisible($child)) {
913  if (!$any) {
914  $this->listStart($tpl);
915  $any = true;
916  }
917  $this->renderNode($child, $tpl);
918  }
919  }
920  if ($any) {
921  $this->listEnd($tpl);
922  }
923  }
924  }
getSearchTerm()
Get search term.
getChildLimit()
Get child limit.
renderNode($a_node, $tpl)
Render node.
isNodeVisible($a_node)
Is node visible?
sortChilds($a_childs, $a_parent_node_id)
Sort childs.
listStart($tpl)
List start.
getChildsOfNode($a_parent_node_id)
Get childs of node.
+ 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

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

References $target, $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().

789  {
790  $skip = ($this->getSkipRootNode()
791  && $this->getNodeId($this->getRootNode()) == $this->getNodeId($a_node));
792  if (!$skip) {
793  $this->listItemStart($tpl, $a_node);
794 
795  // select mode?
796  if ($this->select_postvar != "" && $this->isNodeSelectable($a_node)) {
797  if ($this->select_multi) {
798  $tpl->setCurrentBlock("cb");
799  if (in_array($this->getNodeId($a_node), $this->selected_nodes)) {
800  $tpl->setVariable("CHECKED", 'checked="checked"');
801  }
802  $tpl->setVariable("CB_VAL", $this->getNodeId($a_node));
803  $tpl->setVariable("CB_NAME", $this->select_postvar . "[]");
804  $tpl->parseCurrentBlock();
805  } else {
806  $tpl->setCurrentBlock("rd");
807  if (in_array($this->getNodeId($a_node), $this->selected_nodes)) {
808  $tpl->setVariable("SELECTED", 'checked="checked"');
809  }
810  $tpl->setVariable("RD_VAL", $this->getNodeId($a_node));
811  $tpl->setVariable("RD_NAME", $this->select_postvar);
812  $tpl->parseCurrentBlock();
813  }
814  }
815 
816 
817  if ($this->isNodeHighlighted($a_node)) {
818  $tpl->touchBlock("hl");
819  }
820  $tpl->setCurrentBlock("content");
821  if ($this->getNodeIcon($a_node) != "") {
822  $tpl->setVariable("ICON", ilUtil::img($this->getNodeIcon($a_node), $this->getNodeIconAlt($a_node)) . " ");
823  }
824  $tpl->setVariable("CONTENT", $this->getNodeContent($a_node));
825  if ($this->isNodeClickable($a_node)) {
826  $tpl->setVariable("HREF", $this->getNodeHref($a_node));
827  }
828  $target = $this->getNodeTarget($a_node);
829  if ($target != "") {
830  $targetRelatedParams = array(
831  'target="' . $target . '"'
832  );
833 
834  if ('_blank' === $target) {
835  $targetRelatedParams[] = 'rel="noopener"';
836  }
837 
838  $tpl->setVariable('TARGET', implode(' ', $targetRelatedParams));
839  }
840  if (!$this->isNodeOnclickEnabled() || !$this->isNodeClickable($a_node)) {
841  $tpl->setVariable("ONCLICK", 'onclick="return false;"');
842  $tpl->setVariable("A_CLASS", 'class="disabled"');
843  } else {
844  $onclick = $this->getNodeOnClick($a_node);
845  if ($onclick != "") {
846  $tpl->setVariable("ONCLICK", 'onclick="' . $onclick . '"');
847  }
848  }
849  $tpl->parseCurrentBlock();
850 
851  $tpl->touchBlock("tag");
852  }
853 
854  if (!$this->getAjax() || in_array($this->getNodeId($a_node), $this->open_nodes)
855  || in_array($this->getNodeId($a_node), $this->custom_open_nodes)) {
856  $this->renderChilds($this->getNodeId($a_node), $tpl);
857  }
858 
859  if (!$skip) {
860  $this->listItemEnd($tpl);
861  }
862  }
getNodeOnClick($a_node)
Get node onclick attribute.
isNodeClickable($a_node)
Is node clickable?
renderChilds($a_node_id, $tpl)
Render childs.
getNodeIcon($a_node)
Get node icon path.
getNodeIconAlt($a_node)
Get node icon alt attribute.
isNodeSelectable($a_node)
Is node selectable?
isNodeHighlighted($a_node)
Is node highlighted?
getSkipRootNode()
Get skip root node.
getRootNode()
Get root node.
getNodeId($a_node)
Get id of a node.
static img($a_src, $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
getNodeContent($a_node)
Get content of a node.
getNodeTarget($a_node)
Get node target (frame) attribute.
listItemStart($tpl, $a_node)
List item start.
$target
Definition: test.php:19
listItemEnd($tpl)
List item end.
getNodeHref($a_node)
Get href for node.
+ 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 85 of file class.ilExplorerBaseGUI.php.

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

86  {
87  $this->child_limit = $a_val;
88  }
+ Here is the caller graph for this function:

◆ setEnableDnd()

ilExplorerBaseGUI::setEnableDnd (   $enable_dnd)

Enable Drag & Drop functionality.

Parameters
boolean$enable_dnd

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

References $enable_dnd.

Referenced by ilObjStudyProgrammeTreeExplorerGUI\__construct().

1035  {
1036  $this->enable_dnd = $enable_dnd;
1037  }
+ Here is the caller graph for this function:

◆ setMainTemplate()

ilExplorerBaseGUI::setMainTemplate ( ilTemplate  $a_main_tpl = null)

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

Parameters
ilTemplate | null$a_main_tpl

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

127  {
128  $this->tpl = $a_main_tpl;
129  }

◆ setNodeOnclickEnabled()

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

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

References $nodeOnclickEnabled.

Referenced by ilLSTOCGUI\__construct().

1021  {
1022  $this->nodeOnclickEnabled = $nodeOnclickEnabled;
1023  }
+ 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

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

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

432  {
433  if (!in_array($a_id, $this->custom_open_nodes)) {
434  $this->custom_open_nodes[] = $a_id;
435  }
436  }
+ 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

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

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

483  {
484  if (!in_array($a_id, $this->selected_nodes)) {
485  $this->selected_nodes[] = $a_id;
486  }
487  }
+ Here is the caller graph for this function:

◆ setOfflineMode()

ilExplorerBaseGUI::setOfflineMode (   $a_val)

Set offline mode.

Parameters
bool$a_valoffline mode

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

Referenced by ilKSDocumentationExplorerGUI\__construct().

495  {
496  $this->offline_mode = $a_val;
497  }
+ Here is the caller graph for this function:

◆ setSearchTerm()

ilExplorerBaseGUI::setSearchTerm (   $a_val)

Set search term.

Parameters
string$a_valsearch term

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

Referenced by getNodeAsync().

106  {
107  $this->search_term = $a_val;
108  }
+ 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 410 of file class.ilExplorerBaseGUI.php.

Referenced by ilLMTOCExplorerGUI\__construct().

411  {
412  $this->sec_highl_nodes = $a_val;
413  }
+ 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 470 of file class.ilExplorerBaseGUI.php.

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

471  {
472  $this->select_postvar = $a_postvar;
473  $this->select_multi = $a_multi;
474  }
+ 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

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

Referenced by getHTML(), and renderChilds().

253  {
254  return $a_childs;
255  }
+ Here is the caller graph for this function:

Field Documentation

◆ $ajax

ilExplorerBaseGUI::$ajax = false
protected

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

Referenced by getAjax().

◆ $child_limit

ilExplorerBaseGUI::$child_limit = 0
protected

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

Referenced by getChildLimit().

◆ $ctrl

◆ $custom_open_nodes

ilExplorerBaseGUI::$custom_open_nodes = array()
protected

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

◆ $enable_dnd

ilExplorerBaseGUI::$enable_dnd = false
protected

Definition at line 45 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 37 of file class.ilExplorerBaseGUI.php.

◆ $js_tree_path

ilExplorerBaseGUI::$js_tree_path = "./libs/bower/bower_components/jstree/dist/jstree.js"
staticprotected

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

◆ $js_tree_path_css

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

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

◆ $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 53 of file class.ilExplorerBaseGUI.php.

Referenced by isNodeOnclickEnabled(), and setNodeOnclickEnabled().

◆ $offline_mode

ilExplorerBaseGUI::$offline_mode = false
protected

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

Referenced by getOfflineMode().

◆ $search_term

ilExplorerBaseGUI::$search_term = ""
protected

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

Referenced by getSearchTerm().

◆ $sec_highl_nodes

ilExplorerBaseGUI::$sec_highl_nodes = array()
protected

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

Referenced by getSecondaryHighlightedNodes().

◆ $select_postvar

ilExplorerBaseGUI::$select_postvar = ""
protected

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

Referenced by ilSkillSelectorGUI\getSelectedSkills().

◆ $selected_nodes

ilExplorerBaseGUI::$selected_nodes = array()
protected

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

◆ $skip_root_node

ilExplorerBaseGUI::$skip_root_node = false
protected

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

Referenced by getSkipRootNode().

◆ $tpl

ilExplorerBaseGUI::$tpl
protected

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