ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
NullElement.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
31
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 = ''): void
55 {
56 }
57
58 public function unmark(): void
59 {
60 }
61
62 public function addScaffoldsToSubElements(ScaffoldProviderInterface $scaffold_provider): void
63 {
64 }
65
66 public function addScaffoldToSubElements(ScaffoldProviderInterface $scaffold_provider, string $name): ?ElementInterface
67 {
68 return null;
69 }
70
71 public function getSubElements(): \Generator
72 {
73 yield from [];
74 }
75
77 {
78 return null;
79 }
80}
addScaffoldsToSubElements(ScaffoldProviderInterface $scaffold_provider)
Scaffolds are used to mark where elements could potentially be created.
Definition: NullElement.php:62
isMarked()
Elements can be marked to be created, updated or deleted.
Definition: NullElement.php:44
unmark()
Removes markers from this element, and recursively from all sub-elements.
Definition: NullElement.php:58
mark(MarkerFactoryInterface $factory, Action $action, string $data_value='')
Definition: NullElement.php:54
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:66