ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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='')
 
 unmark ()
 Removes markers from this element, and recursively from all sub-elements. More...
 
 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 ()
 
 getMDID ()
 
 getDefinition ()
 Defining properties of the metadata element. More...
 
 getSubElements ()
 
 getSuperElement ()
 
 isRoot ()
 
 getSubElements ()
 
 getSuperElement ()
 
 isScaffold ()
 
 getData ()
 
 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...
 

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. Scaffolds are added such that the order of elements as suggested by the structure is preserved.

Implements ILIAS\MetaData\Elements\Scaffolds\ScaffoldableInterface.

Definition at line 62 of file NullElement.php.

62 : void
63 {
64 }

◆ 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.

Scaffolds are added such that the order of elements as suggested by the structure is preserved.

Returns
ElementInterface[]

Implements ILIAS\MetaData\Elements\Scaffolds\ScaffoldableInterface.

Definition at line 66 of file NullElement.php.

66 : ?ElementInterface
67 {
68 return null;
69 }

◆ 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
BaseElementInterface[]

Reimplemented from ILIAS\MetaData\Elements\Base\NullBaseElement.

Definition at line 71 of file NullElement.php.

71 : \Generator
72 {
73 yield from [];
74 }

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

+ Here is the call graph for this function:

◆ getSuperElement()

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

Reimplemented from ILIAS\MetaData\Elements\Base\NullBaseElement.

Definition at line 76 of file NullElement.php.

76 : ?ElementInterface
77 {
78 return null;
79 }

◆ 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.

54 : void
55 {
56 }

◆ unmark()

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

Removes markers from this element, and recursively from all sub-elements.

Implements ILIAS\MetaData\Elements\Markers\MarkableInterface.

Definition at line 58 of file NullElement.php.

58 : void
59 {
60 }

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