ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
LangFactory.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\WithoutConditions
;
22
23
use
ILIAS\UI\Component\Input\Container\Form\FormInput
;
24
use
ILIAS\MetaData\Elements\ElementInterface
;
25
use
ILIAS\MetaData\DataHelper\DataHelperInterface
;
26
use
ILIAS\UI\Component\Input\Field\Factory
as
UIFactory
;
27
use
ILIAS\MetaData\Editor\Presenter\PresenterInterface
;
28
use
ILIAS\MetaData\Repository\Validation\Dictionary\DictionaryInterface
as
ConstraintDictionary
;
29
30
class
LangFactory
extends
BaseFactory
31
{
32
protected
DataHelperInterface
$data_helper
;
33
34
public
function
__construct
(
35
UIFactory
$ui_factory
,
36
PresenterInterface
$presenter
,
37
ConstraintDictionary
$constraint_dictionary
,
38
DataHelperInterface
$data_helper
39
) {
40
parent::__construct
($ui_factory, $presenter, $constraint_dictionary);
41
$this->data_helper =
$data_helper
;
42
}
43
44
protected
function
rawInput
(
45
ElementInterface
$element,
46
ElementInterface
$context_element,
47
string
$condition_value =
''
48
):
FormInput
{
49
$langs = [];
50
foreach
($this->data_helper->getAllLanguages() as
$key
) {
51
$langs[
$key
] = $this->presenter->data()->language(
$key
);
52
}
53
return
$this->ui_factory->select(
'placeholder'
, $langs);
54
}
55
}
ILIAS\UI\Component\Input\Field\Factory
This is what a factory for input fields looks like.
Definition:
Factory.php:28
ILIAS\MetaData\Editor\Full\Services\Inputs\WithoutConditions\LangFactory\__construct
__construct(UIFactory $ui_factory, PresenterInterface $presenter, ConstraintDictionary $constraint_dictionary, DataHelperInterface $data_helper)
Definition:
LangFactory.php:34
DictionaryInterface
FormInput
Factory
DataHelperInterface
ILIAS\MetaData\DataHelper\DataHelperInterface
Definition:
DataHelperInterface.php:23
ILIAS\MetaData\Editor\Full\Services\Inputs\WithoutConditions\LangFactory\$data_helper
DataHelperInterface $data_helper
Definition:
LangFactory.php:32
ILIAS\MetaData\Editor\Full\Services\Inputs\WithoutConditions\BaseFactory
Definition:
BaseFactory.php:33
ILIAS\MetaData\Repository\Validation\Data\__construct
__construct(VocabulariesInterface $vocabularies)
Definition:
VocabularyBridge.php:31
ILIAS\MetaData\Elements\ElementInterface
Definition:
ElementInterface.php:28
ILIAS\MetaData\Editor\Full\Services\Inputs\WithoutConditions\LangFactory\rawInput
rawInput(ElementInterface $element, ElementInterface $context_element, string $condition_value='')
Definition:
LangFactory.php:44
ILIAS\LTI\ToolProvider\$key
string $key
Consumer key/client ID value.
Definition:
System.php:193
ILIAS\MetaData\Editor\Full\Services\Inputs\WithoutConditions\LangFactory
Definition:
LangFactory.php:30
ILIAS\MetaData\Editor\Full\Services\Inputs\WithoutConditions\BaseFactory\$ui_factory
UIFactory $ui_factory
Definition:
BaseFactory.php:35
ElementInterface
PresenterInterface
ILIAS\UI\Component\Input\Container\Form\FormInput
This describes inputs that can be used in forms.
Definition:
FormInput.php:31
ILIAS\MetaData\Editor\Full\Services\Inputs\WithoutConditions\BaseFactory\$presenter
PresenterInterface $presenter
Definition:
BaseFactory.php:36
ILIAS\MetaData\Editor\Full\Services\Inputs\WithoutConditions\BaseFactory\$constraint_dictionary
ConstraintDictionary $constraint_dictionary
Definition:
BaseFactory.php:37
ILIAS\MetaData\Editor\Full\Services\Inputs\WithoutConditions
Definition:
BaseFactory.php:21
Services
MetaData
classes
Editor
Full
Services
Inputs
WithoutConditions
LangFactory.php
Generated on Wed Sep 10 2025 14:11:40 for ILIAS by
1.8.13 (using
Doxyfile
)