ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Factory.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
25 class Factory implements ITree\Factory
26 {
27  public function __construct(
28  protected Node\Factory $node_factory,
29  ) {
30  }
31 
32  public function node(): Node\Factory
33  {
34  return $this->node_factory;
35  }
36 
37  public function expandable(string $label, ITree\TreeRecursion $recursion): Expandable
38  {
39  return new Expandable($label, $recursion);
40  }
41 }
__construct(protected Node\Factory $node_factory,)
Definition: Factory.php:27
This describes a Tree Control.
Definition: Expandable.php:28
expandable(string $label, ITree\TreeRecursion $recursion)
Definition: Factory.php:37
node()
description: purpose: > Nodes are entries in a Tree.
Definition: Factory.php:32
Interface for mapping data-structures to the Tree.