ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
TreeRecursion.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\UI\Component\Tree;
22 
38 interface TreeRecursion
39 {
45  public function getChildren(
46  $record,
47  $environment = null
48  ): array;
49 
56  public function build(
57  Node\Factory $factory,
58  $record,
59  $environment = null
60  ): Node\Node;
61 }
build(Node\Factory $factory, $record, $environment=null)
Build and return a Node.
This describes a Tree Node.
Definition: Node.php:30
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getChildren( $record, $environment=null)
Get a list of records (that list can also be empty).
Interface for mapping data-structures to the Tree.