ILIAS
trunk Revision v11.0_alpha-1769-g99a433fe2dc
◀ 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
StructureFactory.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Elements\Structure
;
22
23
use
ILIAS\MetaData\Structure\Definitions\DefinitionInterface
;
24
25
class
StructureFactory
26
{
27
public
function
structure
(
28
DefinitionInterface
$definition,
29
StructureElement
...$sub_elements
30
):
StructureElement
{
31
return
$this->
element
(
false
, $definition, ...$sub_elements);
32
}
33
34
public
function
root
(
35
DefinitionInterface
$definition,
36
StructureElement
...$sub_elements
37
):
StructureElementInterface
{
38
return
$this->
element
(
true
, $definition, ...$sub_elements);
39
}
40
41
protected
function
element
(
42
bool
$is_root,
43
DefinitionInterface
$definition,
44
StructureElement
...$sub_elements
45
):
StructureElement
{
46
return
new
StructureElement
(
47
$is_root,
48
$definition,
49
...$sub_elements
50
);
51
}
52
53
public
function
set
(
54
StructureElementInterface
$root
55
):
StructureSetInterface
{
56
return
new
StructureSet
($root);
57
}
58
}
ILIAS\MetaData\Elements\Structure
Definition:
NullStructureElement.php:21
ILIAS\MetaData\Structure\Definitions\DefinitionInterface
Definition:
DefinitionInterface.php:25
ILIAS\MetaData\Elements\Structure\StructureFactory\root
root(DefinitionInterface $definition, StructureElement ... $sub_elements)
Definition:
StructureFactory.php:34
ILIAS\MetaData\Elements\Structure\StructureSetInterface
Definition:
StructureSetInterface.php:25
ILIAS\MetaData\Elements\Structure\StructureFactory
Definition:
StructureFactory.php:25
ILIAS\MetaData\Elements\Structure\StructureElement
Definition:
StructureElement.php:28
ILIAS\MetaData\Elements\Structure\StructureSet
Definition:
StructureSet.php:25
DefinitionInterface
ILIAS\MetaData\Elements\Structure\StructureFactory\structure
structure(DefinitionInterface $definition, StructureElement ... $sub_elements)
Definition:
StructureFactory.php:27
ILIAS\MetaData\Elements\Structure\StructureFactory\element
element(bool $is_root, DefinitionInterface $definition, StructureElement ... $sub_elements)
Definition:
StructureFactory.php:41
ILIAS\MetaData\Elements\Structure\StructureElementInterface
Definition:
StructureElementInterface.php:26
components
ILIAS
MetaData
classes
Elements
Structure
StructureFactory.php
Generated on Sun Apr 13 2025 23:03:22 for ILIAS by
1.8.13 (using
Doxyfile
)