ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Explorer base GUI class. More...
Public Member Functions | |
__construct ($a_expl_id, $a_parent_obj, $a_parent_cmd) | |
Constructor. More... | |
setChildLimit ($a_val) | |
Set child limit. More... | |
getChildLimit () | |
Get child limit. More... | |
setSearchTerm ($a_val) | |
Set search term. More... | |
getSearchTerm () | |
Get search term. More... | |
setMainTemplate ($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... | |
Static Public Member Functions | |
static | getLocalExplorerJsPath () |
Get local path of explorer js. More... | |
static | getLocalJsTreeJsPath () |
Get local path of jsTree js. More... | |
static | getLocalJsTreeCssPath () |
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... | |
Protected Member Functions | |
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 () | |
Protected Attributes | |
$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 | |
$search_term = "" | |
$open_nodes = [] | |
$store | |
$parent_obj | |
$child_limit = 0 | |
$parent_cmd = '' | |
Static Protected Attributes | |
static | $js_tree_path = "./node_modules/jstree/dist/jstree.js" |
static | $js_tree_path_css = "./node_modules/jstree/dist/themes/default/style.min.css" |
static | $js_expl_path = "./Services/UIComponent/Explorer2/js/Explorer2.js" |
Private Attributes | |
$nodeOnclickEnabled | |
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, ilLinkTargetObjectExplorerGUI, ilPublicSectionExplorerGUI, ilMediaPoolExplorerGUI, ilGroupActionTargetExplorerGUI, ilMaterialExplorer, ilSCORM2004EditorExplorerGUI, and ilTestQuestionPoolSelectorExplorer.
Definition at line 71 of file class.ilExplorerBaseGUI.php.
References $_GET, $DIC, $open_nodes, and ilYuiUtil\initConnection().
ilExplorerBaseGUI::beforeRendering | ( | ) |
Before rendering.
Reimplemented in ilLMExplorerGUI, and ilPublicSectionExplorerGUI.
Definition at line 619 of file class.ilExplorerBaseGUI.php.
Referenced by getHTML(), and getNodeAsync().
ilExplorerBaseGUI::closeNode | ( | ) |
Close node.
Definition at line 577 of file class.ilExplorerBaseGUI.php.
References $_GET, $log, exit, and getNodeIdForDomNodeId().
|
static |
Create html export directories.
string | $a_target_dir | target directory |
Definition at line 177 of file class.ilExplorerBaseGUI.php.
References ilUtil\makeDirParents().
ilExplorerBaseGUI::getAjax | ( | ) |
Get ajax.
Definition at line 416 of file class.ilExplorerBaseGUI.php.
References $ajax.
Referenced by getOnLoadCode(), ilObjStudyProgrammeTreeExplorerGUI\listItemStart(), listItemStart(), and renderNode().
ilExplorerBaseGUI::getChildLimit | ( | ) |
Get child limit.
Definition at line 111 of file class.ilExplorerBaseGUI.php.
References $child_limit.
Referenced by renderChilds().
|
abstract |
Get childs of node.
string | $a_parent_id | parent node id |
Reimplemented in ilPersonalSkillExplorerGUI, ilSkillTemplateTreeExplorerGUI, ilVirtualSkillTreeExplorerGUI, ilLSTOCGUI, ilObjStudyProgrammeTreeExplorerGUI, ilAdministrationExplorerGUI, ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilTreeExplorerGUI, and ilForumExplorerGUI.
Referenced by getHTML(), nodeHasVisibleChilds(), and renderChilds().
ilExplorerBaseGUI::getContainerId | ( | ) |
Get container id.
return
Definition at line 554 of file class.ilExplorerBaseGUI.php.
References getId().
Referenced by ilObjStudyProgrammeTreeExplorerGUI\getHTML(), getHTML(), getNodeToggleOnClick(), getOnLoadCode(), and handleCommand().
ilExplorerBaseGUI::getDomNodeIdForNodeId | ( | $a_node_id | ) |
Get DOM node id for node id.
return
Reimplemented in ilVirtualSkillTreeExplorerGUI.
Definition at line 952 of file class.ilExplorerBaseGUI.php.
References getId().
Referenced by ilTreeExplorerGUI\getChildsOfNode(), getNodeToggleOnClick(), getOnLoadCode(), getSelectOnClick(), ilObjStudyProgrammeTreeExplorerGUI\listItemStart(), listItemStart(), and renderChilds().
ilExplorerBaseGUI::getHTML | ( | ) |
Get HTML.
Reimplemented in ilObjStudyProgrammeTreeExplorerGUI.
Definition at line 737 of file class.ilExplorerBaseGUI.php.
References $ctrl, $tpl, beforeRendering(), getChildsOfNode(), getContainerId(), getId(), getNodeId(), getOnLoadCode(), getRootNode(), getSkipRootNode(), init(), isNodeVisible(), listEnd(), listStart(), renderNode(), and sortChilds().
ilExplorerBaseGUI::getId | ( | ) |
Get id of explorer element.
Definition at line 374 of file class.ilExplorerBaseGUI.php.
Referenced by getContainerId(), getDomNodeIdForNodeId(), getHTML(), getNodeIdForDomNodeId(), and getOnLoadCode().
|
protected |
Definition at line 702 of file class.ilExplorerBaseGUI.php.
References isEnableDnd().
Referenced by getOnLoadCode().
|
static |
Get local path of explorer js.
Definition at line 151 of file class.ilExplorerBaseGUI.php.
References $js_expl_path.
Referenced by ilGroupUserActionProvider\getJsScripts(), and ILIAS\LearningModule\Export\LMHtmlExport\getSupplyingExportFiles().
|
static |
Get local path of jsTree js.
Definition at line 167 of file class.ilExplorerBaseGUI.php.
References $js_tree_path_css.
Referenced by ILIAS\LearningModule\Export\LMHtmlExport\getSupplyingExportFiles().
|
static |
Get local path of jsTree js.
Definition at line 159 of file class.ilExplorerBaseGUI.php.
References $js_tree_path.
Referenced by ilGroupUserActionProvider\getJsScripts(), and ILIAS\LearningModule\Export\LMHtmlExport\getSupplyingExportFiles().
ilExplorerBaseGUI::getNodeAsync | ( | ) |
Get node asynchronously.
Definition at line 593 of file class.ilExplorerBaseGUI.php.
References $_GET, beforeRendering(), exit, getNodeId(), getNodeIdForDomNodeId(), getRootNode(), renderChilds(), renderNode(), setSearchTerm(), and ilUtil\stripSlashes().
|
abstract |
Get content of a node.
mixed | $a_node | node array or object |
Reimplemented in ilForumExplorerGUI, ilLMExplorerGUI, ilPublicSectionExplorerGUI, ilLMTOCExplorerGUI, ilLSTOCGUI, ilMediaPoolExplorerGUI, ilSCORM2004EditorExplorerGUI, ilMaterialExplorer, ilAdministrationExplorerGUI, ilWorkspaceExplorerGUI, ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilPersonalSkillExplorerGUI, ilSkillTemplateTreeExplorerGUI, ilSkillTreeExplorerGUI, ilVirtualSkillTreeExplorerGUI, ilTaxonomyExplorerGUI, ilKSDocumentationExplorerGUI, ilOrgUnitExplorerGUI, ilObjStudyProgrammeTreeExplorerGUI, and ilMailExplorer.
Referenced by ilTreeExplorerGUI\matches(), and renderNode().
ilExplorerBaseGUI::getNodeHref | ( | $a_node | ) |
Get href for node.
mixed | $a_node | node object/array |
Reimplemented in ilGroupActionTargetExplorerGUI, ilLMEditorExplorerGUI, ilLMTOCExplorerGUI, ilLSTOCGUI, ilMediaPoolExplorerGUI, ilSCORM2004EditorExplorerGUI, ilMaterialExplorer, ilAdministrationExplorerGUI, ilPCFileItemFileSelectorGUI, ilPoolSelectorGUI, ilIntLinkRepItemExplorerGUI, ilLinkTargetObjectExplorerGUI, ilWorkspaceExplorerGUI, ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilPersonalSkillExplorerGUI, ilSkillSelectorGUI, ilSkillTemplateTreeExplorerGUI, ilSkillTreeExplorerGUI, ilVirtualSkillTreeExplorerGUI, ilTaxonomyExplorerGUI, ilKSDocumentationExplorerGUI, ilForumExplorerGUI, ilOrgUnitExplorerGUI, ilObjStudyProgrammeTreeExplorerGUI, and ilMailExplorer.
Definition at line 234 of file class.ilExplorerBaseGUI.php.
Referenced by renderNode().
ilExplorerBaseGUI::getNodeIcon | ( | $a_node | ) |
Get node icon path.
mixed | $a_node | node object/array |
Reimplemented in ilLMEditorExplorerGUI, ilPublicSectionExplorerGUI, ilLMTOCExplorerGUI, ilLSTOCGUI, ilMediaPoolExplorerGUI, ilOrgUnitExplorerGUI, ilSCORM2004EditorExplorerGUI, ilObjStudyProgrammeTreeExplorerGUI, ilMaterialExplorer, ilAdministrationExplorerGUI, ilWorkspaceExplorerGUI, ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilPersonalSkillExplorerGUI, ilSkillTemplateTreeExplorerGUI, ilSkillTreeExplorerGUI, ilVirtualSkillTreeExplorerGUI, ilTaxonomyExplorerGUI, ilForumExplorerGUI, and ilMailExplorer.
Definition at line 279 of file class.ilExplorerBaseGUI.php.
Referenced by renderNode().
ilExplorerBaseGUI::getNodeIconAlt | ( | $a_node | ) |
Get node icon alt attribute.
mixed | $a_node | node object/array |
Reimplemented in ilLMEditorExplorerGUI, ilLMTOCExplorerGUI, ilSCORM2004EditorExplorerGUI, ilAdministrationExplorerGUI, ilMailExplorer, ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilPersonalSkillExplorerGUI, ilSkillTemplateTreeExplorerGUI, ilVirtualSkillTreeExplorerGUI, and ilTreeExplorerGUI.
Definition at line 290 of file class.ilExplorerBaseGUI.php.
Referenced by renderNode().
|
abstract |
Get id of a node.
mixed | $a_node | node array or object |
Reimplemented in ilForumExplorerGUI, ilLSTOCGUI, ilObjStudyProgrammeTreeExplorerGUI, ilVirtualSkillTreeExplorerGUI, ilTreeExplorerGUI, and ilKSDocumentationExplorerGUI.
Referenced by getHTML(), getNodeAsync(), getNodeToggleOnClick(), getOnLoadCode(), getSelectOnClick(), isNodeOpen(), listItemStart(), nodeHasVisibleChilds(), and renderNode().
ilExplorerBaseGUI::getNodeIdForDomNodeId | ( | $a_dom_node_id | ) |
Get node id for dom node id.
return
Reimplemented in ilVirtualSkillTreeExplorerGUI.
Definition at line 963 of file class.ilExplorerBaseGUI.php.
Referenced by closeNode(), getNodeAsync(), ilObjStudyProgrammeTreeExplorerGUI\openCertainNode(), and openNode().
ilExplorerBaseGUI::getNodeOnClick | ( | $a_node | ) |
Get node onclick attribute.
mixed | $a_node | node object/array |
Reimplemented in ilGroupActionTargetExplorerGUI, ilIntLinkRepItemExplorerGUI, ilLinkTargetObjectExplorerGUI, and ilTaxonomyExplorerGUI.
Definition at line 312 of file class.ilExplorerBaseGUI.php.
References getSelectOnClick().
Referenced by renderNode().
ilExplorerBaseGUI::getNodeTarget | ( | $a_node | ) |
Get node target (frame) attribute.
mixed | $a_node | node object/array |
Definition at line 301 of file class.ilExplorerBaseGUI.php.
Referenced by renderNode().
|
finalprotected |
Get onclick attribute for node toggling.
return
Definition at line 460 of file class.ilExplorerBaseGUI.php.
References getContainerId(), getDomNodeIdForNodeId(), and getNodeId().
ilExplorerBaseGUI::getOfflineMode | ( | ) |
Get offline mode.
Definition at line 520 of file class.ilExplorerBaseGUI.php.
References $offline_mode.
Referenced by ilLMTOCExplorerGUI\__construct(), ilLMExplorerGUI\__construct(), ilLMExplorerGUI\beforeRendering(), ilLMTOCExplorerGUI\getNodeHref(), ilLMTOCExplorerGUI\getNodeIcon(), getOnLoadCode(), and ilLMTOCExplorerGUI\isNodeClickable().
ilExplorerBaseGUI::getOnLoadCode | ( | ) |
Get on load code.
return
Definition at line 643 of file class.ilExplorerBaseGUI.php.
References $config, $ctrl, $open_nodes, $url, getAjax(), getContainerId(), getDomNodeIdForNodeId(), getId(), getJSTreePlugins(), getNodeId(), getOfflineMode(), and getRootNode().
Referenced by getHTML().
|
abstract |
Get root node.
Please note that the class does not make any requirements how nodes are represented (array or object)
Reimplemented in ilLMTOCExplorerGUI, ilLSTOCGUI, ilOrgUnitExplorerGUI, ilObjStudyProgrammeTreeExplorerGUI, ilRepositoryExplorerGUI, ilSkillTemplateTreeExplorerGUI, ilVirtualSkillTreeExplorerGUI, ilKSDocumentationExplorerGUI, and ilTreeExplorerGUI.
Referenced by getHTML(), getNodeAsync(), getOnLoadCode(), isNodeOpen(), and renderNode().
ilExplorerBaseGUI::getSearchTerm | ( | ) |
Get search term.
Definition at line 131 of file class.ilExplorerBaseGUI.php.
References $search_term.
Referenced by ilTreeExplorerGUI\getChildsOfNode(), ilTreeExplorerGUI\matches(), and renderChilds().
ilExplorerBaseGUI::getSecondaryHighlightedNodes | ( | ) |
Get secondary (background) highlighted nodes.
Definition at line 436 of file class.ilExplorerBaseGUI.php.
References $sec_highl_nodes.
|
finalprotected |
Get onclick attribute for selecting radio/checkbox.
return
Definition at line 472 of file class.ilExplorerBaseGUI.php.
References getDomNodeIdForNodeId(), and getNodeId().
Referenced by getNodeOnClick().
ilExplorerBaseGUI::getSkipRootNode | ( | ) |
Get skip root node.
Definition at line 396 of file class.ilExplorerBaseGUI.php.
References $skip_root_node.
Referenced by getHTML(), and renderNode().
ilExplorerBaseGUI::handleCommand | ( | ) |
Handle explorer internal command.
Definition at line 534 of file class.ilExplorerBaseGUI.php.
References $_GET, and getContainerId().
|
static |
Init JS.
Definition at line 715 of file class.ilExplorerBaseGUI.php.
References $DIC, $tpl, and iljQueryUtil\initjQuery().
Referenced by getHTML(), ilInternalLinkGUI\getInitHTML(), ILIAS\Repository\Provider\RepositoryMainBarProvider\getStaticSubItems(), and ilObjStudyProgrammeGUI\initTreeJS().
ilExplorerBaseGUI::isEnableDnd | ( | ) |
Definition at line 1045 of file class.ilExplorerBaseGUI.php.
References $enable_dnd.
Referenced by getJSTreePlugins().
ilExplorerBaseGUI::isNodeClickable | ( | $a_node | ) |
Is node clickable?
mixed | $a_node | node object/array |
Reimplemented in ilForumMoveTopicsExplorer, ilGroupActionTargetExplorerGUI, ilPublicSectionExplorerGUI, ilLMTOCExplorerGUI, ilLSTOCGUI, ilOrgUnitExplorerGUI, ilObjStudyProgrammeTreeExplorerGUI, ilMaterialExplorer, ilAdministrationExplorerGUI, ilConditionSelector, ilPCFileItemFileSelectorGUI, ilLinkTargetObjectExplorerGUI, ilWorkspaceExplorerGUI, ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilTestQuestionPoolSelectorExplorer, ilPersonalSkillExplorerGUI, ilSkillSelectorGUI, ilSkillTreeExplorerGUI, and ilVirtualSkillTreeExplorerGUI.
Definition at line 348 of file class.ilExplorerBaseGUI.php.
Referenced by renderNode().
ilExplorerBaseGUI::isNodeHighlighted | ( | $a_node | ) |
Is node highlighted?
mixed | $a_node | node object/array |
Reimplemented in ilLMExplorerGUI, ilLMTOCExplorerGUI, ilLSTOCGUI, ilMediaPoolExplorerGUI, ilSCORM2004EditorExplorerGUI, ilAdministrationExplorerGUI, ilConditionSelector, ilWorkspaceExplorerGUI, ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilSkillTemplateTreeExplorerGUI, ilSkillTreeExplorerGUI, ilTaxonomyExplorerGUI, and ilKSDocumentationExplorerGUI.
Definition at line 337 of file class.ilExplorerBaseGUI.php.
Referenced by renderNode().
ilExplorerBaseGUI::isNodeOnclickEnabled | ( | ) |
Definition at line 1032 of file class.ilExplorerBaseGUI.php.
References $nodeOnclickEnabled.
Referenced by renderNode().
|
protected |
Get all open nodes.
return
Definition at line 629 of file class.ilExplorerBaseGUI.php.
References getNodeId(), and getRootNode().
Referenced by listItemStart().
|
protected |
Is node selectable?
mixed | $a_node | node object/array |
Reimplemented in ilForumMoveTopicsExplorer, ilOrgUnitExplorerGUI, ilWorkspaceExplorerGUI, ilRepositorySelectorExplorerGUI, and ilSkillSelectorGUI.
Definition at line 359 of file class.ilExplorerBaseGUI.php.
Referenced by renderNode().
ilExplorerBaseGUI::isNodeVisible | ( | $a_node | ) |
Is node visible?
mixed | $a_node | node object/array |
Reimplemented in ilForumMoveTopicsExplorer, ilLMTOCExplorerGUI, ilAdministrationExplorerGUI, ilConditionSelector, ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, and ilTestQuestionPoolSelectorExplorer.
Definition at line 326 of file class.ilExplorerBaseGUI.php.
Referenced by getHTML(), nodeHasVisibleChilds(), and renderChilds().
ilExplorerBaseGUI::listEnd | ( | $tpl | ) |
List end.
return
Definition at line 1023 of file class.ilExplorerBaseGUI.php.
References $tpl.
Referenced by getHTML(), and renderChilds().
ilExplorerBaseGUI::listItemEnd | ( | $tpl | ) |
List item end.
return
Definition at line 999 of file class.ilExplorerBaseGUI.php.
References $tpl.
Referenced by renderNode().
ilExplorerBaseGUI::listItemStart | ( | $tpl, | |
$a_node | |||
) |
List item start.
return
Reimplemented in ilObjStudyProgrammeTreeExplorerGUI.
Definition at line 975 of file class.ilExplorerBaseGUI.php.
References $tpl, getAjax(), getDomNodeIdForNodeId(), getNodeId(), isNodeOpen(), and nodeHasVisibleChilds().
Referenced by renderNode().
ilExplorerBaseGUI::listStart | ( | $tpl | ) |
List start.
return
Definition at line 1011 of file class.ilExplorerBaseGUI.php.
References $tpl.
Referenced by getHTML(), and renderChilds().
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
Reimplemented in ilRepositoryExplorerGUI.
Definition at line 248 of file class.ilExplorerBaseGUI.php.
References getChildsOfNode(), getNodeId(), and isNodeVisible().
Referenced by ilObjStudyProgrammeTreeExplorerGUI\listItemStart(), and listItemStart().
ilExplorerBaseGUI::openNode | ( | ) |
Open node.
Definition at line 562 of file class.ilExplorerBaseGUI.php.
References $_GET, $log, exit, and getNodeIdForDomNodeId().
|
final |
Render childs.
return
Definition at line 888 of file class.ilExplorerBaseGUI.php.
References $tpl, getChildLimit(), getChildsOfNode(), getDomNodeIdForNodeId(), getSearchTerm(), isNodeVisible(), listEnd(), listStart(), renderNode(), and sortChilds().
Referenced by getNodeAsync(), and renderNode().
ilExplorerBaseGUI::renderNode | ( | $a_node, | |
$tpl | |||
) |
Render node.
return
Definition at line 806 of file class.ilExplorerBaseGUI.php.
References $tpl, getAjax(), getNodeContent(), getNodeHref(), getNodeIcon(), getNodeIconAlt(), getNodeId(), getNodeOnClick(), getNodeTarget(), getRootNode(), getSkipRootNode(), ilUtil\img(), isNodeClickable(), isNodeHighlighted(), isNodeOnclickEnabled(), isNodeSelectable(), listItemEnd(), listItemStart(), and renderChilds().
Referenced by getHTML(), getNodeAsync(), and renderChilds().
ilExplorerBaseGUI::setAjax | ( | $a_val | ) |
Set ajax.
boolean | $a_val | ajax |
Definition at line 406 of file class.ilExplorerBaseGUI.php.
Referenced by ilConditionSelector\__construct(), ilPoolSelectorGUI\__construct(), ilRepositorySelectorExplorerGUI\__construct(), ilOrgUnitExplorerGUI\__construct(), ilVirtualSkillTreeExplorerGUI\__construct(), ilAdministrationExplorerGUI\__construct(), ilRepositoryExplorerGUI\__construct(), ilSkillTemplateTreeExplorerGUI\__construct(), ilSkillTreeExplorerGUI\__construct(), ilMediaPoolExplorerGUI\__construct(), ilMaterialExplorer\__construct(), ilSCORM2004EditorExplorerGUI\__construct(), ilLMExplorerGUI\__construct(), ilObjStudyProgrammeTreeExplorerGUI\__construct(), ilWorkspaceExplorerGUI\__construct(), ilMailExplorer\__construct(), ilForumExplorerGUI\__construct(), and ilLMExplorerGUI\beforeRendering().
ilExplorerBaseGUI::setChildLimit | ( | $a_val | ) |
Set child limit.
int | $a_val | child limit |
Definition at line 101 of file class.ilExplorerBaseGUI.php.
Referenced by ilRepositorySelectorExplorerGUI\__construct(), and ilRepositoryExplorerGUI\__construct().
ilExplorerBaseGUI::setEnableDnd | ( | $enable_dnd | ) |
Enable Drag & Drop functionality.
boolean | $enable_dnd |
Definition at line 1054 of file class.ilExplorerBaseGUI.php.
References $enable_dnd.
Referenced by ilObjStudyProgrammeTreeExplorerGUI\__construct().
ilExplorerBaseGUI::setMainTemplate | ( | $a_main_tpl = null | ) |
Set main template (that is responsible for adding js/css)
ilTemplate | null | $a_main_tpl |
Definition at line 142 of file class.ilExplorerBaseGUI.php.
ilExplorerBaseGUI::setNodeOnclickEnabled | ( | $nodeOnclickEnabled | ) |
boolean | $nodeOnclickEnabled |
Definition at line 1040 of file class.ilExplorerBaseGUI.php.
References $nodeOnclickEnabled.
Referenced by ilLSTOCGUI\__construct().
ilExplorerBaseGUI::setNodeOpen | ( | $a_id | ) |
Set node to be opened (additional custom opened node, not standard expand behaviour)
return
Definition at line 447 of file class.ilExplorerBaseGUI.php.
Referenced by ilRepositoryExplorerGUI\__construct(), ilMediaPoolExplorerGUI\__construct(), ilLMTableOfContentsExplorerGUI\__construct(), ilForumExplorerGUI\__construct(), ilPublicSectionExplorerGUI\beforeRendering(), ilKSDocumentationExplorerGUI\openNodesRecursively(), and ilTreeExplorerGUI\setPathOpen().
ilExplorerBaseGUI::setNodeSelected | ( | $a_id | ) |
Set node to be opened (additional custom opened node, not standard expand behaviour)
return
Definition at line 498 of file class.ilExplorerBaseGUI.php.
Referenced by ilPublicSectionExplorerGUI\beforeRendering(), and ilSkillSelectorGUI\setSkillSelected().
ilExplorerBaseGUI::setOfflineMode | ( | $a_val | ) |
Set offline mode.
bool | $a_val | offline mode |
Definition at line 510 of file class.ilExplorerBaseGUI.php.
Referenced by ilKSDocumentationExplorerGUI\__construct().
ilExplorerBaseGUI::setSearchTerm | ( | $a_val | ) |
Set search term.
string | $a_val | search term |
Definition at line 121 of file class.ilExplorerBaseGUI.php.
Referenced by getNodeAsync().
ilExplorerBaseGUI::setSecondaryHighlightedNodes | ( | $a_val | ) |
Set secondary (background) highlighted nodes.
array | $a_val | array of node ids |
Definition at line 426 of file class.ilExplorerBaseGUI.php.
Referenced by ilLMTOCExplorerGUI\__construct().
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 486 of file class.ilExplorerBaseGUI.php.
Referenced by ilForumMoveTopicsExplorer\__construct(), and ilTestQuestionPoolSelectorExplorer\__construct().
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 386 of file class.ilExplorerBaseGUI.php.
Referenced by ilRepositorySelectorExplorerGUI\__construct(), ilVirtualSkillTreeExplorerGUI\__construct(), ilAdministrationExplorerGUI\__construct(), ilRepositoryExplorerGUI\__construct(), ilSkillTemplateTreeExplorerGUI\__construct(), ilSkillTreeExplorerGUI\__construct(), ilMediaPoolExplorerGUI\__construct(), ilPersonalSkillExplorerGUI\__construct(), ilSkillSelectorGUI\__construct(), ilMaterialExplorer\__construct(), ilSCORM2004EditorExplorerGUI\__construct(), ilLMExplorerGUI\__construct(), ilWorkspaceExplorerGUI\__construct(), ilMailExplorer\__construct(), ilLSTOCGUI\__construct(), and ilForumExplorerGUI\__construct().
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 ilAdministrationExplorerGUI, ilRepositoryExplorerGUI, and ilRepositorySelectorExplorerGUI.
Definition at line 268 of file class.ilExplorerBaseGUI.php.
Referenced by getHTML(), and renderChilds().
|
protected |
Definition at line 38 of file class.ilExplorerBaseGUI.php.
Referenced by getAjax().
|
protected |
Definition at line 61 of file class.ilExplorerBaseGUI.php.
Referenced by getChildLimit().
|
protected |
Definition at line 26 of file class.ilExplorerBaseGUI.php.
Referenced by getHTML(), ilLMEditorExplorerGUI\getNodeHref(), ilMediaPoolExplorerGUI\getNodeHref(), ilSCORM2004EditorExplorerGUI\getNodeHref(), ilMaterialExplorer\getNodeHref(), and getOnLoadCode().
|
protected |
Definition at line 39 of file class.ilExplorerBaseGUI.php.
|
protected |
Definition at line 44 of file class.ilExplorerBaseGUI.php.
Referenced by isEnableDnd(), and setEnableDnd().
|
staticprotected |
Definition at line 36 of file class.ilExplorerBaseGUI.php.
Referenced by getLocalExplorerJsPath().
|
staticprotected |
Definition at line 33 of file class.ilExplorerBaseGUI.php.
Referenced by getLocalJsTreeJsPath().
|
staticprotected |
Definition at line 34 of file class.ilExplorerBaseGUI.php.
Referenced by getLocalJsTreeCssPath().
|
protected |
Definition at line 21 of file class.ilExplorerBaseGUI.php.
Referenced by closeNode(), and openNode().
|
private |
Definition at line 63 of file class.ilExplorerBaseGUI.php.
Referenced by isNodeOnclickEnabled(), and setNodeOnclickEnabled().
|
protected |
Definition at line 42 of file class.ilExplorerBaseGUI.php.
Referenced by getOfflineMode().
|
protected |
Definition at line 48 of file class.ilExplorerBaseGUI.php.
Referenced by __construct(), and getOnLoadCode().
|
protected |
Definition at line 66 of file class.ilExplorerBaseGUI.php.
|
protected |
Definition at line 56 of file class.ilExplorerBaseGUI.php.
Referenced by ilLMExplorerGUI\beforeRendering(), ilObjStudyProgrammeTreeExplorerGUI\getChildsOfNode(), and ilWorkspaceExplorerGUI\getNodeHref().
|
protected |
Definition at line 45 of file class.ilExplorerBaseGUI.php.
Referenced by getSearchTerm().
|
protected |
Definition at line 43 of file class.ilExplorerBaseGUI.php.
Referenced by getSecondaryHighlightedNodes().
|
protected |
Definition at line 41 of file class.ilExplorerBaseGUI.php.
Referenced by ilSkillSelectorGUI\getSelectedSkills().
|
protected |
Definition at line 40 of file class.ilExplorerBaseGUI.php.
|
protected |
Definition at line 37 of file class.ilExplorerBaseGUI.php.
Referenced by getSkipRootNode().
|
protected |
Definition at line 51 of file class.ilExplorerBaseGUI.php.
|
protected |
Definition at line 31 of file class.ilExplorerBaseGUI.php.
Referenced by getHTML(), init(), listEnd(), listItemEnd(), listItemStart(), listStart(), renderChilds(), and renderNode().