ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Node.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
30interface 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}
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
A component is the most general form of an entity in the UI.
Definition: Component.php:28
This describes a Tree Node.
Definition: Node.php:31
withLink(URI $link)
Create a new node object with an URI that will be added to the UI.
isExpanded()
Should this Node be expanded on loading?
withExpanded(bool $expanded)
Set $expanded to true to have this node expanded on loading.
getSubnodes()
Get all Nodes under this one.
getLabel()
Get the label of this Node.
isHighlighted()
Should this Node be highlighted on loading?
withAdditionalSubnode(Node $node)
Add a Node under this one.
withHighlighted(bool $expanded)
Set $highlighted to true to have this node highlighted on loading.
getLink()
Get the URI object that is added as link in the UI.