ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
Node.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
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 file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This describes a Tree Node.
Definition: Node.php:30
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: AsyncNode.php:21
withLink(URI $link)
Create a new node object with an URI that will be added to the UI.
The scope of this class is split ilias-conform URI&#39;s into components.
Definition: URI.php:34
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.