ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
BaseFactory.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
29 
30 abstract class BaseFactory
31 {
32  use InputHelper;
33 
37 
38  public function __construct(
39  UIFactory $ui_factory,
40  PresenterInterface $presenter,
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)
getInputInCondition(ElementInterface $element, ElementInterface $context_element, SlotIdentifier $conditional_slot)
This describes inputs that can be used in forms.
Definition: FormInput.php:32
__construct(UIFactory $ui_factory, PresenterInterface $presenter, ConstraintDictionary $constraint_dictionary)
Definition: BaseFactory.php:38