ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Factory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
26class Factory implements IMenu\Factory
27{
29
30 public function __construct(SignalGeneratorInterface $signal_generator)
31 {
32 $this->signal_generator = $signal_generator;
33 }
34
35 public function drilldown(string $label, array $items): Drilldown
36 {
37 return new Drilldown($this->signal_generator, $label, $items);
38 }
39
40 public function sub(string $label, array $items): Sub
41 {
42 return new Sub($label, $items);
43 }
44}
sub(string $label, array $items)
Definition: Factory.php:40
SignalGeneratorInterface $signal_generator
Definition: Factory.php:28
__construct(SignalGeneratorInterface $signal_generator)
Definition: Factory.php:30
drilldown(string $label, array $items)
Definition: Factory.php:35
Level of Drilldown Control.
Definition: Sub.php:29
This is what a factory for input fields looks like.
Definition: Factory.php:31