ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
BaseFactory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
29use ILIAS\MetaData\Editor\Full\Components\Inputs\InputHelper;
30
31abstract class BaseFactory
32{
33 use InputHelper;
34
35 protected UIFactory $ui_factory;
37 protected ConstraintDictionary $constraint_dictionary;
38
39 public function __construct(
40 UIFactory $ui_factory,
42 ConstraintDictionary $constraint_dictionary
43 ) {
44 $this->ui_factory = $ui_factory;
45 $this->presenter = $presenter;
46 $this->constraint_dictionary = $constraint_dictionary;
47 }
48
49 abstract public function getInput(
50 ElementInterface $element,
51 ElementInterface $context_element
52 ): FormInput;
53
54 abstract public function getInputInCondition(
55 ElementInterface $element,
56 ElementInterface $context_element,
57 SlotIdentifier $conditional_slot
58 ): FormInput;
59}
getInputInCondition(ElementInterface $element, ElementInterface $context_element, SlotIdentifier $conditional_slot)
__construct(UIFactory $ui_factory, PresenterInterface $presenter, ConstraintDictionary $constraint_dictionary)
Definition: BaseFactory.php:39
getInput(ElementInterface $element, ElementInterface $context_element)
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