|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilStudyProgrammeTreeGUI ilObjStudyProgrammeTreeExplorerGUI generates the tree output for StudyProgrammes This class builds the tree with drag & drop functionality and some additional buttons which triggers bootstrap-modals. More...
Inheritance diagram for ilObjStudyProgrammeTreeExplorerGUI:
Collaboration diagram for ilObjStudyProgrammeTreeExplorerGUI:Public Member Functions | |
| __construct ($a_tree_root_id, $modal_id, $a_expl_id, $a_parent_obj, $a_parent_cmd) | |
| getNodeContent ($node) | |
| Return node element. More... | |
| getRootNode () | |
| Return root node of tree. More... | |
| getNodeIcon ($a_node) | |
| Get node icon Return custom icon of OrgUnit type if existing. More... | |
| getNodeHref ($node) | |
| Returns node link target. More... | |
| getChildsOfNode ($a_parent_node_id) | |
| Get childs of node. More... | |
| isNodeClickable ($a_node) | |
| Is node clickable? More... | |
| getNodeId ($a_node) | |
| Get id of a node. More... | |
| listItemStart ($tpl, $a_node) | |
| List item start. More... | |
| getHTML () | |
| Returns the output of the complete tree There are added some additional javascripts before output the parent::getHTML() More... | |
| closeCertainNode ($node_id) | |
| Closes certain node in the tree session The open nodes of a tree are stored in a session. More... | |
| openCertainNode ($node_id) | |
| Open certain node in the tree session The open nodes of a tree are stored in a session. More... | |
| addJsConf ($key, $value) | |
| Adds configuration to the study-programme-tree jquery plugin. More... | |
| getJsConf ($key) | |
| Returns setting of the study-programme-tree. More... | |
Public Member Functions inherited from ilExplorerBaseGUI | |
| __construct ($a_expl_id, $a_parent_obj, $a_parent_cmd) | |
| Constructor. 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... | |
Protected Member Functions | |
| getNodeTitleClasses ($node_config) | |
| Returns array with all css classes of the title node element. More... | |
| parseStudyProgrammeNodeButtons ($node, $node_config, $tpl) | |
| Generates the buttons for a study-programme node. More... | |
| parseLeafNodeButtons ($node, $node_config, $tpl) | |
| Generates the buttons for a study programme leaf. More... | |
| getNodeTemplateInstance () | |
| Factory method for a new instance of a node template. More... | |
| formatPointValue ($points) | |
| Returns formatted point value. More... | |
| getNodeButtonActionLink ($target_class, $cmd, $params, $content, $async=true) | |
| Generate link-element. More... | |
| checkAccess ($permission, $ref_id) | |
| Checks permission of current tree or certain child of it. More... | |
| checkAccessOrFail ($permission, $ref_id) | |
| Checks permission of a object and throws an exception if they are not granted. More... | |
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... | |
| getJSTreePlugins () | |
Protected Attributes | |
| $js_study_programme_path = "./Modules/StudyProgramme/templates/js/ilStudyProgramme.js" | |
| $css_study_programme_path = "./Modules/StudyProgramme/templates/css/ilStudyProgrammeTree.css" | |
| $tree_root_id | |
| $access | |
| $lng | |
| $tpl | |
| $toolbar | |
| $ctrl | |
| $modal_id | |
| $js_conf | |
| $class_configuration | |
| $node_template | |
Protected Attributes inherited from ilExplorerBaseGUI | |
| $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 | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilExplorerBaseGUI | |
| static | getLocalExplorerJsPath () |
| Get local path of explorer js. More... | |
| static | getLocalJsTreeJsPath () |
| Get local path of jsTree js. More... | |
| static | createHTMLExportDirs ($a_target_dir) |
| Create html export directories. More... | |
| static | init () |
| Init JS. More... | |
Static Protected Attributes inherited from ilExplorerBaseGUI | |
| static | $js_tree_path = "./Services/UIComponent/Explorer2/lib/jstree-v.pre1.0/jquery.jstree.js" |
| static | $js_expl_path = "./Services/UIComponent/Explorer2/js/Explorer2.js" |
Class ilStudyProgrammeTreeGUI ilObjStudyProgrammeTreeExplorerGUI generates the tree output for StudyProgrammes This class builds the tree with drag & drop functionality and some additional buttons which triggers bootstrap-modals.
Definition at line 16 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
| ilObjStudyProgrammeTreeExplorerGUI::__construct | ( | $a_tree_root_id, | |
| $modal_id, | |||
| $a_expl_id, | |||
| $a_parent_obj, | |||
| $a_parent_cmd | |||
| ) |
| $a_expl_id | |
| $a_parent_obj | |
| $a_parent_cmd | |
| $a_tree |
Definition at line 86 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $DIC, $ilCtrl, $lng, $modal_id, $tpl, checkAccess(), ilExplorerBaseGUI\setAjax(), and ilExplorerBaseGUI\setEnableDnd().
Here is the call graph for this function:| ilObjStudyProgrammeTreeExplorerGUI::addJsConf | ( | $key, | |
| $value | |||
| ) |
Adds configuration to the study-programme-tree jquery plugin.
| array | $js_conf |
Definition at line 519 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Checks permission of current tree or certain child of it.
| string | $permission | |
| null | $ref_id |
Definition at line 493 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $ref_id.
Referenced by __construct(), checkAccessOrFail(), getChildsOfNode(), and getNodeContent().
Here is the caller graph for this function:
|
protected |
Checks permission of a object and throws an exception if they are not granted.
| string | $permission | |
| null | $ref_id |
| ilException |
Definition at line 508 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $ref_id, and checkAccess().
Here is the call graph for this function:| ilObjStudyProgrammeTreeExplorerGUI::closeCertainNode | ( | $node_id | ) |
Closes certain node in the tree session The open nodes of a tree are stored in a session.
This function closes a certain node by its id.
| int | $node_id |
Definition at line 460 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Returns formatted point value.
| $points |
Definition at line 261 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
Referenced by getNodeContent().
Here is the caller graph for this function:| ilObjStudyProgrammeTreeExplorerGUI::getChildsOfNode | ( | $a_parent_node_id | ) |
Get childs of node.
| $a_parent_node_id |
@global ilAccess
Reimplemented from ilExplorerBaseGUI.
Definition at line 366 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $DIC, checkAccess(), and ilObjectFactoryWrapper\singleton().
Here is the call graph for this function:| ilObjStudyProgrammeTreeExplorerGUI::getHTML | ( | ) |
Returns the output of the complete tree There are added some additional javascripts before output the parent::getHTML()
Reimplemented from ilExplorerBaseGUI.
Definition at line 444 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References ilExplorerBaseGUI\getContainerId().
Here is the call graph for this function:| ilObjStudyProgrammeTreeExplorerGUI::getJsConf | ( | $key | ) |
Returns setting of the study-programme-tree.
| array | $js_conf |
Definition at line 528 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Generate link-element.
| $target_class | ||
| $cmd | ||
| $params | url-params send to the | |
| $content | ||
| bool | $async |
Definition at line 276 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $cmd, $params, $tpl, and getNodeTemplateInstance().
Referenced by parseLeafNodeButtons(), and parseStudyProgrammeNodeButtons().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgrammeTreeExplorerGUI::getNodeContent | ( | $node | ) |
Return node element.
| ilObjStudyProgramme | ilObject | $node |
Reimplemented from ilExplorerBaseGUI.
Definition at line 123 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $_GET, $DIC, $lng, $tpl, checkAccess(), formatPointValue(), getNodeTemplateInstance(), getNodeTitleClasses(), parseLeafNodeButtons(), and parseStudyProgrammeNodeButtons().
Here is the call graph for this function:| ilObjStudyProgrammeTreeExplorerGUI::getNodeHref | ( | $node | ) |
Returns node link target.
| mixed | $node |
Reimplemented from ilExplorerBaseGUI.
Definition at line 344 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
| ilObjStudyProgrammeTreeExplorerGUI::getNodeIcon | ( | $a_node | ) |
Get node icon Return custom icon of OrgUnit type if existing.
| array | $a_node |
Reimplemented from ilExplorerBaseGUI.
Definition at line 324 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $DIC, ilObject\_getIcon(), and ilObject\_lookupObjId().
Here is the call graph for this function:| ilObjStudyProgrammeTreeExplorerGUI::getNodeId | ( | $a_node | ) |
Get id of a node.
| mixed | $a_node | node array or object |
Reimplemented from ilExplorerBaseGUI.
Definition at line 410 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
Referenced by listItemStart().
Here is the caller graph for this function:
|
protected |
Factory method for a new instance of a node template.
Definition at line 250 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
Referenced by getNodeButtonActionLink(), and getNodeContent().
Here is the caller graph for this function:
|
protected |
Returns array with all css classes of the title node element.
| array | $node_config |
Definition at line 181 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
Referenced by getNodeContent().
Here is the caller graph for this function:| ilObjStudyProgrammeTreeExplorerGUI::getRootNode | ( | ) |
Return root node of tree.
Reimplemented from ilExplorerBaseGUI.
Definition at line 308 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References ilObjStudyProgramme\getInstanceByRefId().
Here is the call graph for this function:| ilObjStudyProgrammeTreeExplorerGUI::isNodeClickable | ( | $a_node | ) |
Is node clickable?
| mixed | $a_node | node object/array |
@global ilAccessHandler $ilAccess
Reimplemented from ilExplorerBaseGUI.
Definition at line 398 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
| ilObjStudyProgrammeTreeExplorerGUI::listItemStart | ( | $tpl, | |
| $a_node | |||
| ) |
List item start.
return
Reimplemented from ilExplorerBaseGUI.
Definition at line 423 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $tpl, ilExplorerBaseGUI\getAjax(), ilExplorerBaseGUI\getDomNodeIdForNodeId(), getNodeId(), and ilExplorerBaseGUI\nodeHasVisibleChilds().
Here is the call graph for this function:| ilObjStudyProgrammeTreeExplorerGUI::openCertainNode | ( | $node_id | ) |
Open certain node in the tree session The open nodes of a tree are stored in a session.
This function opens a certain node by its id.
| int | $node_id |
Definition at line 475 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References ilExplorerBaseGUI\getNodeIdForDomNodeId().
Here is the call graph for this function:
|
protected |
Generates the buttons for a study programme leaf.
| ilObject | $node | parsed node |
| array | $node_config | configuration of current node |
| ilTemplate | $tpl | current node template |
Definition at line 232 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $tpl, ilGlyphGUI\get(), getNodeButtonActionLink(), and ilGlyphGUI\REMOVE.
Referenced by getNodeContent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Generates the buttons for a study-programme node.
| ilObjStudyProgramme | $node | parsed node |
| array | $node_config | configuration of current node |
| ilTemplate | $tpl | current node template |
Definition at line 202 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $tpl, ilGlyphGUI\ADD, ilGlyphGUI\get(), getNodeButtonActionLink(), ilGlyphGUI\INFO, and ilGlyphGUI\REMOVE.
Referenced by getNodeContent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 33 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 68 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 18 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 52 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 62 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 17 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 37 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
Referenced by __construct(), and getNodeContent().
|
protected |
Definition at line 57 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
Referenced by __construct().
|
protected |
Definition at line 78 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 47 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 42 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
Referenced by __construct(), getNodeButtonActionLink(), getNodeContent(), listItemStart(), parseLeafNodeButtons(), and parseStudyProgrammeNodeButtons().
|
protected |
Definition at line 28 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.