ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 = ''): 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 
76  public function getSuperElement(): ?ElementInterface
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
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:66
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
unmark()
Removes markers from this element, and recursively from all sub-elements.
Definition: NullElement.php:58
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