ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Explorer class that works on tree objects (Services/Tree) More...
Public Member Functions | |
__construct (string $a_expl_id, $a_parent_obj, string $a_parent_cmd, ilTree $a_tree, string $a_node_parameter_name="node_id") | |
getTree () | |
setOrderField (string $a_val, bool $a_numeric=false) | |
getOrderField () | |
setTypeWhiteList (array $a_val) | |
Set type white list. More... | |
getTypeWhiteList () | |
Get type white list. More... | |
setTypeBlackList (array $a_val) | |
Set type black list. More... | |
getTypeBlackList () | |
Get type black list. More... | |
setPreloadChilds (bool $a_val) | |
getPreloadChilds () | |
getSuccessorNode ( $a_node_id, string $a_type="") | |
Get successor node (currently only(!) based on lft/rgt tree values) More... | |
getChildsOfNode ($a_parent_node_id) | |
Get childs of node. More... | |
getNodeId ($a_node) | |
Get id for node. More... | |
getNodeIconAlt ($a_node) | |
Get node icon alt attribute. More... | |
getRootNode () | |
Get root node. More... | |
setRootId ($a_root) | |
setPathOpen ($a_id) | |
Set node path to be opened. More... | |
getHTML ($new=false) | |
Get HTML. More... | |
getChildren ($record, $environment=null) | |
Get a list of records (that list can also be empty). More... | |
build (\ILIAS\UI\Component\Tree\Node\Factory $factory, $record, $environment=null) | |
getTreeLabel () | |
getTreeComponent () | |
toggleExplorerNodeState () | |
Should be called by an ilCtrl-enabled command class if a tree node toggle action should be processed. More... | |
![]() | |
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) | |
![]() | |
getChildren ( $record, $environment=null) | |
Get a list of records (that list can also be empty). More... | |
build (Node\Factory $factory, $record, $environment=null) | |
Build and return a Node. More... | |
Protected Member Functions | |
preloadChilds () | |
matches ($node) | |
Does a node match a search term (or is search term empty) More... | |
getRootId () | |
createNode (\ILIAS\UI\Component\Tree\Node\Factory $factory, $record) | |
Creates at tree node, can be overwritten in derivatives if another node type should be used. More... | |
getNodeStateToggleCmdClasses ($record) | |
Should return an array of ilCtrl-enabled command classes which should be used to build the URL for the expand/collapse actions applied on a tree node. More... | |
render () | |
![]() | |
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) | |
Additional Inherited Members | |
![]() | |
static | getLocalExplorerJsPath () |
static | getLocalJsTreeJsPath () |
static | getLocalJsTreeCssPath () |
static | createHTMLExportDirs (string $a_target_dir) |
static | init (?ilGlobalTemplateInterface $a_main_tpl=null) |
![]() | |
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 = "assets/js/Explorer2.js" |
Explorer class that works on tree objects (Services/Tree)
Definition at line 28 of file class.ilTreeExplorerGUI.php.
ilTreeExplorerGUI::__construct | ( | string | $a_expl_id, |
$a_parent_obj, | |||
string | $a_parent_cmd, | ||
ilTree | $a_tree, | ||
string | $a_node_parameter_name = "node_id" |
||
) |
Definition at line 46 of file class.ilTreeExplorerGUI.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\lng(), and ILIAS\Repository\ui().
ilTreeExplorerGUI::build | ( | \ILIAS\UI\Component\Tree\Node\Factory | $factory, |
$record, | |||
$environment = null |
|||
) |
Definition at line 378 of file class.ilTreeExplorerGUI.php.
|
protected |
Creates at tree node, can be overwritten in derivatives if another node type should be used.
Reimplemented in ilForumExplorerGUI.
Definition at line 349 of file class.ilTreeExplorerGUI.php.
References ILIAS\Repository\ui().
ilTreeExplorerGUI::getChildren | ( | $record, | |
$environment = null |
|||
) |
Get a list of records (that list can also be empty).
Each record will be relayed to $this->build to retrieve a Node. Also, each record will be asked for Sub-Nodes using this function.
Implements ILIAS\UI\Component\Tree\TreeRecursion.
Reimplemented in ilForumExplorerGUI.
Definition at line 341 of file class.ilTreeExplorerGUI.php.
ilTreeExplorerGUI::getChildsOfNode | ( | $a_parent_node_id | ) |
Get childs of node.
int | string | $a_parent_node_id | parent id |
Reimplemented from ilExplorerBaseGUI.
Reimplemented in ilAdministrationExplorerGUI, ilForumExplorerGUI, ilOrgUnitExplorerGUI, ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilPersonalSkillExplorerGUI, and ilSkillTemplateTreeExplorerGUI.
Definition at line 208 of file class.ilTreeExplorerGUI.php.
References $c.
ilTreeExplorerGUI::getHTML | ( | $new = false | ) |
Get HTML.
Definition at line 328 of file class.ilTreeExplorerGUI.php.
ilTreeExplorerGUI::getNodeIconAlt | ( | $a_node | ) |
Get node icon alt attribute.
object | array | $a_node | node |
Reimplemented from ilExplorerBaseGUI.
Reimplemented in ilAdministrationExplorerGUI, ilLMEditorExplorerGUI, ilLMTOCExplorerGUI, ilMailExplorer, ilRepositoryExplorerGUI, ilRepositorySelectorExplorerGUI, ilPersonalSkillExplorerGUI, and ilSkillTemplateTreeExplorerGUI.
Definition at line 276 of file class.ilTreeExplorerGUI.php.
References $lng.
Referenced by ilTaxonomyClassificationExplorerGUI\createNode(), and ilForumExplorerGUI\createNode().
ilTreeExplorerGUI::getNodeId | ( | $a_node | ) |
Get id for node.
object | array | $a_node |
Reimplemented from ilExplorerBaseGUI.
Reimplemented in ilForumExplorerGUI.
Definition at line 266 of file class.ilTreeExplorerGUI.php.
Referenced by ilAdministrationExplorerGUI\getNodeContent(), ilLMExplorerGUI\getNodeContent(), ilMediaPoolExplorerGUI\getNodeContent(), ilRepositoryExplorerGUI\getNodeContent(), ilRepositorySelectorExplorerGUI\getNodeContent(), ilLMEditorExplorerGUI\getNodeIcon(), ilMediaPoolExplorerGUI\getNodeIcon(), ilAdministrationExplorerGUI\getNodeIconAlt(), ilRepositoryExplorerGUI\getNodeIconAlt(), ilRepositorySelectorExplorerGUI\getNodeIconAlt(), ilAdministrationExplorerGUI\isNodeHighlighted(), ilLMExplorerGUI\isNodeHighlighted(), ilRepositoryExplorerGUI\isNodeHighlighted(), and ilRepositorySelectorExplorerGUI\isNodeHighlighted().
|
protected |
Should return an array of ilCtrl-enabled command classes which should be used to build the URL for the expand/collapse actions applied on a tree node.
$record |
Reimplemented in ilForumExplorerGUI, ilMailExplorer, and ilMediaPoolExplorerGUI.
Definition at line 373 of file class.ilTreeExplorerGUI.php.
ilTreeExplorerGUI::getOrderField | ( | ) |
Definition at line 75 of file class.ilTreeExplorerGUI.php.
ilTreeExplorerGUI::getPreloadChilds | ( | ) |
Definition at line 121 of file class.ilTreeExplorerGUI.php.
|
protected |
Reimplemented in ilPersonalSkillExplorerGUI.
Definition at line 304 of file class.ilTreeExplorerGUI.php.
Referenced by ilWorkspaceExplorerGUI\isNodeHighlighted().
ilTreeExplorerGUI::getRootNode | ( | ) |
Get root node.
Reimplemented from ilExplorerBaseGUI.
Reimplemented in ilLMTOCExplorerGUI, ilMailExplorer, ilOrgUnitExplorerGUI, ilRepositoryExplorerGUI, and ilSkillTemplateTreeExplorerGUI.
Definition at line 288 of file class.ilTreeExplorerGUI.php.
Referenced by ilAdministrationExplorerGUI\getNodeContent(), ilTaxonomyClassificationExplorerGUI\getNodeContent(), ilLMExplorerGUI\getNodeContent(), ilMediaPoolExplorerGUI\getNodeContent(), ilRepositorySelectorExplorerGUI\getNodeContent(), ilTaxonomyExplorerGUI\getNodeContent(), ilLMEditorExplorerGUI\getNodeIcon(), ilMediaPoolExplorerGUI\getNodeIcon(), ilAdministrationExplorerGUI\getNodeIconAlt(), ilRepositorySelectorExplorerGUI\getNodeIconAlt(), ilAdministrationExplorerGUI\isNodeHighlighted(), ilLMExplorerGUI\isNodeHighlighted(), and ilRepositorySelectorExplorerGUI\isNodeHighlighted().
ilTreeExplorerGUI::getSuccessorNode | ( | $a_node_id, | |
string | $a_type = "" |
||
) |
Get successor node (currently only(!) based on lft/rgt tree values)
int | string | $a_node_id | node id |
Definition at line 179 of file class.ilTreeExplorerGUI.php.
ilTreeExplorerGUI::getTree | ( | ) |
Definition at line 62 of file class.ilTreeExplorerGUI.php.
References $tree.
Referenced by ilOrgUnitExplorerGUI\getRootNode(), ilRepositoryExplorerGUI\getRootNode(), and ilSkillTemplateTreeExplorerGUI\getRootNode().
ilTreeExplorerGUI::getTreeComponent | ( | ) |
Reimplemented in ilForumExplorerGUI, and ilMailExplorer.
Definition at line 419 of file class.ilTreeExplorerGUI.php.
References $data, Vendor\Package\$f, ilTree\getChilds(), ilTree\getNodeData(), ilTree\readRootId(), and ILIAS\Repository\ui().
ilTreeExplorerGUI::getTreeLabel | ( | ) |
Reimplemented in ilForumExplorerGUI, and ilMailExplorer.
Definition at line 414 of file class.ilTreeExplorerGUI.php.
ilTreeExplorerGUI::getTypeBlackList | ( | ) |
Get type black list.
Definition at line 111 of file class.ilTreeExplorerGUI.php.
ilTreeExplorerGUI::getTypeWhiteList | ( | ) |
Get type white list.
Definition at line 93 of file class.ilTreeExplorerGUI.php.
Referenced by ilIntLinkRepItemExplorerGUI\__construct(), ilConditionSelector\setRefId(), and ilRepositorySelectorExplorerGUI\sortChilds().
|
protected |
Does a node match a search term (or is search term empty)
object | array | $node |
Definition at line 251 of file class.ilTreeExplorerGUI.php.
|
protected |
Reimplemented in ilForumExplorerGUI.
Definition at line 126 of file class.ilTreeExplorerGUI.php.
References $c, and ilArrayUtil\sortArray().
|
protected |
Definition at line 465 of file class.ilTreeExplorerGUI.php.
References ILIAS\Repository\ui().
ilTreeExplorerGUI::setOrderField | ( | string | $a_val, |
bool | $a_numeric = false |
||
) |
Definition at line 67 of file class.ilTreeExplorerGUI.php.
Referenced by ilTaxonomyExplorerGUI\__construct(), ilSkillTemplateTreeExplorerGUI\__construct(), ilMailExplorer\__construct(), ilMediaPoolExplorerGUI\__construct(), and ilAdministrationExplorerGUI\__construct().
ilTreeExplorerGUI::setPathOpen | ( | $a_id | ) |
Set node path to be opened.
string | $a_id | node id |
Definition at line 315 of file class.ilTreeExplorerGUI.php.
Referenced by ilLMExplorerGUI\__construct(), ilWorkspaceExplorerGUI\__construct(), ilGroupActionTargetExplorerGUI\__construct(), and ilAdministrationExplorerGUI\__construct().
ilTreeExplorerGUI::setPreloadChilds | ( | bool | $a_val | ) |
Definition at line 116 of file class.ilTreeExplorerGUI.php.
Referenced by ilLMExplorerGUI\__construct(), ilTaxonomyExplorerGUI\__construct(), and ilForumExplorerGUI\__construct().
ilTreeExplorerGUI::setRootId | ( | $a_root | ) |
int | string | $a_root |
Definition at line 299 of file class.ilTreeExplorerGUI.php.
ilTreeExplorerGUI::setTypeBlackList | ( | array | $a_val | ) |
Set type black list.
array | $a_val | array of strings of node types that should be filtered out |
Definition at line 102 of file class.ilTreeExplorerGUI.php.
ilTreeExplorerGUI::setTypeWhiteList | ( | array | $a_val | ) |
Set type white list.
array | $a_val | array of strings of node types that should be retrieved |
Definition at line 84 of file class.ilTreeExplorerGUI.php.
Referenced by ilIntLinkRepItemExplorerGUI\__construct(), ilPCFileItemFileSelectorGUI\__construct(), ilLMTOCExplorerGUI\__construct(), ilOrgUnitExplorerGUI\__construct(), ilSkillTemplateTreeExplorerGUI\__construct(), ilForumMoveTopicsExplorer\__construct(), ilStandardGlossarySelectorGUI\__construct(), ilTestQuestionPoolSelectorExplorer\__construct(), ilWorkspaceExplorerGUI\__construct(), ilMediaPoolExplorerGUI\__construct(), and ilAdministrationExplorerGUI\__construct().
ilTreeExplorerGUI::toggleExplorerNodeState | ( | ) |
Should be called by an ilCtrl-enabled command class if a tree node toggle action should be processed.
Definition at line 447 of file class.ilTreeExplorerGUI.php.
References exit, and ILIAS\Repository\int().
|
protected |
Definition at line 42 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 38 of file class.ilTreeExplorerGUI.php.
Referenced by ilRepositoryExplorerGUI\getChildsOfNode(), ilPersonalSkillExplorerGUI\getChildsOfNode(), ilSkillTemplateTreeExplorerGUI\getChildsOfNode(), ilAdministrationExplorerGUI\sortChilds(), ilRepositoryExplorerGUI\sortChilds(), and ilRepositorySelectorExplorerGUI\sortChilds().
|
protected |
Definition at line 31 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 30 of file class.ilTreeExplorerGUI.php.
Referenced by ilAdministrationExplorerGUI\getNodeContent(), ilWorkspaceExplorerGUI\getNodeContent(), ilRepositoryExplorerGUI\getNodeContent(), ilRepositorySelectorExplorerGUI\getNodeContent(), ilPersonalSkillExplorerGUI\getNodeContent(), ilSkillTemplateTreeExplorerGUI\getNodeContent(), ilAdministrationExplorerGUI\getNodeIconAlt(), ilLMEditorExplorerGUI\getNodeIconAlt(), ilRepositoryExplorerGUI\getNodeIconAlt(), ilRepositorySelectorExplorerGUI\getNodeIconAlt(), ilPersonalSkillExplorerGUI\getNodeIconAlt(), and ilSkillTemplateTreeExplorerGUI\getNodeIconAlt().
|
protected |
Definition at line 34 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 35 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 40 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 39 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 43 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 41 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 32 of file class.ilTreeExplorerGUI.php.
Referenced by ilPersonalSkillExplorerGUI\__construct(), ilLMExplorerGUI\__construct(), ilSkillTemplateTreeExplorerGUI\__construct(), ilAdministrationExplorerGUI\__construct(), ilRepositoryExplorerGUI\getTopNodeForRefId(), getTree(), ilConditionSelector\isNodeVisible(), and ilRepositoryExplorerGUI\isNodeVisible().
|
protected |
Definition at line 33 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 37 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 36 of file class.ilTreeExplorerGUI.php.
|
protected |
Definition at line 44 of file class.ilTreeExplorerGUI.php.