ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
BaseFactory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
29
30abstract class BaseFactory
31{
32 use InputHelper;
33
34 protected UIFactory $ui_factory;
36 protected ConstraintDictionary $constraint_dictionary;
37
38 public function __construct(
39 UIFactory $ui_factory,
41 ConstraintDictionary $constraint_dictionary
42 ) {
43 $this->ui_factory = $ui_factory;
44 $this->presenter = $presenter;
45 $this->constraint_dictionary = $constraint_dictionary;
46 }
47
48 abstract public function getInput(
49 ElementInterface $element,
50 ElementInterface $context_element
51 ): FormInput;
52
53 abstract public function getInputInCondition(
54 ElementInterface $element,
55 ElementInterface $context_element,
56 SlotIdentifier $conditional_slot
57 ): FormInput;
58}
getInput(ElementInterface $element, ElementInterface $context_element)
__construct(UIFactory $ui_factory, PresenterInterface $presenter, ConstraintDictionary $constraint_dictionary)
Definition: BaseFactory.php:38
getInputInCondition(ElementInterface $element, ElementInterface $context_element, SlotIdentifier $conditional_slot)
This describes inputs that can be used in forms.
Definition: FormInput.php:33
This is what a factory for input fields looks like.
Definition: Factory.php:31