ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
NullAdapter.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Editor\Vocabulary
;
22
23
use
ILIAS\MetaData\Vocabularies\Slots\Identifier
as SlotIdentifier;
24
use
ILIAS\MetaData\Elements\ElementInterface
;
25
use
ILIAS\MetaData\Vocabularies\Slots\Identifier
;
26
27
class
NullAdapter
implements
AdapterInterface
28
{
29
public
function
findElementOfCondition
(
30
SlotIdentifier $slot,
31
ElementInterface
$element,
32
ElementInterface
...$all_elements
33
): ?
ElementInterface
{
34
return
null;
35
}
36
37
public
function
slotForElement
(
ElementInterface
$element): SlotIdentifier
38
{
39
return
SlotIdentifier::NULL
;
40
}
41
45
public
function
slotsForElementWithoutCondition
(
ElementInterface
$element): \Generator
46
{
47
yield
from
[];
48
}
49
50
public
function
potentialSlotForElementByCondition
(
51
ElementInterface
$element,
52
ElementInterface
$element_in_condition,
53
string
$value
54
): SlotIdentifier {
55
return
SlotIdentifier::
NULL
;
56
}
57
58
public
function
doesSlotHaveVocabularies
(
59
SlotIdentifier $slot
60
): bool {
61
return
false;
62
}
63
64
public
function
doesSlotAllowCustomInput
(
65
SlotIdentifier $slot,
66
): bool {
67
return
false;
68
}
69
70
public
function
isValueInVocabulariesForSlot
(
71
SlotIdentifier $slot,
72
string
$value
73
): bool {
74
return
false;
75
}
76
80
public
function
valuesInVocabulariesForSlot
(
81
SlotIdentifier $slot,
82
?
string
$add_if_not_included =
null
83
): \Generator {
84
yield
from
[];
85
}
86
87
public
function
sourceMapForSlot
(SlotIdentifier $slot): \Closure
88
{
89
return
function
() {};
90
}
91
}
ILIAS\MetaData\Editor\Vocabulary\NullAdapter
Definition:
NullAdapter.php:28
ILIAS\MetaData\Editor\Vocabulary\NullAdapter\findElementOfCondition
findElementOfCondition(SlotIdentifier $slot, ElementInterface $element, ElementInterface ... $all_elements)
Definition:
NullAdapter.php:29
ILIAS\MetaData\Editor\Vocabulary\NullAdapter\doesSlotHaveVocabularies
doesSlotHaveVocabularies(SlotIdentifier $slot)
Definition:
NullAdapter.php:58
ILIAS\MetaData\Editor\Vocabulary\NullAdapter\isValueInVocabulariesForSlot
isValueInVocabulariesForSlot(SlotIdentifier $slot, string $value)
Definition:
NullAdapter.php:70
ILIAS\MetaData\Editor\Vocabulary\NullAdapter\potentialSlotForElementByCondition
potentialSlotForElementByCondition(ElementInterface $element, ElementInterface $element_in_condition, string $value)
Definition:
NullAdapter.php:50
ILIAS\MetaData\Editor\Vocabulary\NullAdapter\slotsForElementWithoutCondition
slotsForElementWithoutCondition(ElementInterface $element)
Definition:
NullAdapter.php:45
ILIAS\MetaData\Editor\Vocabulary\NullAdapter\doesSlotAllowCustomInput
doesSlotAllowCustomInput(SlotIdentifier $slot,)
Definition:
NullAdapter.php:64
ILIAS\MetaData\Editor\Vocabulary\NullAdapter\sourceMapForSlot
sourceMapForSlot(SlotIdentifier $slot)
Returned closure takes a string value as argument, and returns the source of the vocabulary it's from...
Definition:
NullAdapter.php:87
ILIAS\MetaData\Editor\Vocabulary\NullAdapter\slotForElement
slotForElement(ElementInterface $element)
Definition:
NullAdapter.php:37
ILIAS\MetaData\Editor\Vocabulary\NullAdapter\valuesInVocabulariesForSlot
valuesInVocabulariesForSlot(SlotIdentifier $slot, ?string $add_if_not_included=null)
Definition:
NullAdapter.php:80
return
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
delivery_method.php:21
ILIAS\MetaData\Editor\Vocabulary\AdapterInterface
Definition:
AdapterInterface.php:27
ILIAS\MetaData\Elements\ElementInterface
Definition:
ElementInterface.php:29
ILIAS\Data\Description\NULL
@ NULL
Definition:
ValueType.php:30
ILIAS\MetaData\Editor\Vocabulary
Definition:
Adapter.php:21
ILIAS\MetaData\Vocabularies\Slots\Identifier
Identifier
Definition:
Identifier.php:24
ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from
from(FileStream $stream)
Definition:
GdImageToStreamTrait.php:49
components
ILIAS
MetaData
classes
Editor
Vocabulary
NullAdapter.php
Generated on Sun Oct 19 2025 23:03:19 for ILIAS by
1.9.4 (using
Doxyfile
)