ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
StringFactory.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
26
class
StringFactory
extends
BaseFactory
27
{
28
protected
function
rawInput
(
29
ElementInterface
$element,
30
ElementInterface
$context_element,
31
string
$condition_value =
''
32
):
FormInput
{
33
$super_name = $element->
getSuperElement
()
34
->getDefinition()
35
->name();
36
if
($super_name ===
'description'
) {
37
return
$this->ui_factory->textarea(
'placeholder'
);
38
}
39
return
$this->ui_factory->text(
'placeholder'
);
40
}
41
}
ILIAS\MetaData\Elements\ElementInterface\getSuperElement
getSuperElement()
FormInput
ILIAS\MetaData\Editor\Full\Services\Inputs\WithoutConditions\BaseFactory
Definition:
BaseFactory.php:33
ILIAS\MetaData\Elements\ElementInterface
Definition:
ElementInterface.php:28
ILIAS\MetaData\Editor\Full\Services\Inputs\WithoutConditions\StringFactory
Definition:
StringFactory.php:26
ElementInterface
ILIAS\MetaData\Editor\Full\Services\Inputs\WithoutConditions\StringFactory\rawInput
rawInput(ElementInterface $element, ElementInterface $context_element, string $condition_value='')
Definition:
StringFactory.php:28
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
Definition:
BaseFactory.php:21
Services
MetaData
classes
Editor
Full
Services
Inputs
WithoutConditions
StringFactory.php
Generated on Wed Sep 10 2025 14:11:40 for ILIAS by
1.8.13 (using
Doxyfile
)