|
ILIAS
Release_4_4_x_branch Revision 61816
|
Explorer base GUI class. More...
Inheritance diagram for ilExplorerBaseGUI:
Collaboration diagram for ilExplorerBaseGUI:Public Member Functions | |
| __construct ($a_expl_id, $a_parent_obj, $a_parent_cmd) | |
| Constructor. | |
| getRootNode () | |
| Get root node. | |
| getChildsOfNode ($a_parent_node_id) | |
| Get childs of node. | |
| getNodeContent ($a_node) | |
| Get content of a node. | |
| getNodeId ($a_node) | |
| Get id of a node. | |
| getNodeHref ($a_node) | |
| Get href for node. | |
| nodeHasVisibleChilds ($a_node) | |
| Node has childs? | |
| sortChilds ($a_childs, $a_parent_node_id) | |
| Sort childs. | |
| getNodeIcon ($a_node) | |
| Get node icon path. | |
| getNodeIconAlt ($a_node) | |
| Get node icon alt attribute. | |
| getNodeTarget ($a_node) | |
| Get node target (frame) attribute. | |
| getNodeOnClick ($a_node) | |
| Get node onclick attribute. | |
| isNodeVisible ($a_node) | |
| Is node visible? | |
| isNodeHighlighted ($a_node) | |
| Is node highlighted? | |
| isNodeClickable ($a_node) | |
| Is node clickable? | |
| getId () | |
| Get id of explorer element. | |
| setSkipRootNode ($a_val) | |
| Set skip root node. | |
| getSkipRootNode () | |
| Get skip root node. | |
| setAjax ($a_val) | |
| Set ajax. | |
| getAjax () | |
| Get ajax. | |
| setNodeOpen ($a_id) | |
| Set node to be opened (additional custom opened node, not standard expand behaviour) | |
| setSelectMode ($a_postvar, $a_multi=false) | |
| Set select mode (to deactivate, pass an empty string as postvar) | |
| setNodeSelected ($a_id) | |
| Set node to be opened (additional custom opened node, not standard expand behaviour) | |
| setOfflineMode ($a_val) | |
| Set offline mode. | |
| getOfflineMode () | |
| Get offline mode. | |
| handleCommand () | |
| Handle explorer internal command. | |
| getContainerId () | |
| Get container id. | |
| openNode () | |
| Open node. | |
| closeNode () | |
| Close node. | |
| getNodeAsync () | |
| Get node asynchronously. | |
| beforeRendering () | |
| Before rendering. | |
| getHTML () | |
| Get HTML. | |
| renderNode ($a_node, $tpl) | |
| Render node. | |
| renderChilds ($a_node_id, $tpl) | |
| Render childs. | |
| getDomNodeIdForNodeId ($a_node_id) | |
| Get DOM node id for node id. | |
| getNodeIdForDomNodeId ($a_dom_node_id) | |
| Get node id for dom node id. | |
| listItemStart ($tpl, $a_node) | |
| List item start. | |
| listItemEnd ($tpl) | |
| List item end. | |
| listStart ($tpl) | |
| List start. | |
| listEnd ($tpl) | |
| List end. | |
Static Public Member Functions | |
| static | getLocalExplorerJsPath () |
| Get local path of explorer js. | |
| static | getLocalJsTreeJsPath () |
| Get local path of jsTree js. | |
| static | createHTMLExportDirs ($a_target_dir) |
| Create html export directories. | |
Protected Member Functions | |
| getNodeToggleOnClick ($a_node) | |
| Get onclick attribute for node toggling. | |
| getSelectOnClick ($a_node) | |
| Get onclick attribute for selecting radio/checkbox. | |
Protected Attributes | |
| $skip_root_node = false | |
| $ajax = false | |
| $custom_open_nodes = array() | |
| $selected_nodes = array() | |
| $select_postvar = "" | |
| $offline_mode = false | |
Static Protected Attributes | |
| 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" |
Explorer base GUI class.
The class is supposed to work on a hierarchie of nodes that are identified by IDs. Whether nodes are represented by associative arrays or objects is not defined by this abstract class.
Definition at line 16 of file class.ilExplorerBaseGUI.php.
| ilExplorerBaseGUI::__construct | ( | $a_expl_id, | |
| $a_parent_obj, | |||
| $a_parent_cmd | |||
| ) |
Constructor.
Reimplemented in ilVirtualSkillTreeExplorerGUI, ilBookmarkBlockExplorerGUI, ilMediaPoolExplorerGUI, ilSCORM2004EditorExplorerGUI, ilBookmarkExplorerGUI, and ilMailExplorer.
Definition at line 30 of file class.ilExplorerBaseGUI.php.
| ilExplorerBaseGUI::beforeRendering | ( | ) |
Before rendering.
Reimplemented in ilLMExplorerGUI.
Definition at line 485 of file class.ilExplorerBaseGUI.php.
Referenced by getHTML(), and getNodeAsync().
Here is the caller graph for this function:| ilExplorerBaseGUI::closeNode | ( | ) |
Close node.
Definition at line 446 of file class.ilExplorerBaseGUI.php.
References $_GET, $ilLog, exit, and getNodeIdForDomNodeId().
Here is the call graph for this function:
|
static |
Create html export directories.
| string | $a_target_dir | target directory |
Definition at line 69 of file class.ilExplorerBaseGUI.php.
References ilUtil\makeDirParents().
Referenced by ilObjContentObject\exportHTML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExplorerBaseGUI::getAjax | ( | ) |
Get ajax.
Definition at line 300 of file class.ilExplorerBaseGUI.php.
References $ajax.
Referenced by getHTML(), listItemStart(), and renderNode().
Here is the caller graph for this function:
|
abstract |
Get childs of node.
| string | $a_parent_id | parent node id |
Reimplemented in ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilAdministrationExplorerGUI, ilTreeExplorerGUI, ilPersonalSkillExplorerGUI, ilVirtualSkillTreeExplorerGUI, ilOrgUnitExplorerGUI, and ilSkillTemplateTreeExplorerGUI.
Referenced by getHTML(), nodeHasVisibleChilds(), and renderChilds().
Here is the caller graph for this function:| ilExplorerBaseGUI::getContainerId | ( | ) |
Get container id.
| @return |
Definition at line 422 of file class.ilExplorerBaseGUI.php.
Referenced by getHTML(), and handleCommand().
Here is the caller graph for this function:| ilExplorerBaseGUI::getDomNodeIdForNodeId | ( | $a_node_id | ) |
Get DOM node id for node id.
| @return |
Definition at line 716 of file class.ilExplorerBaseGUI.php.
Referenced by getHTML(), getNodeToggleOnClick(), getSelectOnClick(), and listItemStart().
Here is the caller graph for this function:| ilExplorerBaseGUI::getHTML | ( | ) |
Get HTML.
Reimplemented in ilTreeExplorerGUI.
Definition at line 494 of file class.ilExplorerBaseGUI.php.
References $ilCtrl, $tpl, beforeRendering(), getAjax(), getChildsOfNode(), getContainerId(), getDomNodeIdForNodeId(), getNodeId(), getOfflineMode(), getRootNode(), getSkipRootNode(), isNodeVisible(), listEnd(), listStart(), renderNode(), and sortChilds().
Here is the call graph for this function:| ilExplorerBaseGUI::getId | ( | ) |
Get id of explorer element.
Definition at line 258 of file class.ilExplorerBaseGUI.php.
Referenced by getNodeIdForDomNodeId().
Here is the caller graph for this function:
|
static |
Get local path of explorer js.
Definition at line 51 of file class.ilExplorerBaseGUI.php.
References $js_expl_path.
Referenced by ilObjContentObject\getSupplyingExportFiles().
Here is the caller graph for this function:
|
static |
Get local path of jsTree js.
Definition at line 59 of file class.ilExplorerBaseGUI.php.
References $js_tree_path.
Referenced by ilObjContentObject\getSupplyingExportFiles().
Here is the caller graph for this function:| ilExplorerBaseGUI::getNodeAsync | ( | ) |
Get node asynchronously.
Definition at line 463 of file class.ilExplorerBaseGUI.php.
References $_GET, beforeRendering(), exit, getNodeId(), getNodeIdForDomNodeId(), getRootNode(), and renderChilds().
Here is the call graph for this function:
|
abstract |
Get content of a node.
| mixed | $a_node | node array or object |
Reimplemented in ilPersonalSkillExplorerGUI, ilVirtualSkillTreeExplorerGUI, ilRepositoryExplorerGUI, ilLMExplorerGUI, ilRepositorySelectorExplorerGUI, ilLMTOCExplorerGUI, ilSkillTemplateTreeExplorerGUI, ilAdministrationExplorerGUI, ilTaxonomyExplorerGUI, ilBookmarkExplorerGUI, ilSCORM2004EditorExplorerGUI, ilMediaPoolExplorerGUI, ilSkillTreeExplorerGUI, ilMailExplorer, and ilOrgUnitExplorerGUI.
Referenced by renderNode().
Here is the caller graph for this function:| ilExplorerBaseGUI::getNodeHref | ( | $a_node | ) |
Get href for node.
| mixed | $a_node | node object/array |
Reimplemented in ilLMTOCExplorerGUI, ilVirtualSkillTreeExplorerGUI, ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilSkillTemplateTreeExplorerGUI, ilSkillTreeExplorerGUI, ilPersonalSkillExplorerGUI, ilAdministrationExplorerGUI, ilSCORM2004EditorExplorerGUI, ilLMEditorExplorerGUI, ilBookmarkExplorerGUI, ilMediaPoolExplorerGUI, ilTaxonomyExplorerGUI, ilMailExplorer, ilOrgUnitExplorerGUI, ilBookmarkBlockExplorerGUI, ilSkillSelectorGUI, and ilBookmarkMoveExplorerGUI.
Definition at line 126 of file class.ilExplorerBaseGUI.php.
Referenced by renderNode().
Here is the caller graph for this function:| ilExplorerBaseGUI::getNodeIcon | ( | $a_node | ) |
Get node icon path.
| mixed | $a_node | node object/array |
Reimplemented in ilPersonalSkillExplorerGUI, ilVirtualSkillTreeExplorerGUI, ilRepositoryExplorerGUI, ilSkillTemplateTreeExplorerGUI, ilLMTOCExplorerGUI, ilRepositorySelectorExplorerGUI, ilTaxonomyExplorerGUI, ilSkillTreeExplorerGUI, ilAdministrationExplorerGUI, ilBookmarkExplorerGUI, ilSCORM2004EditorExplorerGUI, ilMediaPoolExplorerGUI, ilOrgUnitExplorerGUI, ilMailExplorer, and ilLMEditorExplorerGUI.
Definition at line 173 of file class.ilExplorerBaseGUI.php.
Referenced by renderNode().
Here is the caller graph for this function:| ilExplorerBaseGUI::getNodeIconAlt | ( | $a_node | ) |
Get node icon alt attribute.
| mixed | $a_node | node object/array |
Reimplemented in ilTreeExplorerGUI, ilLMTOCExplorerGUI, ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilAdministrationExplorerGUI, ilSCORM2004EditorExplorerGUI, ilBookmarkExplorerGUI, ilLMEditorExplorerGUI, and ilMailExplorer.
Definition at line 184 of file class.ilExplorerBaseGUI.php.
Referenced by renderNode().
Here is the caller graph for this function:
|
abstract |
Get id of a node.
| mixed | $a_node | node array or object |
Reimplemented in ilTreeExplorerGUI, and ilVirtualSkillTreeExplorerGUI.
Referenced by getHTML(), getNodeAsync(), getNodeToggleOnClick(), getSelectOnClick(), listItemStart(), nodeHasVisibleChilds(), and renderNode().
Here is the caller graph for this function:| ilExplorerBaseGUI::getNodeIdForDomNodeId | ( | $a_dom_node_id | ) |
Get node id for dom node id.
| @return |
Definition at line 727 of file class.ilExplorerBaseGUI.php.
References getId().
Referenced by closeNode(), getNodeAsync(), and openNode().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExplorerBaseGUI::getNodeOnClick | ( | $a_node | ) |
Get node onclick attribute.
| mixed | $a_node | node object/array |
Reimplemented in ilBookmarkBlockExplorerGUI.
Definition at line 206 of file class.ilExplorerBaseGUI.php.
References getSelectOnClick().
Referenced by renderNode().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExplorerBaseGUI::getNodeTarget | ( | $a_node | ) |
Get node target (frame) attribute.
| mixed | $a_node | node object/array |
Reimplemented in ilBookmarkBlockExplorerGUI.
Definition at line 195 of file class.ilExplorerBaseGUI.php.
Referenced by renderNode().
Here is the caller graph for this function:
|
finalprotected |
Get onclick attribute for node toggling.
| @return |
Definition at line 325 of file class.ilExplorerBaseGUI.php.
References getDomNodeIdForNodeId(), and getNodeId().
Referenced by ilBookmarkBlockExplorerGUI\getNodeOnClick().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExplorerBaseGUI::getOfflineMode | ( | ) |
Get offline mode.
Definition at line 386 of file class.ilExplorerBaseGUI.php.
References $offline_mode.
Referenced by ilLMExplorerGUI\__construct(), ilLMExplorerGUI\beforeRendering(), getHTML(), ilLMTOCExplorerGUI\getNodeHref(), ilLMTOCExplorerGUI\getNodeIcon(), and ilLMTOCExplorerGUI\isNodeClickable().
Here is the caller graph for this function:
|
abstract |
Get root node.
Please note that the class does not make any requirements how nodes are represented (array or object)
Reimplemented in ilTreeExplorerGUI, ilRepositoryExplorerGUI, ilVirtualSkillTreeExplorerGUI, ilSkillTemplateTreeExplorerGUI, and ilOrgUnitExplorerGUI.
Referenced by getHTML(), and getNodeAsync().
Here is the caller graph for this function:
|
finalprotected |
Get onclick attribute for selecting radio/checkbox.
| @return |
Definition at line 337 of file class.ilExplorerBaseGUI.php.
References getDomNodeIdForNodeId(), and getNodeId().
Referenced by getNodeOnClick().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExplorerBaseGUI::getSkipRootNode | ( | ) |
Get skip root node.
Definition at line 280 of file class.ilExplorerBaseGUI.php.
References $skip_root_node.
Referenced by getHTML().
Here is the caller graph for this function:| ilExplorerBaseGUI::handleCommand | ( | ) |
Handle explorer internal command.
Definition at line 400 of file class.ilExplorerBaseGUI.php.
References $_GET, $cmd, and getContainerId().
Here is the call graph for this function:| ilExplorerBaseGUI::isNodeClickable | ( | $a_node | ) |
Is node clickable?
| mixed | $a_node | node object/array |
Reimplemented in ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilAdministrationExplorerGUI, ilVirtualSkillTreeExplorerGUI, ilSkillTreeExplorerGUI, ilPersonalSkillExplorerGUI, ilLMTOCExplorerGUI, ilOrgUnitExplorerGUI, and ilSkillSelectorGUI.
Definition at line 243 of file class.ilExplorerBaseGUI.php.
Referenced by renderNode().
Here is the caller graph for this function:| ilExplorerBaseGUI::isNodeHighlighted | ( | $a_node | ) |
Is node highlighted?
| mixed | $a_node | node object/array |
Reimplemented in ilRepositoryExplorerGUI, ilSkillTemplateTreeExplorerGUI, ilRepositorySelectorExplorerGUI, ilSkillTreeExplorerGUI, ilAdministrationExplorerGUI, ilLMExplorerGUI, ilTaxonomyExplorerGUI, ilSCORM2004EditorExplorerGUI, ilBookmarkExplorerGUI, ilMailExplorer, ilMediaPoolExplorerGUI, ilLMTOCExplorerGUI, ilBookmarkBlockExplorerGUI, and ilBookmarkMoveExplorerGUI.
Definition at line 232 of file class.ilExplorerBaseGUI.php.
Referenced by renderNode().
Here is the caller graph for this function:| ilExplorerBaseGUI::isNodeVisible | ( | $a_node | ) |
Is node visible?
| mixed | $a_node | node object/array |
Reimplemented in ilLMTOCExplorerGUI, ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilAdministrationExplorerGUI, and ilForumMoveTopicsExplorer.
Definition at line 221 of file class.ilExplorerBaseGUI.php.
Referenced by getHTML(), nodeHasVisibleChilds(), and renderChilds().
Here is the caller graph for this function:| ilExplorerBaseGUI::listEnd | ( | $tpl | ) |
List end.
| @return |
Definition at line 782 of file class.ilExplorerBaseGUI.php.
References $tpl.
Referenced by getHTML(), and renderChilds().
Here is the caller graph for this function:| ilExplorerBaseGUI::listItemEnd | ( | $tpl | ) |
List item end.
| @return |
Definition at line 758 of file class.ilExplorerBaseGUI.php.
References $tpl.
Referenced by renderNode().
Here is the caller graph for this function:| ilExplorerBaseGUI::listItemStart | ( | $tpl, | |
| $a_node | |||
| ) |
List item start.
| @return |
Definition at line 739 of file class.ilExplorerBaseGUI.php.
References $tpl, getAjax(), getDomNodeIdForNodeId(), getNodeId(), and nodeHasVisibleChilds().
Referenced by renderNode().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExplorerBaseGUI::listStart | ( | $tpl | ) |
List start.
| @return |
Definition at line 770 of file class.ilExplorerBaseGUI.php.
References $tpl.
Referenced by getHTML(), and renderChilds().
Here is the caller graph for this function:| ilExplorerBaseGUI::nodeHasVisibleChilds | ( | $a_node | ) |
Node has childs?
Please note that this standard method may not be optimal depending on what a derived class does in isNodeVisible.
| @return |
Definition at line 140 of file class.ilExplorerBaseGUI.php.
References getChildsOfNode(), getNodeId(), and isNodeVisible().
Referenced by listItemStart().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExplorerBaseGUI::openNode | ( | ) |
Open node.
Definition at line 430 of file class.ilExplorerBaseGUI.php.
References $_GET, $ilLog, exit, and getNodeIdForDomNodeId().
Here is the call graph for this function:
|
final |
Render childs.
| @return |
Definition at line 683 of file class.ilExplorerBaseGUI.php.
References $tpl, getChildsOfNode(), isNodeVisible(), listEnd(), listStart(), renderNode(), and sortChilds().
Referenced by getNodeAsync(), and renderNode().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExplorerBaseGUI::renderNode | ( | $a_node, | |
| $tpl | |||
| ) |
Render node.
| @return |
Reimplemented in ilForumMoveTopicsExplorer.
Definition at line 603 of file class.ilExplorerBaseGUI.php.
References $tpl, getAjax(), getNodeContent(), getNodeHref(), getNodeIcon(), getNodeIconAlt(), getNodeId(), getNodeOnClick(), getNodeTarget(), ilUtil\img(), isNodeClickable(), isNodeHighlighted(), listItemEnd(), listItemStart(), and renderChilds().
Referenced by getHTML(), and renderChilds().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExplorerBaseGUI::setAjax | ( | $a_val | ) |
Set ajax.
| boolean | $a_val | ajax |
Definition at line 290 of file class.ilExplorerBaseGUI.php.
Referenced by ilMailExplorer\__construct(), ilMediaPoolExplorerGUI\__construct(), ilOrgUnitExplorerGUI\__construct(), ilSCORM2004EditorExplorerGUI\__construct(), ilBookmarkExplorerGUI\__construct(), ilSkillTreeExplorerGUI\__construct(), ilVirtualSkillTreeExplorerGUI\__construct(), ilSkillTemplateTreeExplorerGUI\__construct(), ilRepositoryExplorerGUI\__construct(), ilAdministrationExplorerGUI\__construct(), ilLMExplorerGUI\__construct(), ilRepositorySelectorExplorerGUI\__construct(), and ilLMExplorerGUI\beforeRendering().
Here is the caller graph for this function:| ilExplorerBaseGUI::setNodeOpen | ( | $a_id | ) |
Set node to be opened (additional custom opened node, not standard expand behaviour)
| @return |
Definition at line 311 of file class.ilExplorerBaseGUI.php.
Referenced by ilTreeExplorerGUI\setPathOpen().
Here is the caller graph for this function:| ilExplorerBaseGUI::setNodeSelected | ( | $a_id | ) |
Set node to be opened (additional custom opened node, not standard expand behaviour)
| @return |
Definition at line 363 of file class.ilExplorerBaseGUI.php.
| ilExplorerBaseGUI::setOfflineMode | ( | $a_val | ) |
Set offline mode.
| bool | $a_val | offline mode |
Definition at line 376 of file class.ilExplorerBaseGUI.php.
| ilExplorerBaseGUI::setSelectMode | ( | $a_postvar, | |
$a_multi = false |
|||
| ) |
Set select mode (to deactivate, pass an empty string as postvar)
| string | $a_postvar | variable used for post, a "[]" is added automatically |
| boolean | $a_multi | multi select (checkboxes) or not (radio) |
Definition at line 351 of file class.ilExplorerBaseGUI.php.
Referenced by ilForumMoveTopicsExplorer\__construct().
Here is the caller graph for this function:| ilExplorerBaseGUI::setSkipRootNode | ( | $a_val | ) |
Set skip root node.
If set to false, the top node will not be displayed.
| boolean | $a_val | skip root node |
Definition at line 270 of file class.ilExplorerBaseGUI.php.
Referenced by ilMailExplorer\__construct(), ilSkillSelectorGUI\__construct(), ilSkillTreeExplorerGUI\__construct(), ilMediaPoolExplorerGUI\__construct(), ilBookmarkExplorerGUI\__construct(), ilSCORM2004EditorExplorerGUI\__construct(), ilBookmarkBlockExplorerGUI\__construct(), ilVirtualSkillTreeExplorerGUI\__construct(), ilSkillTemplateTreeExplorerGUI\__construct(), ilPersonalSkillExplorerGUI\__construct(), ilRepositoryExplorerGUI\__construct(), ilAdministrationExplorerGUI\__construct(), ilLMExplorerGUI\__construct(), and ilRepositorySelectorExplorerGUI\__construct().
Here is the caller graph for this function:| ilExplorerBaseGUI::sortChilds | ( | $a_childs, | |
| $a_parent_node_id | |||
| ) |
Sort childs.
| array | $a_childs | array of child nodes |
| mixed | $a_parent_node | parent node |
Reimplemented in ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilAdministrationExplorerGUI, and ilOrgUnitExplorerGUI.
Definition at line 162 of file class.ilExplorerBaseGUI.php.
Referenced by getHTML(), and renderChilds().
Here is the caller graph for this function:
|
protected |
Definition at line 21 of file class.ilExplorerBaseGUI.php.
Referenced by getAjax().
|
protected |
Definition at line 22 of file class.ilExplorerBaseGUI.php.
|
staticprotected |
Definition at line 19 of file class.ilExplorerBaseGUI.php.
Referenced by getLocalExplorerJsPath().
|
staticprotected |
Definition at line 18 of file class.ilExplorerBaseGUI.php.
Referenced by getLocalJsTreeJsPath().
|
protected |
Definition at line 25 of file class.ilExplorerBaseGUI.php.
Referenced by getOfflineMode().
|
protected |
Definition at line 24 of file class.ilExplorerBaseGUI.php.
|
protected |
Definition at line 23 of file class.ilExplorerBaseGUI.php.
|
protected |
Definition at line 20 of file class.ilExplorerBaseGUI.php.
Referenced by getSkipRootNode().