ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Node.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ILIAS\Data\URI;
26 
30 interface Node extends Component, Clickable
31 {
35  public function getLabel(): string;
36 
40  public function withAdditionalSubnode(Node $node): Node;
41 
46  public function getSubnodes(): array;
47 
51  public function withExpanded(bool $expanded): Node;
52 
56  public function isExpanded(): bool;
57 
61  public function withHighlighted(bool $expanded): Node;
62 
66  public function isHighlighted(): bool;
67 
71  public function getLink(): ?URI;
72 
76  public function withLink(URI $link): Node;
77 }
getSubnodes()
Get all Nodes under this one.
isHighlighted()
Should this Node be highlighted on loading?
This describes a Tree Node.
Definition: Node.php:30
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getLink()
Get the URI object that is added as link in the UI.
withHighlighted(bool $expanded)
Set $highlighted to true to have this node highlighted on loading.
withLink(URI $link)
Create a new node object with an URI that will be added to the UI.
getLabel()
Get the label of this Node.
isExpanded()
Should this Node be expanded on loading?
withExpanded(bool $expanded)
Set $expanded to true to have this node expanded on loading.
withAdditionalSubnode(Node $node)
Add a Node under this one.