|
ILIAS
release_8 Revision v8.24
|
Explorer class that works on tree objects (Services/Tree) More...
Inheritance diagram for ilTreeExplorerGUI:
Collaboration diagram for ilTreeExplorerGUI:Public Member Functions | |
| __construct (string $a_expl_id, $a_parent_obj, string $a_parent_cmd, ilTree $a_tree, string $a_node_parameter_name="node_id") | |
| getTree () | |
| setOrderField (string $a_val, bool $a_numeric=false) | |
| getOrderField () | |
| setTypeWhiteList (array $a_val) | |
| Set type white list. More... | |
| getTypeWhiteList () | |
| Get type white list. More... | |
| setTypeBlackList (array $a_val) | |
| Set type black list. More... | |
| getTypeBlackList () | |
| Get type black list. More... | |
| setPreloadChilds (bool $a_val) | |
| getPreloadChilds () | |
| getSuccessorNode ( $a_node_id, string $a_type="") | |
| Get successor node (currently only(!) based on lft/rgt tree values) More... | |
| getChildsOfNode ($a_parent_node_id) | |
| Get childs of node. More... | |
| getNodeId ($a_node) | |
| Get id for node. More... | |
| getNodeIconAlt ($a_node) | |
| Get node icon alt attribute. More... | |
| getRootNode () | |
| Get root node. More... | |
| setRootId ($a_root) | |
| setPathOpen ($a_id) | |
| Set node path to be opened. More... | |
| getHTML ($new=false) | |
| Get HTML. More... | |
| getChildren ($record, $environment=null) | |
| Get a list of records (that list can also be empty). More... | |
| build (\ILIAS\UI\Component\Tree\Node\Factory $factory, $record, $environment=null) | |
| getTreeLabel () | |
| getTreeComponent () | |
| toggleExplorerNodeState () | |
| Should be called by an ilCtrl-enabled command class if a tree node toggle action should be processed. More... | |
Public Member Functions inherited from ilExplorerBaseGUI | |
| 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) | |
Public Member Functions inherited from ILIAS\UI\Component\Tree\TreeRecursion | |
| getChildren ( $record, $environment=null) | |
| Get a list of records (that list can also be empty). More... | |
| build (Node\Factory $factory, $record, $environment=null) | |
| Build and return a Node. More... | |
Protected Member Functions | |
| preloadChilds () | |
| matches ($node) | |
| Does a node match a search term (or is search term empty) More... | |
| getRootId () | |
| createNode (\ILIAS\UI\Component\Tree\Node\Factory $factory, $record) | |
| Creates at tree node, can be overwritten in derivatives if another node type should be used. More... | |
| getNodeStateToggleCmdClasses ($record) | |
| Should return an array of ilCtrl-enabled command classes which should be used to build the URL for the expand/collapse actions applied on a tree node. More... | |
| render () | |
Protected Member Functions inherited from ilExplorerBaseGUI | |
| isNodeSelectable ($a_node) | |
| Is node selectable? More... | |
| getNodeToggleOnClick ($a_node) | |
| Get onclick attribute for node toggling. More... | |
| getSelectOnClick ($a_node) | |
| Get onclick attribute for selecting radio/checkbox. More... | |
| isNodeOpen ($node_id) | |
| Get all open nodes. More... | |
| getJSTreePlugins () | |
| isNodeRequested (string $a_node_id) | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilExplorerBaseGUI | |
| static | getLocalExplorerJsPath () |
| static | getLocalJsTreeJsPath () |
| static | getLocalJsTreeCssPath () |
| static | createHTMLExportDirs (string $a_target_dir) |
| static | init (ilGlobalTemplateInterface $a_main_tpl=null) |
Static Protected Attributes inherited from ilExplorerBaseGUI | |
| 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 = "./Services/UIComponent/Explorer2/js/Explorer2.js" |
Explorer class that works on tree objects (Services/Tree)
Definition at line 26 of file class.ilTreeExplorerGUI.php.
| ilTreeExplorerGUI::__construct | ( | string | $a_expl_id, |
| $a_parent_obj, | |||
| string | $a_parent_cmd, | ||
| ilTree | $a_tree, | ||
| string | $a_node_parameter_name = "node_id" |
||
| ) |
Definition at line 44 of file class.ilTreeExplorerGUI.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\lng(), and ILIAS\Repository\ui().
Here is the call graph for this function:| ilTreeExplorerGUI::build | ( | \ILIAS\UI\Component\Tree\Node\Factory | $factory, |
| $record, | |||
$environment = null |
|||
| ) |
Definition at line 375 of file class.ilTreeExplorerGUI.php.
|
protected |
Creates at tree node, can be overwritten in derivatives if another node type should be used.
Reimplemented in ilForumExplorerGUI, and ilTaxonomyClassificationExplorerGUI.
Definition at line 346 of file class.ilTreeExplorerGUI.php.
References ILIAS\Repository\ui().
Here is the call graph for this function:| ilTreeExplorerGUI::getChildren | ( | $record, | |
$environment = null |
|||
| ) |
Get a list of records (that list can also be empty).
Each record will be relayed to $this->build to retrieve a Node. Also, each record will be asked for Sub-Nodes using this function.
Implements ILIAS\UI\Component\Tree\TreeRecursion.
Reimplemented in ilForumExplorerGUI.
Definition at line 338 of file class.ilTreeExplorerGUI.php.
| ilTreeExplorerGUI::getChildsOfNode | ( | $a_parent_node_id | ) |
Get childs of node.
| int | string | $a_parent_node_id | parent id |
Reimplemented from ilExplorerBaseGUI.
Reimplemented in ilForumExplorerGUI, ilOrgUnitExplorerGUI, ilAdministrationExplorerGUI, ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilPersonalSkillExplorerGUI, and ilSkillTemplateTreeExplorerGUI.
Definition at line 206 of file class.ilTreeExplorerGUI.php.
References $c.
Referenced by ilPublicSectionExplorerGUI\getAllNodes().
Here is the caller graph for this function:| ilTreeExplorerGUI::getHTML | ( | $new = false | ) |
Get HTML.
Definition at line 325 of file class.ilTreeExplorerGUI.php.
| ilTreeExplorerGUI::getNodeIconAlt | ( | $a_node | ) |
Get node icon alt attribute.
| object | array | $a_node | node |
Reimplemented from ilExplorerBaseGUI.
Reimplemented in ilLMEditorExplorerGUI, ilLMTOCExplorerGUI, ilAdministrationExplorerGUI, ilMailExplorer, ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilPersonalSkillExplorerGUI, and ilSkillTemplateTreeExplorerGUI.
Definition at line 273 of file class.ilTreeExplorerGUI.php.
References $lng.
Referenced by ilForumExplorerGUI\createNode(), and ilTaxonomyClassificationExplorerGUI\createNode().
Here is the caller graph for this function:| ilTreeExplorerGUI::getNodeId | ( | $a_node | ) |
Get id for node.
| object | array | $a_node |
Reimplemented from ilExplorerBaseGUI.
Reimplemented in ilForumExplorerGUI.
Definition at line 263 of file class.ilTreeExplorerGUI.php.
Referenced by ilPublicSectionExplorerGUI\getAllNodes(), ilLMExplorerGUI\getNodeContent(), ilMediaPoolExplorerGUI\getNodeContent(), ilAdministrationExplorerGUI\getNodeContent(), ilRepositoryExplorerGUI\getNodeContent(), ilRepositorySelectorExplorerGUI\getNodeContent(), ilLMEditorExplorerGUI\getNodeIcon(), ilPublicSectionExplorerGUI\getNodeIcon(), ilMediaPoolExplorerGUI\getNodeIcon(), ilAdministrationExplorerGUI\getNodeIconAlt(), ilRepositoryExplorerGUI\getNodeIconAlt(), ilRepositorySelectorExplorerGUI\getNodeIconAlt(), ilLMExplorerGUI\isNodeHighlighted(), ilAdministrationExplorerGUI\isNodeHighlighted(), ilRepositoryExplorerGUI\isNodeHighlighted(), and ilRepositorySelectorExplorerGUI\isNodeHighlighted().
Here is the caller graph for this function:
|
protected |
Should return an array of ilCtrl-enabled command classes which should be used to build the URL for the expand/collapse actions applied on a tree node.
| $record |
Reimplemented in ilForumExplorerGUI, ilMediaPoolExplorerGUI, and ilMailExplorer.
Definition at line 370 of file class.ilTreeExplorerGUI.php.
| ilTreeExplorerGUI::getOrderField | ( | ) |
Definition at line 73 of file class.ilTreeExplorerGUI.php.
| ilTreeExplorerGUI::getPreloadChilds | ( | ) |
Definition at line 119 of file class.ilTreeExplorerGUI.php.
|
protected |
Reimplemented in ilPersonalSkillExplorerGUI.
Definition at line 301 of file class.ilTreeExplorerGUI.php.
Referenced by ilWorkspaceExplorerGUI\isNodeHighlighted().
Here is the caller graph for this function:| ilTreeExplorerGUI::getRootNode | ( | ) |
Get root node.
Reimplemented from ilExplorerBaseGUI.
Reimplemented in ilLMTOCExplorerGUI, ilOrgUnitExplorerGUI, ilMailExplorer, ilRepositoryExplorerGUI, and ilSkillTemplateTreeExplorerGUI.
Definition at line 285 of file class.ilTreeExplorerGUI.php.
Referenced by ilPublicSectionExplorerGUI\getAllNodes(), ilLMExplorerGUI\getNodeContent(), ilMediaPoolExplorerGUI\getNodeContent(), ilAdministrationExplorerGUI\getNodeContent(), ilTaxonomyClassificationExplorerGUI\getNodeContent(), ilRepositorySelectorExplorerGUI\getNodeContent(), ilTaxonomyExplorerGUI\getNodeContent(), ilLMEditorExplorerGUI\getNodeIcon(), ilPublicSectionExplorerGUI\getNodeIcon(), ilMediaPoolExplorerGUI\getNodeIcon(), ilAdministrationExplorerGUI\getNodeIconAlt(), ilRepositorySelectorExplorerGUI\getNodeIconAlt(), ilTaxonomyClassificationExplorerGUI\getTreeComponent(), ilLMExplorerGUI\isNodeHighlighted(), ilAdministrationExplorerGUI\isNodeHighlighted(), and ilRepositorySelectorExplorerGUI\isNodeHighlighted().
Here is the caller graph for this function:| ilTreeExplorerGUI::getSuccessorNode | ( | $a_node_id, | |
| string | $a_type = "" |
||
| ) |
Get successor node (currently only(!) based on lft/rgt tree values)
| int | string | $a_node_id | node id |
Definition at line 177 of file class.ilTreeExplorerGUI.php.
| ilTreeExplorerGUI::getTree | ( | ) |
Definition at line 60 of file class.ilTreeExplorerGUI.php.
References $tree.
Referenced by ilOrgUnitExplorerGUI\getRootNode(), ilRepositoryExplorerGUI\getRootNode(), ilSkillTemplateTreeExplorerGUI\getRootNode(), and ilTaxonomyClassificationExplorerGUI\getTreeComponent().
Here is the caller graph for this function:| ilTreeExplorerGUI::getTreeComponent | ( | ) |
Reimplemented in ilForumExplorerGUI, ilTaxonomyClassificationExplorerGUI, and ilMailExplorer.
Definition at line 416 of file class.ilTreeExplorerGUI.php.
References $data, Vendor\Package\$f, ilTree\getNodeData(), ilTree\readRootId(), and ILIAS\Repository\ui().
Here is the call graph for this function:| ilTreeExplorerGUI::getTreeLabel | ( | ) |
Reimplemented in ilForumExplorerGUI, and ilMailExplorer.
Definition at line 411 of file class.ilTreeExplorerGUI.php.
Referenced by ilTaxonomyClassificationExplorerGUI\getTreeComponent().
Here is the caller graph for this function:| ilTreeExplorerGUI::getTypeBlackList | ( | ) |
Get type black list.
Definition at line 109 of file class.ilTreeExplorerGUI.php.
| ilTreeExplorerGUI::getTypeWhiteList | ( | ) |
Get type white list.
Definition at line 91 of file class.ilTreeExplorerGUI.php.
Referenced by ilIntLinkRepItemExplorerGUI\__construct(), ilConditionSelector\setRefId(), and ilRepositorySelectorExplorerGUI\sortChilds().
Here is the caller graph for this function:
|
protected |
Does a node match a search term (or is search term empty)
| object | array | $node |
Definition at line 248 of file class.ilTreeExplorerGUI.php.
|
protected |
Reimplemented in ilForumExplorerGUI.
Definition at line 124 of file class.ilTreeExplorerGUI.php.
References $c, and ilArrayUtil\sortArray().
Here is the call graph for this function:
|
protected |
Definition at line 458 of file class.ilTreeExplorerGUI.php.
References ILIAS\Repository\ui().
Here is the call graph for this function:| ilTreeExplorerGUI::setOrderField | ( | string | $a_val, |
| bool | $a_numeric = false |
||
| ) |
Definition at line 65 of file class.ilTreeExplorerGUI.php.
Referenced by ilTaxonomyExplorerGUI\__construct(), ilSkillTemplateTreeExplorerGUI\__construct(), ilMailExplorer\__construct(), ilMediaPoolExplorerGUI\__construct(), and ilAdministrationExplorerGUI\__construct().
Here is the caller graph for this function:| ilTreeExplorerGUI::setPathOpen | ( | $a_id | ) |
Set node path to be opened.
| string | $a_id | node id |
Definition at line 312 of file class.ilTreeExplorerGUI.php.
Referenced by ilLMExplorerGUI\__construct(), ilWorkspaceExplorerGUI\__construct(), ilGroupActionTargetExplorerGUI\__construct(), and ilAdministrationExplorerGUI\__construct().
Here is the caller graph for this function:| ilTreeExplorerGUI::setPreloadChilds | ( | bool | $a_val | ) |
Definition at line 114 of file class.ilTreeExplorerGUI.php.
Referenced by ilLMExplorerGUI\__construct(), ilTaxonomyExplorerGUI\__construct(), and ilForumExplorerGUI\__construct().
Here is the caller graph for this function:| ilTreeExplorerGUI::setRootId | ( | $a_root | ) |
| int | string | $a_root |
Definition at line 296 of file class.ilTreeExplorerGUI.php.
| ilTreeExplorerGUI::setTypeBlackList | ( | array | $a_val | ) |
Set type black list.
| array | $a_val | array of strings of node types that should be filtered out |
Definition at line 100 of file class.ilTreeExplorerGUI.php.
| ilTreeExplorerGUI::setTypeWhiteList | ( | array | $a_val | ) |
Set type white list.
| array | $a_val | array of strings of node types that should be retrieved |
Definition at line 82 of file class.ilTreeExplorerGUI.php.
Referenced by ilIntLinkRepItemExplorerGUI\__construct(), ilPCFileItemFileSelectorGUI\__construct(), ilLMTOCExplorerGUI\__construct(), ilOrgUnitExplorerGUI\__construct(), ilSkillTemplateTreeExplorerGUI\__construct(), ilTestQuestionPoolSelectorExplorer\__construct(), ilForumMoveTopicsExplorer\__construct(), ilWorkspaceExplorerGUI\__construct(), ilMediaPoolExplorerGUI\__construct(), ilMaterialExplorer\__construct(), and ilAdministrationExplorerGUI\__construct().
Here is the caller graph for this function:| ilTreeExplorerGUI::toggleExplorerNodeState | ( | ) |
Should be called by an ilCtrl-enabled command class if a tree node toggle action should be processed.
Definition at line 440 of file class.ilTreeExplorerGUI.php.
References ILIAS\LTI\ToolProvider\$key, exit, and ILIAS\Repository\int().
Here is the call graph for this function:
|
protected |
Definition at line 40 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 36 of file class.ilTreeExplorerGUI.php.
Referenced by ilRepositoryExplorerGUI\getChildsOfNode(), ilPersonalSkillExplorerGUI\getChildsOfNode(), ilSkillTemplateTreeExplorerGUI\getChildsOfNode(), ilAdministrationExplorerGUI\sortChilds(), ilRepositoryExplorerGUI\sortChilds(), and ilRepositorySelectorExplorerGUI\sortChilds().
|
protected |
Definition at line 29 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 28 of file class.ilTreeExplorerGUI.php.
Referenced by ilAdministrationExplorerGUI\getNodeContent(), ilWorkspaceExplorerGUI\getNodeContent(), ilRepositoryExplorerGUI\getNodeContent(), ilRepositorySelectorExplorerGUI\getNodeContent(), ilPersonalSkillExplorerGUI\getNodeContent(), ilSkillTemplateTreeExplorerGUI\getNodeContent(), ilLMEditorExplorerGUI\getNodeIconAlt(), ilAdministrationExplorerGUI\getNodeIconAlt(), ilRepositoryExplorerGUI\getNodeIconAlt(), ilRepositorySelectorExplorerGUI\getNodeIconAlt(), ilPersonalSkillExplorerGUI\getNodeIconAlt(), and ilSkillTemplateTreeExplorerGUI\getNodeIconAlt().
|
protected |
Definition at line 32 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 33 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 38 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 37 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 41 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 39 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 30 of file class.ilTreeExplorerGUI.php.
Referenced by ilPersonalSkillExplorerGUI\__construct(), ilLMExplorerGUI\__construct(), ilSkillTemplateTreeExplorerGUI\__construct(), ilPublicSectionExplorerGUI\__construct(), ilMaterialExplorer\__construct(), ilAdministrationExplorerGUI\__construct(), ilRepositoryExplorerGUI\getTopNodeForRefId(), getTree(), ilTaxonomyClassificationExplorerGUI\getTreeComponent(), ilConditionSelector\isNodeVisible(), and ilRepositoryExplorerGUI\isNodeVisible().
|
protected |
Definition at line 31 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 35 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 34 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 42 of file class.ilTreeExplorerGUI.php.