ILIAS
trunk Revision v11.0_alpha-2658-ge2404539063
◀ ilDoc Overview
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 Tue Sep 2 2025 23:03:29 for ILIAS by
1.8.13 (using
Doxyfile
)