ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
DataFactory.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Elements\Data
;
22
23
use
ILIAS\MetaData\Vocabularies\Slots\Identifier
as SlotIdentifier;
24
25
class
DataFactory
implements
DataFactoryInterface
26
{
27
public
function
data
(
28
Type
$type,
29
string
$value,
30
SlotIdentifier $vocabulary_slot =
SlotIdentifier::NULL
31
):
DataInterface
{
32
return
new
Data
($type, $value, $vocabulary_slot);
33
}
34
35
public
function
null
():
DataInterface
36
{
37
return
new
NullData
();
38
}
39
}
ILIAS\MetaData\Elements\Data\DataFactory
Definition:
DataFactory.php:26
ILIAS\MetaData\Elements\Data\DataFactory\data
data(Type $type, string $value, SlotIdentifier $vocabulary_slot=SlotIdentifier::NULL)
Definition:
DataFactory.php:27
ILIAS\MetaData\Elements\Data\Data
Definition:
Data.php:26
ILIAS\MetaData\Elements\Data\NullData
Definition:
NullData.php:27
return
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
delivery_method.php:21
ILIAS\MetaData\Elements\Data\DataFactoryInterface
Definition:
DataFactoryInterface.php:26
ILIAS\MetaData\Elements\Data\DataInterface
Definition:
DataInterface.php:26
ILIAS\Data\Description\NULL
@ NULL
Definition:
ValueType.php:30
ILIAS\MetaData\Elements\Data
Definition:
Data.php:21
ILIAS\MetaData\Elements\Data\Type
Type
Definition:
Type.php:24
ILIAS\MetaData\Vocabularies\Slots\Identifier
Identifier
Definition:
Identifier.php:24
components
ILIAS
MetaData
classes
Elements
Data
DataFactory.php
Generated on Sat Oct 18 2025 23:03:27 for ILIAS by
1.9.4 (using
Doxyfile
)