ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ 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
}
Data
ILIAS\Data\Description\NULL
Definition:
ValueType.php:30
ILIAS\MetaData\Elements\Data
Definition:
Data.php:21
ILIAS\MetaData\Elements\Data\DataFactory\data
data(Type $type, string $value, SlotIdentifier $vocabulary_slot=SlotIdentifier::NULL)
Definition:
DataFactory.php:27
ILIAS\MetaData\Elements\Data\NullData
Definition:
NullData.php:26
ILIAS\MetaData\Elements\Data\DataInterface
Definition:
DataInterface.php:25
ILIAS\MetaData\Elements\Data\DataFactory\null
null()
Definition:
DataFactory.php:35
Factory
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\MetaData\Elements\Data\Type
Type
Definition:
Type.php:23
Identifier
ILIAS\MetaData\Elements\Data\DataFactoryInterface
Definition:
DataFactoryInterface.php:25
components
ILIAS
MetaData
classes
Elements
Data
DataFactory.php
Generated on Wed Sep 3 2025 23:03:28 for ILIAS by
1.8.13 (using
Doxyfile
)