ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
Vocabulary.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Vocabularies
;
22
23
use
ILIAS\MetaData\Vocabularies\Slots\Identifier
as
SlotIdentifier
;
24
25
class
Vocabulary
implements
VocabularyInterface
26
{
27
protected
SlotIdentifier
$slot
;
28
protected
Type
$type
;
29
protected
string
$id
;
30
protected
string
$source
;
31
protected
bool
$is_active
;
32
protected
bool
$allows_custom_inputs
;
33
37
protected
array
$values
;
38
39
public
function
__construct
(
40
SlotIdentifier
$slot,
41
Type
$type,
42
string
$id,
43
string
$source,
44
bool
$is_active =
true
,
45
bool
$allows_custom_inputs =
false
,
46
string
...$values
47
) {
48
$this->
slot
=
$slot
;
49
$this->
type
=
$type
;
50
$this->
id
=
$id
;
51
$this->
source
=
$source
;
52
$this->
values
=
$values
;
53
$this->is_active =
$is_active
;
54
$this->allows_custom_inputs =
$allows_custom_inputs
;
55
}
56
57
public
function
slot
():
SlotIdentifier
58
{
59
return
$this->slot
;
60
}
61
62
public
function
type
():
Type
63
{
64
return
$this->type
;
65
}
66
67
public
function
id
(): string
68
{
69
return
$this->id
;
70
}
71
72
public
function
source
(): string
73
{
74
return
$this->source
;
75
}
76
80
public
function
values
(): \
Generator
81
{
82
foreach
($this->
values
as $value) {
83
yield $value;
84
}
85
}
86
87
public
function
isActive
(): bool
88
{
89
return
$this->is_active
;
90
}
91
92
public
function
allowsCustomInputs
(): bool
93
{
94
return
$this->allows_custom_inputs
;
95
}
96
}
ILIAS\MetaData\Vocabularies\Vocabulary\type
type()
Definition:
Vocabulary.php:62
ILIAS\MetaData\Vocabularies\Vocabulary\slot
slot()
Definition:
Vocabulary.php:57
ILIAS\MetaData\Vocabularies\Vocabulary\allowsCustomInputs
allowsCustomInputs()
Definition:
Vocabulary.php:92
ILIAS\MetaData\Vocabularies
ILIAS\MetaData\Vocabularies\Vocabulary\$is_active
bool $is_active
Definition:
Vocabulary.php:31
ILIAS\MetaData\Vocabularies\Vocabulary\$allows_custom_inputs
bool $allows_custom_inputs
Definition:
Vocabulary.php:32
ILIAS\MetaData\Vocabularies\Vocabulary\__construct
__construct(SlotIdentifier $slot, Type $type, string $id, string $source, bool $is_active=true, bool $allows_custom_inputs=false, string ... $values)
Definition:
Vocabulary.php:39
ILIAS\MetaData\Vocabularies\Vocabulary\source
source()
Definition:
Vocabulary.php:72
ILIAS\MetaData\Vocabularies\Vocabulary\$source
string $source
Definition:
Vocabulary.php:30
ILIAS\MetaData\Vocabularies\Vocabulary\$values
array $values
Definition:
Vocabulary.php:37
ILIAS\MetaData\Vocabularies\Vocabulary\$slot
SlotIdentifier $slot
Definition:
Vocabulary.php:27
ILIAS\MetaData\Vocabularies\VocabularyInterface
Definition:
VocabularyInterface.php:25
ILIAS\MetaData\Vocabularies\Vocabulary\$type
Type $type
Definition:
Vocabulary.php:28
ILIAS\MetaData\Vocabularies\Vocabulary\id
id()
Definition:
Vocabulary.php:67
Identifier
Generator
ILIAS\MetaData\Vocabularies\Vocabulary\isActive
isActive()
Definition:
Vocabulary.php:87
ILIAS\MetaData\Vocabularies\Type
Type
Definition:
Type.php:23
ILIAS\MetaData\Vocabularies\Vocabulary\values
values()
Definition:
Vocabulary.php:80
ILIAS\MetaData\Vocabularies\Vocabulary\$id
string $id
Definition:
Vocabulary.php:29
ILIAS\MetaData\Vocabularies\Vocabulary
Definition:
Vocabulary.php:25
components
ILIAS
MetaData
classes
Vocabularies
Vocabulary.php
Generated on Sun Aug 31 2025 23:03:24 for ILIAS by
1.8.13 (using
Doxyfile
)