ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
NullElement.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\MetaData\Elements;
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 = '')
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 }
addScaffoldsToSubElements(ScaffoldProviderInterface $scaffold_provider)
Scaffolds are used to mark where elements could potentially be created.
Definition: NullElement.php:58
addScaffoldToSubElements(ScaffoldProviderInterface $scaffold_provider, string $name)
If possible, adds a scaffold with the given name to this element&#39;s sub-elements, and returns it...
Definition: NullElement.php:62
isMarked()
Elements can be marked to be created, updated or deleted.
Definition: NullElement.php:44
mark(MarkerFactoryInterface $factory, Action $action, string $data_value='')
Definition: NullElement.php:54