ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ILIAS\MetaData\Elements\NullElement Class Reference
+ Inheritance diagram for ILIAS\MetaData\Elements\NullElement:
+ Collaboration diagram for ILIAS\MetaData\Elements\NullElement:

Public Member Functions

 isScaffold ()
 
 getData ()
 
 isMarked ()
 Elements can be marked to be created, updated or deleted. More...
 
 getMarker ()
 
 mark (MarkerFactoryInterface $factory, Action $action, string $data_value='')
 
 addScaffoldsToSubElements (ScaffoldProviderInterface $scaffold_provider)
 Scaffolds are used to mark where elements could potentially be created. More...
 
 addScaffoldToSubElements (ScaffoldProviderInterface $scaffold_provider, string $name)
 If possible, adds a scaffold with the given name to this element's sub-elements, and returns it. More...
 
 getSubElements ()
 
 getSuperElement ()
 

Detailed Description

Definition at line 32 of file NullElement.php.

Member Function Documentation

◆ addScaffoldsToSubElements()

ILIAS\MetaData\Elements\NullElement::addScaffoldsToSubElements ( ScaffoldProviderInterface  $scaffold_provider)

Scaffolds are used to mark where elements could potentially be created.

Adds all possible scaffolds to this element's sub-elements.

Implements ILIAS\MetaData\Elements\Scaffolds\ScaffoldableInterface.

Definition at line 58 of file NullElement.php.

58  : void
59  {
60  }

◆ addScaffoldToSubElements()

ILIAS\MetaData\Elements\NullElement::addScaffoldToSubElements ( ScaffoldProviderInterface  $scaffold_provider,
string  $name 
)

If possible, adds a scaffold with the given name to this element's sub-elements, and returns it.

Returns
ElementInterface[]

Implements ILIAS\MetaData\Elements\Scaffolds\ScaffoldableInterface.

Definition at line 62 of file NullElement.php.

62  : ?ElementInterface
63  {
64  return null;
65  }

◆ getData()

ILIAS\MetaData\Elements\NullElement::getData ( )

Implements ILIAS\MetaData\Elements\ElementInterface.

Definition at line 39 of file NullElement.php.

39  : DataInterface
40  {
41  return new NullData();
42  }

◆ getMarker()

ILIAS\MetaData\Elements\NullElement::getMarker ( )

Implements ILIAS\MetaData\Elements\Markers\MarkableInterface.

Definition at line 49 of file NullElement.php.

49  : ?MarkerInterface
50  {
51  return new NullMarker();
52  }

◆ getSubElements()

ILIAS\MetaData\Elements\NullElement::getSubElements ( )
Returns
ElementInterface[]

Implements ILIAS\MetaData\Elements\ElementInterface.

Definition at line 67 of file NullElement.php.

References ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from().

67  : \Generator
68  {
69  yield from [];
70  }
+ Here is the call graph for this function:

◆ getSuperElement()

ILIAS\MetaData\Elements\NullElement::getSuperElement ( )

Implements ILIAS\MetaData\Elements\ElementInterface.

Definition at line 72 of file NullElement.php.

72  : ?ElementInterface
73  {
74  return null;
75  }

◆ isMarked()

ILIAS\MetaData\Elements\NullElement::isMarked ( )

Elements can be marked to be created, updated or deleted.

Implements ILIAS\MetaData\Elements\Markers\MarkableInterface.

Definition at line 44 of file NullElement.php.

44  : bool
45  {
46  return false;
47  }

◆ isScaffold()

ILIAS\MetaData\Elements\NullElement::isScaffold ( )

Implements ILIAS\MetaData\Elements\ElementInterface.

Definition at line 34 of file NullElement.php.

34  : bool
35  {
36  return false;
37  }

◆ mark()

ILIAS\MetaData\Elements\NullElement::mark ( MarkerFactoryInterface  $factory,
Action  $action,
string  $data_value = '' 
)

Definition at line 54 of file NullElement.php.

55  {
56  }

The documentation for this class was generated from the following file: