|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ilObjStudyProgrammeTreeExplorerGUI:
Collaboration diagram for ilObjStudyProgrammeTreeExplorerGUI:Public Member Functions | |
| __construct (int $tree_root_id, string $modal_id, string $expl_id, $parent_obj, string $parent_cmd) | |
| getNodeContent ($a_node) | |
| Return node element. More... | |
| getRootNode () | |
| Return root node of tree. More... | |
| getNodeIcon ($node) | |
| Get node icon path. More... | |
| getNodeHref ($node) | |
| Get href for node. More... | |
| getChildsOfNode ($a_parent_node_id) | |
| Get children of node. More... | |
| getNodeId ($a_node) | |
| Get id of a node. More... | |
| listItemStart (ilTemplate $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 (string $key, string $value) | |
| Adds configuration to the study-programme-tree jquery plugin. More... | |
| getJsConf (string $key) | |
| Returns setting of the study-programme-tree. 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) | |
Protected Member Functions | |
| getNodeTitleClasses (array $node_config) | |
| Returns array with all css classes of the title node element. More... | |
| parseStudyProgrammeNodeButtons (ilObjStudyProgramme $node, array $node_config, ilTemplate $tpl) | |
| Generates the buttons for a study-programme node. More... | |
| parseLeafNodeButtons (ilObject $node, array $node_config, ilTemplate $tpl) | |
| Generates the buttons for a study programme leaf. More... | |
| getNodeTemplateInstance () | |
| Factory method for a new instance of a node template. More... | |
| formatPointValue (int $points) | |
| Returns formatted point value. More... | |
| getNodeButtonActionLink (string $target_class, string $cmd, array $params, string $content, bool $async=true) | |
| Generate link-element. More... | |
| checkAccess (string $permission, int $ref_id) | |
| Checks permission of current tree or certain child of it. More... | |
| checkAccessOrFail (string $permission, int $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... | |
| isNodeOpen ($node_id) | |
| Get all open nodes. More... | |
| getJSTreePlugins () | |
| isNodeRequested (string $a_node_id) | |
Protected Attributes | |
| ilAccessHandler | $access |
| ilLanguage | $lng |
| ilToolbarGUI | $toolbar |
| ILIAS HTTP Wrapper RequestWrapper | $request_wrapper |
| ILIAS Refinery Factory | $refinery |
| int | $tree_root_id |
| string | $modal_id |
| array | $js_conf |
| array | $class_configuration |
| default classes of the tree [key=>class_name] More... | |
| string | $js_study_programme_path = "./Modules/StudyProgramme/templates/js/ilStudyProgramme.js" |
| string | $css_study_programme_path = "./Modules/StudyProgramme/templates/css/ilStudyProgrammeTree.css" |
Protected Attributes inherited from ilExplorerBaseGUI | |
| 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 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" |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 29 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
| ilObjStudyProgrammeTreeExplorerGUI::__construct | ( | int | $tree_root_id, |
| string | $modal_id, | ||
| string | $expl_id, | ||
| $parent_obj, | |||
| string | $parent_cmd | ||
| ) |
| $parent_obj | string|object|array |
Definition at line 68 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $DIC, $modal_id, ilExplorerBaseGUI\$parent_cmd, ilExplorerBaseGUI\$parent_obj, $tree_root_id, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\access(), checkAccess(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ilExplorerBaseGUI\setAjax(), ilExplorerBaseGUI\setEnableDnd(), and ILIAS\Repository\toolbar().
Here is the call graph for this function:| ilObjStudyProgrammeTreeExplorerGUI::addJsConf | ( | string | $key, |
| string | $value | ||
| ) |
Adds configuration to the study-programme-tree jquery plugin.
Definition at line 450 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References ILIAS\LTI\ToolProvider\$key.
|
protected |
Checks permission of current tree or certain child of it.
Definition at line 432 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $ref_id, and ILIAS\Repository\access().
Referenced by __construct(), and getNodeContent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Checks permission of a object and throws an exception if they are not granted.
Definition at line 440 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $ref_id.
| 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.
| mixed | $node_id |
Definition at line 404 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Returns formatted point value.
Definition at line 254 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References ILIAS\Repository\lng().
Referenced by getNodeContent().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgrammeTreeExplorerGUI::getChildsOfNode | ( | $a_parent_node_id | ) |
Get children of node.
| string | $a_parent_node_id |
Reimplemented from ilExplorerBaseGUI.
Definition at line 328 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References 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 382 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
| ilObjStudyProgrammeTreeExplorerGUI::getJsConf | ( | string | $key | ) |
Returns setting of the study-programme-tree.
Definition at line 458 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References ILIAS\LTI\ToolProvider\$key.
|
protected |
Generate link-element.
Definition at line 262 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References ILIAS\Repository\ctrl().
Here is the call graph for this function:| ilObjStudyProgrammeTreeExplorerGUI::getNodeContent | ( | $a_node | ) |
Return node element.
| ilObjStudyProgramme | ilObject | $a_node |
Reimplemented from ilExplorerBaseGUI.
Definition at line 101 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References ilExplorerBaseGUI\$tpl, checkAccess(), formatPointValue(), ilGlobalTemplateInterface\get(), getNodeTemplateInstance(), getNodeTitleClasses(), ilGlobalTemplateInterface\parseCurrentBlock(), parseLeafNodeButtons(), parseStudyProgrammeNodeButtons(), ILIAS\Repository\refinery(), ilGlobalTemplateInterface\setCurrentBlock(), and ilGlobalTemplateInterface\setVariable().
Here is the call graph for this function:| ilObjStudyProgrammeTreeExplorerGUI::getNodeHref | ( | $a_node | ) |
Get href for node.
| object | array | $a_node |
Reimplemented from ilExplorerBaseGUI.
Definition at line 314 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $DIC, and ilObject\getRefId().
Here is the call graph for this function:| ilObjStudyProgrammeTreeExplorerGUI::getNodeIcon | ( | $a_node | ) |
Get node icon path.
| object | array | $a_node |
Reimplemented from ilExplorerBaseGUI.
Definition at line 301 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $DIC, ilObject\_getIcon(), ilObject\_lookupObjId(), and ilObject\getRefId().
Here is the call graph for this function:| ilObjStudyProgrammeTreeExplorerGUI::getNodeId | ( | $a_node | ) |
Get id of a node.
| object | array | $a_node | node array or object |
Reimplemented from ilExplorerBaseGUI.
Definition at line 350 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Factory method for a new instance of a node template.
Definition at line 246 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
Referenced by getNodeContent().
Here is the caller graph for this function:
|
protected |
Returns array with all css classes of the title node element.
Definition at line 155 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 295 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References ilObjStudyProgramme\getInstanceByRefId().
Here is the call graph for this function:| ilObjStudyProgrammeTreeExplorerGUI::listItemStart | ( | ilTemplate | $tpl, |
| $a_node | |||
| ) |
List item start.
| object | array | $a_node |
Reimplemented from ilExplorerBaseGUI.
Definition at line 358 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $tpl, and ilObjStudyProgramme\getParent().
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.
| mixed | $node_id |
Definition at line 419 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $id.
|
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 225 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $tpl, ilGlyphGUI\get(), ilObject\getRefId(), 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 177 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
Referenced by getNodeContent().
Here is the caller graph for this function:
|
protected |
Definition at line 31 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
default classes of the tree [key=>class_name]
Definition at line 52 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 63 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 47 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 62 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 32 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 42 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
Referenced by __construct().
|
protected |
Definition at line 35 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 34 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 33 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 37 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
Referenced by __construct().