19 declare(strict_types=1);
    34     public function __construct(Entries $entries, 
URI $parent_uri, 
string $current_opened_entry_id)
    38         $this->current_node = $entries->getRootEntry();
    39         if ($current_opened_entry_id) {
    40             $this->current_node = $entries->getEntryById($current_opened_entry_id);
    44     public function getChildren($record, $environment = null): array
    49         return $this->entries->getChildrenOfEntry($record->getId());
    52     public function build(
    56     ): \ILIAS\UI\Component\Tree\Node\Node {
    60         $is_expanded = ($this->entries->isParentOfEntry($record->getId(), $this->current_node->getId())) ||
    61             ($record == $this->entries->getRootEntry());
    62         $is_highlited = $this->current_node->getId() == $record->getId();
    64         return $factory->simple($record->getTitle())
    66                        ->withExpanded($is_expanded)
    67                        ->withHighlighted($is_highlited);
    72         return $this->parent_uri->
withParameter(
'node_id', $a_node->getId());
 getNodeUri(Entry $a_node)
 
build(Node\Factory $factory, $record, $environment=null)
Build and return a Node. 
 
Tree Recursion, putting Entries into a Tree. 
 
Interface Observer  Contains several chained tasks and infos about them. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Container storing a list of UI Component Entries, can act as Iterator, countable and is serializable...
 
The scope of this class is split ilias-conform URI's into components. 
 
getChildren( $record, $environment=null)
Get a list of records (that list can also be empty). 
 
__construct(Entries $entries, URI $parent_uri, string $current_opened_entry_id)
 
withParameter(string $key, $value)
Get URI with modified parameters.