ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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...
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... | |
setMainTemplate (ilTemplate $a_main_tpl=null) | |
Set main template (that is responsible for adding js/css) 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 | |
$log | |
$ctrl | |
$tpl | |
$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 ($a_main_tpl=null) |
Init JS. More... | |
Static Protected Attributes inherited from ilExplorerBaseGUI | |
static | $js_tree_path = "./libs/bower/bower_components/jstree/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 87 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $DIC, $ilCtrl, $lng, $modal_id, $tpl, array, checkAccess(), ilExplorerBaseGUI\setAjax(), and ilExplorerBaseGUI\setEnableDnd().
ilObjStudyProgrammeTreeExplorerGUI::addJsConf | ( | $key, | |
$value | |||
) |
Adds configuration to the study-programme-tree jquery plugin.
array | $js_conf |
Definition at line 538 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $key.
|
protected |
Checks permission of current tree or certain child of it.
string | $permission | |
null | $ref_id |
Definition at line 510 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
Referenced by __construct(), checkAccessOrFail(), getChildsOfNode(), and getNodeContent().
|
protected |
Checks permission of a object and throws an exception if they are not granted.
string | $permission | |
null | $ref_id |
ilException |
Definition at line 526 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References checkAccess().
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 477 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Returns formatted point value.
$points |
Definition at line 268 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
Referenced by getNodeContent().
ilObjStudyProgrammeTreeExplorerGUI::getChildsOfNode | ( | $a_parent_node_id | ) |
Get childs of node.
$a_parent_node_id | ilAccess |
Definition at line 378 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $DIC, array, checkAccess(), and ilObjectFactoryWrapper\singleton().
ilObjStudyProgrammeTreeExplorerGUI::getHTML | ( | ) |
Returns the output of the complete tree There are added some additional javascripts before output the parent::getHTML()
Definition at line 460 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References ilExplorerBaseGUI\getContainerId().
ilObjStudyProgrammeTreeExplorerGUI::getJsConf | ( | $key | ) |
Returns setting of the study-programme-tree.
array | $js_conf |
Definition at line 548 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $key.
|
protected |
Generate link-element.
$target_class | ||
$cmd | ||
$params | url-params send to the | |
$content | ||
bool | $async |
Definition at line 284 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $params, $tpl, array, and getNodeTemplateInstance().
Referenced by parseLeafNodeButtons(), and parseStudyProgrammeNodeButtons().
ilObjStudyProgrammeTreeExplorerGUI::getNodeContent | ( | $node | ) |
Return node element.
ilObjStudyProgramme | ilObject | $node |
Definition at line 125 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $_GET, $DIC, $lng, $tpl, array, checkAccess(), formatPointValue(), getNodeTemplateInstance(), getNodeTitleClasses(), parseLeafNodeButtons(), and parseStudyProgrammeNodeButtons().
ilObjStudyProgrammeTreeExplorerGUI::getNodeHref | ( | $node | ) |
Returns node link target.
mixed | $node |
Definition at line 355 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
ilObjStudyProgrammeTreeExplorerGUI::getNodeIcon | ( | $a_node | ) |
Get node icon Return custom icon of OrgUnit type if existing.
array | $a_node |
Definition at line 334 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $DIC, ilObject\_getIcon(), and ilObject\_lookupObjId().
ilObjStudyProgrammeTreeExplorerGUI::getNodeId | ( | $a_node | ) |
Get id of a node.
mixed | $a_node | node array or object |
Definition at line 424 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
Referenced by listItemStart().
|
protected |
Factory method for a new instance of a node template.
Definition at line 256 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
Referenced by getNodeButtonActionLink(), and getNodeContent().
|
protected |
Returns array with all css classes of the title node element.
array | $node_config |
Definition at line 184 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References array.
Referenced by getNodeContent().
ilObjStudyProgrammeTreeExplorerGUI::getRootNode | ( | ) |
Return root node of tree.
Definition at line 317 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References ilObjStudyProgramme\getInstanceByRefId().
ilObjStudyProgrammeTreeExplorerGUI::isNodeClickable | ( | $a_node | ) |
Is node clickable?
mixed | $a_node | node object/array |
ilAccessHandler $ilAccess
Definition at line 411 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
ilObjStudyProgrammeTreeExplorerGUI::listItemStart | ( | $tpl, | |
$a_node | |||
) |
List item start.
Definition at line 438 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $tpl, ilExplorerBaseGUI\getAjax(), ilExplorerBaseGUI\getDomNodeIdForNodeId(), getNodeId(), and ilExplorerBaseGUI\nodeHasVisibleChilds().
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 492 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $id, and ilExplorerBaseGUI\getNodeIdForDomNodeId().
|
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 237 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $tpl, array, ilGlyphGUI\get(), getNodeButtonActionLink(), and ilGlyphGUI\REMOVE.
Referenced by getNodeContent().
|
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 206 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
References $tpl, ilGlyphGUI\ADD, array, ilGlyphGUI\get(), getNodeButtonActionLink(), ilGlyphGUI\INFO, and ilGlyphGUI\REMOVE.
Referenced by getNodeContent().
|
protected |
Definition at line 34 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 69 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 19 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 53 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 63 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 18 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 38 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
Referenced by __construct(), and getNodeContent().
|
protected |
Definition at line 58 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
Referenced by __construct().
|
protected |
Definition at line 79 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 48 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
|
protected |
Definition at line 43 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.
Referenced by __construct(), getNodeButtonActionLink(), getNodeContent(), listItemStart(), parseLeafNodeButtons(), and parseStudyProgrammeNodeButtons().
|
protected |
Definition at line 29 of file class.ilObjStudyProgrammeTreeExplorerGUI.php.