ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct ( $a_parent_obj, string $a_parent_cmd, ilLMPresentationService $service, string $a_lang="-", int $a_focus_id=0, bool $export_all_languages=false) | |
Constructor. More... | |
getRootNode () | |
setTracker (ilLMTracker $a_val) | |
getTracker () | |
setHighlightNode (int $a_val) | |
getHighlightNode () | |
isNodeHighlighted ($a_node) | |
getNodeContent ($a_node) | |
getNodeIcon ($a_node) | |
isNodeClickable ($a_node) | |
getNodeIconAlt ($a_node) | |
getNodeHref ($a_node) | |
isNodeVisible ($a_node) | |
renderLSToc (\LSTOCBuilder $toc) | |
![]() | |
__construct ( $a_parent_obj, string $a_parent_cmd, ilObjContentObject $a_lm, string $a_id="") | |
beforeRendering () | |
getNodeContent ($a_node) | |
isNodeHighlighted ($a_node) | |
![]() | |
__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) | |
![]() | |
build (Node\Factory $factory, $record, $environment=null) | |
Build and return a Node. More... | |
Protected Member Functions | |
initTreeData () | |
initVisibilityData (int $node_id) | |
renderLSTocNode (\LSTOCBuilder $toc, ?array $current_node=null) | |
![]() | |
checkLPIcon (int $a_id) | |
![]() | |
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" |
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 LM presentation (left frame) explorer GUI class
Definition at line 24 of file class.ilLMTOCExplorerGUI.php.
ilLMTOCExplorerGUI::__construct | ( | $a_parent_obj, | |
string | $a_parent_cmd, | ||
ilLMPresentationService | $service, | ||
string | $a_lang = "-" , |
||
int | $a_focus_id = 0 , |
||
bool | $export_all_languages = false |
||
) |
Constructor.
object | string | $a_parent_obj | parent gui object |
Definition at line 42 of file class.ilLMTOCExplorerGUI.php.
References $DIC, $export_all_languages, $service, ILIAS\GlobalScreen\Provider\__construct(), ilLMPresentationService\getLearningModule(), ilLMPresentationService\getLinker(), ilExplorerBaseGUI\getOfflineMode(), ilLMPresentationService\getTracker(), initTreeData(), ilExplorerBaseGUI\setSecondaryHighlightedNodes(), ilTreeExplorerGUI\setTypeWhiteList(), and ILIAS\Repository\user().
ilLMTOCExplorerGUI::getHighlightNode | ( | ) |
Definition at line 153 of file class.ilLMTOCExplorerGUI.php.
References $highlight_node.
Referenced by isNodeHighlighted().
ilLMTOCExplorerGUI::getNodeContent | ( | $a_node | ) |
array | object | $a_node |
Definition at line 172 of file class.ilLMTOCExplorerGUI.php.
References $lang, ilStructureObject\_getPresentationTitle(), ilLMPageObject\_getPresentationTitle(), ilLMObject\CHAPTER_TITLE, ilTreeExplorerGUI\getNodeId(), and getRootNode().
ilLMTOCExplorerGUI::getNodeHref | ( | $a_node | ) |
array | object | $a_node |
Definition at line 332 of file class.ilLMTOCExplorerGUI.php.
References $lang, ilPageObject\_lookupActive(), ilLMObject\getExportId(), ilExplorerBaseGUI\getOfflineMode(), and ilTreeExplorerGUI\getTree().
ilLMTOCExplorerGUI::getNodeIcon | ( | $a_node | ) |
array | object | $a_node |
Definition at line 211 of file class.ilLMTOCExplorerGUI.php.
References ilPageObject\_isScheduledActivation(), ilPageObject\_lookupActive(), ilLMExplorerGUI\checkLPIcon(), ilSetting\get(), ilUtil\getImagePath(), and ilExplorerBaseGUI\getOfflineMode().
Referenced by renderLSTocNode().
ilLMTOCExplorerGUI::getNodeIconAlt | ( | $a_node | ) |
array | object | $a_node |
Definition at line 324 of file class.ilLMTOCExplorerGUI.php.
ilLMTOCExplorerGUI::getRootNode | ( | ) |
Definition at line 128 of file class.ilLMTOCExplorerGUI.php.
References ilTreeExplorerGUI\$root_id, ilLMObject\_lookupType(), and ilTreeExplorerGUI\getTree().
Referenced by getNodeContent().
ilLMTOCExplorerGUI::getTracker | ( | ) |
Definition at line 143 of file class.ilLMTOCExplorerGUI.php.
References $tracker.
Referenced by isNodeClickable().
|
protected |
Definition at line 78 of file class.ilLMTOCExplorerGUI.php.
References $lang, and initVisibilityData().
Referenced by __construct().
|
protected |
Definition at line 97 of file class.ilLMTOCExplorerGUI.php.
Referenced by initTreeData().
ilLMTOCExplorerGUI::isNodeClickable | ( | $a_node | ) |
array | object | $a_node |
Definition at line 258 of file class.ilLMTOCExplorerGUI.php.
References $path, ilLMExplorerGUI\$user, ilPageObject\_lookupActive(), ilExplorerBaseGUI\getOfflineMode(), ilTreeExplorerGUI\getSuccessorNode(), getTracker(), and ilTreeExplorerGUI\getTree().
ilLMTOCExplorerGUI::isNodeHighlighted | ( | $a_node | ) |
object | array | $a_node |
Definition at line 161 of file class.ilLMTOCExplorerGUI.php.
References getHighlightNode().
Referenced by renderLSTocNode().
ilLMTOCExplorerGUI::isNodeVisible | ( | $a_node | ) |
array | object | $a_node |
Definition at line 374 of file class.ilLMTOCExplorerGUI.php.
ilLMTOCExplorerGUI::renderLSToc | ( | \LSTOCBuilder | $toc | ) |
Definition at line 383 of file class.ilLMTOCExplorerGUI.php.
References null, and renderLSTocNode().
|
protected |
Definition at line 388 of file class.ilLMTOCExplorerGUI.php.
References ilTreeExplorerGUI\getChildren(), getNodeIcon(), isNodeHighlighted(), LSTOCBuilder\item(), ILIAS\KioskMode\TOCBuilder\LP_COMPLETED, ILIAS\KioskMode\TOCBuilder\LP_IN_PROGRESS, LSTOCBuilder\node(), and null.
Referenced by renderLSToc().
ilLMTOCExplorerGUI::setHighlightNode | ( | int | $a_val | ) |
Definition at line 148 of file class.ilLMTOCExplorerGUI.php.
ilLMTOCExplorerGUI::setTracker | ( | ilLMTracker | $a_val | ) |
Definition at line 138 of file class.ilLMTOCExplorerGUI.php.
|
protected |
Definition at line 31 of file class.ilLMTOCExplorerGUI.php.
|
protected |
Definition at line 29 of file class.ilLMTOCExplorerGUI.php.
|
protected |
Definition at line 30 of file class.ilLMTOCExplorerGUI.php.
|
protected |
Definition at line 28 of file class.ilLMTOCExplorerGUI.php.
Referenced by __construct().
|
protected |
Definition at line 34 of file class.ilLMTOCExplorerGUI.php.
|
protected |
Definition at line 27 of file class.ilLMTOCExplorerGUI.php.
Referenced by getHighlightNode().
|
protected |
Definition at line 26 of file class.ilLMTOCExplorerGUI.php.
Referenced by getNodeContent(), getNodeHref(), and initTreeData().
|
protected |
Definition at line 33 of file class.ilLMTOCExplorerGUI.php.
|
protected |
Definition at line 32 of file class.ilLMTOCExplorerGUI.php.
|
protected |
Definition at line 35 of file class.ilLMTOCExplorerGUI.php.
Referenced by __construct().
|
protected |
Definition at line 36 of file class.ilLMTOCExplorerGUI.php.
Referenced by getTracker().