ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
Data.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
Data
implements
DataInterface
26
{
27
protected
Type
$type
;
28
protected
string
$value
;
29
protected
SlotIdentifier
$vocabulary_slot
;
30
31
public
function
__construct
(
32
Type
$type,
33
string
$value,
34
SlotIdentifier
$vocabulary_slot
35
) {
36
$this->
type
=
$type
;
37
$this->
value
=
$value
;
38
$this->vocabulary_slot =
$vocabulary_slot
;
39
}
40
41
public
function
type
():
Type
42
{
43
return
$this->type
;
44
}
45
46
public
function
value
(): string
47
{
48
return
$this->value
;
49
}
50
51
public
function
vocabularySlot
():
SlotIdentifier
52
{
53
return
$this->vocabulary_slot
;
54
}
55
}
ILIAS\MetaData\Elements\Data\Data\vocabularySlot
vocabularySlot()
Vocabulary slot the data belongs to (important for making vocab values/strings presentable).
Definition:
Data.php:51
Data
ILIAS\MetaData\Elements\Data\Data\$value
string $value
Definition:
Data.php:28
ILIAS\MetaData\Elements\Data\Data\value
value()
Value of the data, in a format according to its type.
Definition:
Data.php:46
ILIAS\MetaData\Elements\Data
Definition:
Data.php:21
ILIAS\MetaData\Elements\Data\DataInterface
Definition:
DataInterface.php:25
ILIAS\MetaData\Elements\Data\Type
Type
Definition:
Type.php:23
Identifier
ILIAS\MetaData\Elements\Data\Data\type
type()
LOM data type.
Definition:
Data.php:41
ILIAS\MetaData\Elements\Data\Data\__construct
__construct(Type $type, string $value, SlotIdentifier $vocabulary_slot)
Definition:
Data.php:31
ILIAS\MetaData\Elements\Data\Data\$vocabulary_slot
SlotIdentifier $vocabulary_slot
Definition:
Data.php:29
ILIAS\MetaData\Elements\Data\Data\$type
Type $type
Definition:
Data.php:27
components
ILIAS
MetaData
classes
Elements
Data
Data.php
Generated on Sun Aug 31 2025 23:02:06 for ILIAS by
1.8.13 (using
Doxyfile
)