ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
NullElement.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Elements
;
22
23
use
ILIAS\MetaData\Elements\Base\NullBaseElement
;
24
use
ILIAS\MetaData\Elements\Data\DataInterface
;
25
use
ILIAS\MetaData\Elements\Data\NullData
;
26
use
ILIAS\MetaData\Elements\Markers\Action
;
27
use
ILIAS\MetaData\Elements\Markers\MarkerFactoryInterface
;
28
use
ILIAS\MetaData\Elements\Markers\MarkerInterface
;
29
use
ILIAS\MetaData\Elements\Markers\NullMarker
;
30
use
ILIAS\MetaData\Repository\Utilities\ScaffoldProviderInterface
;
31
32
class
NullElement
extends
NullBaseElement
implements
ElementInterface
33
{
34
public
function
isScaffold
(): bool
35
{
36
return
false
;
37
}
38
39
public
function
getData
():
DataInterface
40
{
41
return
new
NullData
();
42
}
43
44
public
function
isMarked
(): bool
45
{
46
return
false
;
47
}
48
49
public
function
getMarker
(): ?
MarkerInterface
50
{
51
return
new
NullMarker
();
52
}
53
54
public
function
mark
(
MarkerFactoryInterface
$factory,
Action
$action,
string
$data_value =
''
)
55
{
56
}
57
58
public
function
addScaffoldsToSubElements
(
ScaffoldProviderInterface
$scaffold_provider): void
59
{
60
}
61
62
public
function
addScaffoldToSubElements
(
ScaffoldProviderInterface
$scaffold_provider,
string
$name): ?
ElementInterface
63
{
64
return
null;
65
}
66
67
public
function
getSubElements
(): \
Generator
68
{
69
yield
from
[];
70
}
71
72
public
function
getSuperElement
(): ?
ElementInterface
73
{
74
return
null;
75
}
76
}
ILIAS\MetaData\Elements\NullElement\addScaffoldsToSubElements
addScaffoldsToSubElements(ScaffoldProviderInterface $scaffold_provider)
Scaffolds are used to mark where elements could potentially be created.
Definition:
NullElement.php:58
ILIAS\MetaData\Elements\NullElement\getData
getData()
Definition:
NullElement.php:39
ILIAS\MetaData\Elements\Markers\NullMarker
Definition:
NullMarker.php:23
DataInterface
ILIAS\MetaData\Elements\NullElement\addScaffoldToSubElements
addScaffoldToSubElements(ScaffoldProviderInterface $scaffold_provider, string $name)
If possible, adds a scaffold with the given name to this element's sub-elements, and returns it...
Definition:
NullElement.php:62
NullData
ScaffoldProviderInterface
NullBaseElement
ILIAS\MetaData\Elements\Data\NullData
Definition:
NullData.php:23
ILIAS\MetaData\Elements\Data\DataInterface
Definition:
DataInterface.php:23
MarkerFactoryInterface
ILIAS\MetaData\Elements\NullElement\getSuperElement
getSuperElement()
Definition:
NullElement.php:72
ILIAS\MetaData\Elements\NullElement\getSubElements
getSubElements()
Definition:
NullElement.php:67
ILIAS\MetaData\Elements\NullElement
Definition:
NullElement.php:32
NullMarker
ILIAS\MetaData\Elements\ElementInterface
Definition:
ElementInterface.php:28
ILIAS\MetaData\Elements\NullElement\getMarker
getMarker()
Definition:
NullElement.php:49
ILIAS\MetaData\Elements\Base\NullBaseElement
Definition:
NullBaseElement.php:27
ILIAS\MetaData\Elements
ILIAS\MetaData\Repository\Utilities\ScaffoldProviderInterface
Definition:
ScaffoldProviderInterface.php:25
Generator
ILIAS\MetaData\Elements\Markers\Action
Action
Definition:
Action.php:23
ILIAS\MetaData\Elements\NullElement\isMarked
isMarked()
Elements can be marked to be created, updated or deleted.
Definition:
NullElement.php:44
ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from
from(FileStream $stream)
Definition:
GdImageToStreamTrait.php:48
ILIAS\MetaData\Elements\Markers\MarkerFactoryInterface
Definition:
MarkerFactoryInterface.php:25
ILIAS\MetaData\Elements\NullElement\mark
mark(MarkerFactoryInterface $factory, Action $action, string $data_value='')
Definition:
NullElement.php:54
MarkerInterface
ILIAS\MetaData\Elements\NullElement\isScaffold
isScaffold()
Definition:
NullElement.php:34
ILIAS\MetaData\Elements\Markers\MarkerInterface
Definition:
MarkerInterface.php:25
Services
MetaData
classes
Elements
NullElement.php
Generated on Wed Sep 10 2025 14:11:44 for ILIAS by
1.8.13 (using
Doxyfile
)