ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
Tree-GUI for ToC. More...
Public Member Functions | |
__construct (LSUrlBuilder $url_builder) | |
withStructure (string $json_structure) | |
getRootNode () | |
getChildsOfNode ($a_parent_node_id) | |
getNodeContent ($a_node) | |
getNodeIcon ($a_node) | |
getNodeId ($a_node) | |
getNodeHref ($a_node) | |
isNodeClickable ($a_node) | |
isNodeHighlighted ($a_node) | |
![]() | |
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) | |
Data Fields | |
const | NODE_ICONS |
Protected Member Functions | |
addIds (array $node) | |
buildLookup (array $node) | |
![]() | |
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 | |
array | $structure |
array | $nodes = [] |
LSUrlBuilder | $url_builder |
int | $counter = 0 |
array | $node_icons |
![]() | |
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 |
Additional Inherited Members | |
![]() | |
static | getLocalExplorerJsPath () |
static | getLocalJsTreeJsPath () |
static | getLocalJsTreeCssPath () |
static | createHTMLExportDirs (string $a_target_dir) |
static | init (?ilGlobalTemplateInterface $a_main_tpl=null) |
![]() | |
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" |
Tree-GUI for ToC.
Definition at line 26 of file class.ilLSTOCGUI.php.
ilLSTOCGUI::__construct | ( | LSUrlBuilder | $url_builder | ) |
Definition at line 60 of file class.ilLSTOCGUI.php.
References $url_builder, ILIAS\GlobalScreen\Provider\__construct(), ilLPStatusIcons\getInstance(), ilLPStatusIcons\ICON_VARIANT_SHORT, null, ilExplorerBaseGUI\setNodeOnclickEnabled(), and ilExplorerBaseGUI\setSkipRootNode().
|
protected |
|
protected |
Definition at line 97 of file class.ilLSTOCGUI.php.
ilLSTOCGUI::getChildsOfNode | ( | $a_parent_node_id | ) |
Definition at line 118 of file class.ilLSTOCGUI.php.
ilLSTOCGUI::getNodeContent | ( | $a_node | ) |
Definition at line 127 of file class.ilLSTOCGUI.php.
ilLSTOCGUI::getNodeHref | ( | $a_node | ) |
Definition at line 152 of file class.ilLSTOCGUI.php.
ilLSTOCGUI::getNodeIcon | ( | $a_node | ) |
Definition at line 135 of file class.ilLSTOCGUI.php.
ilLSTOCGUI::getNodeId | ( | $a_node | ) |
Definition at line 144 of file class.ilLSTOCGUI.php.
ilLSTOCGUI::getRootNode | ( | ) |
Definition at line 110 of file class.ilLSTOCGUI.php.
ilLSTOCGUI::isNodeClickable | ( | $a_node | ) |
Definition at line 160 of file class.ilLSTOCGUI.php.
ilLSTOCGUI::isNodeHighlighted | ( | $a_node | ) |
Definition at line 168 of file class.ilLSTOCGUI.php.
ilLSTOCGUI::withStructure | ( | string | $json_structure | ) |
Definition at line 76 of file class.ilLSTOCGUI.php.
|
protected |
Definition at line 48 of file class.ilLSTOCGUI.php.
Referenced by addIds().
|
protected |
Definition at line 53 of file class.ilLSTOCGUI.php.
|
protected |
Definition at line 46 of file class.ilLSTOCGUI.php.
|
protected |
Definition at line 41 of file class.ilLSTOCGUI.php.
|
protected |
Definition at line 47 of file class.ilLSTOCGUI.php.
Referenced by __construct().
const ilLSTOCGUI::NODE_ICONS |
Definition at line 31 of file class.ilLSTOCGUI.php.