ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
◀ 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
DictionaryInitiator.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Structure\Dictionaries
;
22
23
use
ILIAS\MetaData\Structure\Dictionaries\Tags\TagInterface
;
24
use
ILIAS\MetaData\Elements\Structure\StructureElementInterface
;
25
use
ILIAS\MetaData\Paths\FactoryInterface
as
PathFactoryInterface
;
26
use
ILIAS\MetaData\Structure\Dictionaries\Tags\TagAssignmentInterface
;
27
use
ILIAS\MetaData\Structure\Dictionaries\Tags\TagAssignment
;
28
use
ILIAS\MetaData\Elements\Structure\StructureSetInterface
;
29
use
ILIAS\MetaData\Paths\Navigator\NavigatorFactoryInterface
;
30
31
abstract
class
DictionaryInitiator
32
{
33
protected
PathFactoryInterface
$path_factory
;
34
39
protected
NavigatorFactoryInterface
$navigator_factory
;
40
41
private
StructureSetInterface
$structure
;
42
46
private
array
$tag_assignments
= [];
47
48
public
function
__construct
(
49
PathFactoryInterface
$path_factory,
50
NavigatorFactoryInterface
$navigator_factory,
51
StructureSetInterface
$structure
52
) {
53
$this->path_factory =
$path_factory
;
54
$this->navigator_factory =
$navigator_factory
;
55
$this->structure =
$structure
;
56
}
57
63
final
protected
function
addTagToElement
(
64
TagInterface
$tag,
65
StructureElementInterface
$element
66
): void {
67
$this->tag_assignments[] =
new
TagAssignment
(
68
$this->path_factory->toElement($element),
69
$tag
70
);
71
}
72
76
final
protected
function
getTagAssignments
(): \
Generator
77
{
78
yield
from
$this->tag_assignments
;
79
}
80
81
final
protected
function
getStructure
():
StructureSetInterface
82
{
83
return
$this->structure
;
84
}
85
}
FactoryInterface
ILIAS\MetaData\Structure\Dictionaries\DictionaryInitiator\$path_factory
PathFactoryInterface $path_factory
Definition:
DictionaryInitiator.php:33
ILIAS\MetaData\Structure\Dictionaries\Tags\TagInterface
Definition:
TagInterface.php:23
ILIAS\MetaData\Structure\Dictionaries\DictionaryInitiator\getStructure
getStructure()
Definition:
DictionaryInitiator.php:81
ILIAS\MetaData\Structure\Dictionaries\DictionaryInitiator\getTagAssignments
getTagAssignments()
Definition:
DictionaryInitiator.php:76
ILIAS\MetaData\Structure\Dictionaries\DictionaryInitiator\$tag_assignments
array $tag_assignments
Definition:
DictionaryInitiator.php:46
ILIAS\MetaData\Structure\Dictionaries\DictionaryInitiator\$structure
StructureSetInterface $structure
Definition:
DictionaryInitiator.php:41
StructureElementInterface
ILIAS\MetaData\Elements\Structure\StructureSetInterface
Definition:
StructureSetInterface.php:25
ILIAS\MetaData\Structure\Dictionaries
Definition:
Dictionary.php:21
ILIAS\MetaData\Structure\Dictionaries\DictionaryInitiator
Definition:
DictionaryInitiator.php:31
TagAssignmentInterface
ILIAS\MetaData\Structure\Dictionaries\Tags\TagAssignment
Definition:
TagAssignment.php:25
TagAssignment
ILIAS\MetaData\Structure\Dictionaries\DictionaryInitiator\__construct
__construct(PathFactoryInterface $path_factory, NavigatorFactoryInterface $navigator_factory, StructureSetInterface $structure)
Definition:
DictionaryInitiator.php:48
TagInterface
NavigatorFactoryInterface
ILIAS\MetaData\Paths\Navigator\NavigatorFactoryInterface
Definition:
NavigatorFactoryInterface.php:27
ILIAS\MetaData\Structure\Dictionaries\DictionaryInitiator\addTagToElement
addTagToElement(TagInterface $tag, StructureElementInterface $element)
When indices are added, the tag applies only to copies of the element with those indices (beginning w...
Definition:
DictionaryInitiator.php:63
ILIAS\MetaData\Structure\Dictionaries\DictionaryInitiator\$navigator_factory
NavigatorFactoryInterface $navigator_factory
only needed to instantiate dictionaries, which is done in inheritors
Definition:
DictionaryInitiator.php:39
Generator
ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from
from(FileStream $stream)
Definition:
GdImageToStreamTrait.php:48
StructureSetInterface
ILIAS\MetaData\Elements\Structure\StructureElementInterface
Definition:
StructureElementInterface.php:26
components
ILIAS
MetaData
classes
Structure
Dictionaries
DictionaryInitiator.php
Generated on Sun Apr 6 2025 23:03:45 for ILIAS by
1.8.13 (using
Doxyfile
)