ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
BaseConditionFactory.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Editor\Full\Services\Inputs\Conditions
;
22
23
use
ILIAS\UI\Component\Input\Container\Form\FormInput
;
24
use
ILIAS\MetaData\Elements\ElementInterface
;
25
use
ILIAS\MetaData\Editor\Full\Services\Inputs\WithoutConditions\FactoryWithoutConditionTypesService
;
26
use
ILIAS\UI\Component\Input\Field\Factory
as
UIFactory
;
27
use
ILIAS\MetaData\Repository\Validation\Dictionary\DictionaryInterface
as
ConstraintDictionary
;
28
use
ILIAS\MetaData\Editor\Presenter\PresenterInterface
;
29
use
ILIAS\MetaData\Vocabularies\Slots\Identifier
as
SlotIdentifier
;
30
use
ILIAS\MetaData\Editor\Full\Services\Inputs\WithoutConditions\InputHelper
;
31
32
abstract
class
BaseConditionFactory
33
{
34
use
InputHelper
;
35
36
protected
UIFactory
$ui_factory
;
37
protected
PresenterInterface
$presenter
;
38
protected
ConstraintDictionary
$constraint_dictionary
;
39
protected
FactoryWithoutConditionTypesService
$types
;
40
41
public
function
__construct
(
42
UIFactory
$ui_factory,
43
PresenterInterface
$presenter,
44
ConstraintDictionary
$constraint_dictionary,
45
FactoryWithoutConditionTypesService
$types
46
) {
47
$this->ui_factory =
$ui_factory
;
48
$this->presenter =
$presenter
;
49
$this->constraint_dictionary =
$constraint_dictionary
;
50
$this->types =
$types
;
51
}
52
53
abstract
public
function
getConditionInput
(
54
ElementInterface
$element,
55
ElementInterface
$context_element,
56
ElementInterface
$conditional_element
57
):
FormInput
;
58
59
protected
function
getInputInCondition
(
60
ElementInterface
$element,
61
ElementInterface
$context_element,
62
SlotIdentifier
$conditional_slot
63
):
FormInput
{
64
$input_factory = $this->types->factory($element->
getDefinition
()->dataType());
65
return
$input_factory->getInputInCondition(
66
$element,
67
$context_element,
68
$conditional_slot
69
);
70
}
71
}
DictionaryInterface
FactoryWithoutConditionTypesService
ILIAS\MetaData\Editor\Full\Services\Inputs\WithoutConditions\FactoryWithoutConditionTypesService
Definition:
FactoryWithoutConditionTypesService.php:32
FormInput
ILIAS\MetaData\Editor\Full\Services\Inputs\Conditions\BaseConditionFactory\__construct
__construct(UIFactory $ui_factory, PresenterInterface $presenter, ConstraintDictionary $constraint_dictionary, FactoryWithoutConditionTypesService $types)
Definition:
BaseConditionFactory.php:41
Factory
ILIAS\MetaData\Editor\Full\Services\Inputs\Conditions\BaseConditionFactory\$presenter
PresenterInterface $presenter
Definition:
BaseConditionFactory.php:37
ILIAS\MetaData\Editor\Full\Services\Inputs\Conditions\BaseConditionFactory
Definition:
BaseConditionFactory.php:32
ILIAS\MetaData\Editor\Full\Services\Inputs\Conditions\BaseConditionFactory\$ui_factory
UIFactory $ui_factory
Definition:
BaseConditionFactory.php:36
ILIAS\MetaData\Elements\ElementInterface
Definition:
ElementInterface.php:28
ILIAS\MetaData\Editor\Full\Services\Inputs\Conditions\BaseConditionFactory\getInputInCondition
getInputInCondition(ElementInterface $element, ElementInterface $context_element, SlotIdentifier $conditional_slot)
Definition:
BaseConditionFactory.php:59
ILIAS\MetaData\Editor\Full\Services\Inputs\Conditions\BaseConditionFactory\getConditionInput
getConditionInput(ElementInterface $element, ElementInterface $context_element, ElementInterface $conditional_element)
ILIAS\MetaData\Editor\Full\Services\Inputs\Conditions
Definition:
BaseConditionFactory.php:21
ILIAS\MetaData\Editor\Full\Services\Inputs\Conditions\BaseConditionFactory\$constraint_dictionary
ConstraintDictionary $constraint_dictionary
Definition:
BaseConditionFactory.php:38
InputHelper
ILIAS\MetaData\Editor\Full\Services\Inputs\Conditions\BaseConditionFactory\$types
FactoryWithoutConditionTypesService $types
Definition:
BaseConditionFactory.php:39
Factory
Identifier
InputHelper
ElementInterface
ILIAS\MetaData\Elements\Base\BaseElementInterface\getDefinition
getDefinition()
Defining properties of the metadata element.
PresenterInterface
ILIAS\UI\Component\Input\Container\Form\FormInput
This describes inputs that can be used in forms.
Definition:
FormInput.php:32
components
ILIAS
MetaData
classes
Editor
Full
Services
Inputs
Conditions
BaseConditionFactory.php
Generated on Wed Sep 3 2025 23:03:27 for ILIAS by
1.8.13 (using
Doxyfile
)