ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
Node.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types=1);
3 
4 /* Copyright (c) 2019 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
5 
7 
9 use \ILIAS\UI\Component\Component;
10 use \ILIAS\UI\Component\Clickable;
11 
15 interface Node extends Component, Clickable
16 {
20  public function getLabel() : string;
21 
25  public function withAdditionalSubnode(Node $node) : Node;
26 
31  public function getSubnodes() : array;
32 
36  public function withExpanded(bool $expanded) : Node;
37 
41  public function isExpanded() : bool;
42 
46  public function withHighlighted(bool $expanded) : Node;
47 
51  public function isHighlighted() : bool;
52 
58  public function getLink() : ?URI;
59 
65  public function withLink(URI $link) : Node;
66 }
getSubnodes()
Get all Nodes under this one.
isHighlighted()
Should this Node be highlighted on loading?
This describes a Tree Node.
Definition: Node.php:15
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.
The scope of this class is split ilias-conform URI&#39;s into components.
Definition: URI.php:17
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.