ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
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 Fri Apr 11 2025 23:03:37 for ILIAS by
1.8.13 (using
Doxyfile
)