|
ILIAS
release_8 Revision v8.24
|
Repository explorer GUI class. More...
Inheritance diagram for ilRepositoryExplorerGUI:
Collaboration diagram for ilRepositoryExplorerGUI:Public Member Functions | |
| getRootNode () | |
| Get root node. More... | |
| getNodeContent ($a_node) | |
| Get content of a node. More... | |
| getNodeIcon ($a_node) | |
| Get node icon path. More... | |
| getNodeIconAlt ($a_node) | |
| Get node icon alt attribute. More... | |
| isNodeHighlighted ($a_node) | |
| Is node highlighted? More... | |
| getNodeHref ($a_node) | |
| Get href for node. More... | |
| isNodeVisible ($a_node) | |
| Is node visible? More... | |
| sortChilds (array $a_childs, $a_parent_node_id) | |
| Sort childs. More... | |
| nodeHasVisibleChilds ($a_node) | |
| getChildsOfNode ($a_parent_node_id) | |
| Get childs of node. More... | |
| isNodeClickable ($a_node) | |
| Is node clickable? More... | |
Public Member Functions inherited from ilTreeExplorerGUI | |
| __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... | |
Static Public Member Functions | |
| static | getTopNodeForRefId (int $ref_id) |
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) |
Protected Member Functions | |
| getParentCourseOrGroup (int $node_id) | |
Protected Member Functions inherited from ilTreeExplorerGUI | |
| 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 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" |
Repository explorer GUI class.
Definition at line 27 of file class.ilRepositoryExplorerGUI.php.
| ilRepositoryExplorerGUI::getChildsOfNode | ( | $a_parent_node_id | ) |
Get childs of node.
| int | string | $a_parent_node_id | parent id |
Reimplemented from ilTreeExplorerGUI.
Definition at line 420 of file class.ilRepositoryExplorerGUI.php.
References $c, ilTreeExplorerGUI\$childs, $rbacsystem, ilConditionHandler\_checkAllConditionsOfTarget(), ilObject\_lookupObjId(), and ilRbacSystem\checkAccess().
Here is the call graph for this function:| ilRepositoryExplorerGUI::getNodeContent | ( | $a_node | ) |
Get content of a node.
| object | array | $a_node | node array or object |
Reimplemented from ilExplorerBaseGUI.
Definition at line 107 of file class.ilRepositoryExplorerGUI.php.
References ilTreeExplorerGUI\$lng, ilSessionAppointment\_appointmentToString(), ilSessionAppointment\_lookupAppointment(), ilTreeExplorerGUI\getNodeId(), getRootNode(), and ilLanguage\txt().
Referenced by getNodeIconAlt().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRepositoryExplorerGUI::getNodeHref | ( | $a_node | ) |
Get href for node.
| object | array | $a_node |
Reimplemented from ilExplorerBaseGUI.
Definition at line 157 of file class.ilRepositoryExplorerGUI.php.
References ilExplorerBaseGUI\$ctrl, ilLink\_getStaticLink(), and ilCtrl\setParameterByClass().
Here is the call graph for this function:| ilRepositoryExplorerGUI::getNodeIcon | ( | $a_node | ) |
Get node icon path.
| object | array | $a_node |
Reimplemented from ilExplorerBaseGUI.
Definition at line 126 of file class.ilRepositoryExplorerGUI.php.
References ilObject\_getIcon(), and ilObject\_lookupObjId().
Here is the call graph for this function:| ilRepositoryExplorerGUI::getNodeIconAlt | ( | $a_node | ) |
Get node icon alt attribute.
| object | array | $a_node | node |
Reimplemented from ilTreeExplorerGUI.
Definition at line 132 of file class.ilRepositoryExplorerGUI.php.
References ilTreeExplorerGUI\$lng, getNodeContent(), ilTreeExplorerGUI\getNodeId(), getRootNode(), and ilLanguage\txt().
Here is the call graph for this function:
|
protected |
Definition at line 242 of file class.ilRepositoryExplorerGUI.php.
References $parent_node_id.
Referenced by isNodeVisible().
Here is the caller graph for this function:| ilRepositoryExplorerGUI::getRootNode | ( | ) |
Get root node.
Reimplemented from ilTreeExplorerGUI.
Definition at line 96 of file class.ilRepositoryExplorerGUI.php.
References ilTreeExplorerGUI\getTree().
Referenced by getNodeContent(), getNodeIconAlt(), and isNodeHighlighted().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 539 of file class.ilRepositoryExplorerGUI.php.
References $DIC, $path, $ref_id, ilTreeExplorerGUI\$tree, ilObject\_lookupObjId(), ilObject\_lookupType(), and ilTree\getPathId().
Referenced by ILIAS\Repository\Provider\RepositoryMainBarProvider\getStaticSubItems().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRepositoryExplorerGUI::isNodeClickable | ( | $a_node | ) |
Is node clickable?
| object | array | $a_node | node |
Reimplemented from ilExplorerBaseGUI.
Definition at line 443 of file class.ilRepositoryExplorerGUI.php.
References $db, $ilDB, $query, $rbacsystem, $res, ilConditionHandler\_checkAllConditionsOfTarget(), ilContainerReferenceAccess\_isAccessible(), ilObject\_lookupObjectId(), ilObject\_lookupObjId(), ilObjGlossary\_lookupOnline(), ilRbacSystem\checkAccess(), and ilDBConstants\FETCHMODE_OBJECT.
Here is the call graph for this function:| ilRepositoryExplorerGUI::isNodeHighlighted | ( | $a_node | ) |
Is node highlighted?
| object | array | $a_node | node |
Reimplemented from ilExplorerBaseGUI.
Definition at line 148 of file class.ilRepositoryExplorerGUI.php.
References ilTreeExplorerGUI\getNodeId(), and getRootNode().
Here is the call graph for this function:| ilRepositoryExplorerGUI::isNodeVisible | ( | $a_node | ) |
Is node visible?
| object | array | $a_node | node |
Reimplemented from ilExplorerBaseGUI.
Definition at line 208 of file class.ilRepositoryExplorerGUI.php.
References $access, $ilSetting, $settings, ilTreeExplorerGUI\$tree, ilEventItems\_getItemsOfContainer(), and getParentCourseOrGroup().
Here is the call graph for this function:| ilRepositoryExplorerGUI::nodeHasVisibleChilds | ( | $a_node | ) |
| object | array | $a_node |
Reimplemented from ilExplorerBaseGUI.
Definition at line 412 of file class.ilRepositoryExplorerGUI.php.
| ilRepositoryExplorerGUI::sortChilds | ( | array | $a_childs, |
| $a_parent_node_id | |||
| ) |
Sort childs.
| array | $a_childs | array of child nodes |
| string | $a_parent_node_id | parent node |
Reimplemented from ilExplorerBaseGUI.
Definition at line 256 of file class.ilRepositoryExplorerGUI.php.
References $access, ilTreeExplorerGUI\$childs, $obj_definition, $ref_id, ilContainerSorting\_getInstance(), ilSessionAppointment\_lookupAppointment(), ilObject\_lookupObjId(), ilObject\_lookupType(), ilObjectActivation\getItemsByItemGroup(), and ilArrayUtil\sortArray().
Here is the call graph for this function:
|
protected |
Definition at line 31 of file class.ilRepositoryExplorerGUI.php.
Referenced by isNodeVisible(), and sortChilds().
|
protected |
Definition at line 40 of file class.ilRepositoryExplorerGUI.php.
|
protected |
Definition at line 33 of file class.ilRepositoryExplorerGUI.php.
Referenced by isNodeClickable().
|
protected |
Definition at line 38 of file class.ilRepositoryExplorerGUI.php.
|
protected |
Definition at line 30 of file class.ilRepositoryExplorerGUI.php.
Referenced by sortChilds().
|
protected |
Definition at line 37 of file class.ilRepositoryExplorerGUI.php.
Referenced by getParentCourseOrGroup().
|
protected |
Definition at line 32 of file class.ilRepositoryExplorerGUI.php.
Referenced by getChildsOfNode(), and isNodeClickable().
|
protected |
Definition at line 39 of file class.ilRepositoryExplorerGUI.php.
|
protected |
Definition at line 36 of file class.ilRepositoryExplorerGUI.php.
|
protected |
Definition at line 29 of file class.ilRepositoryExplorerGUI.php.
Referenced by isNodeVisible().
|
protected |
Definition at line 41 of file class.ilRepositoryExplorerGUI.php.
|
protected |
Definition at line 35 of file class.ilRepositoryExplorerGUI.php.
|
protected |
Definition at line 34 of file class.ilRepositoryExplorerGUI.php.