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
27
28class Factory implements VC\Factory
29{
31
33 {
34 $this->signal_generator = $signal_generator;
35 }
36
37 public function mode(array $labelled_actions, string $aria_label): Mode
38 {
39 return new Mode($labelled_actions, $aria_label);
40 }
41
42 public function section(Button $previous_action, Component $button, Button $next_action): Section
43 {
44 return new Section($previous_action, $button, $next_action);
45 }
46
47
48 public function sortation(array $options, string $selected): Sortation
49 {
50 return new Sortation($options, $selected, $this->signal_generator);
51 }
52
53 public function pagination(): Pagination
54 {
55 return new Pagination($this->signal_generator);
56 }
57}
sortation(array $options, string $selected)
Definition: Factory.php:48
mode(array $labelled_actions, string $aria_label)
Definition: Factory.php:37
section(Button $previous_action, Component $button, Button $next_action)
Definition: Factory.php:42
__construct(SignalGeneratorInterface $signal_generator)
Definition: Factory.php:32
This describes commonalities between standard and primary buttons.
Definition: Button.php:34
A component is the most general form of an entity in the UI.
Definition: Component.php:28
This is how the factory for UI elements looks.
Definition: Factory.php:31
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Bulky.php:21