ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
NullHandler.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Vocabularies\Slots
;
22
23
use
ILIAS\MetaData\Paths\PathInterface
;
24
use
ILIAS\MetaData\Vocabularies\Slots\Conditions\ConditionInterface
;
25
use
ILIAS\MetaData\Paths\NullPath
;
26
use
ILIAS\MetaData\Elements\Data\Type
as DataType;
27
use
ILIAS\MetaData\Elements\Data\Type
;
28
29
class
NullHandler
implements
HandlerInterface
30
{
31
public
function
pathForSlot
(
Identifier
$identifier):
PathInterface
32
{
33
return
new
NullPath
();
34
}
35
36
public
function
isSlotConditional
(
Identifier
$identifier): bool
37
{
38
return
false
;
39
}
40
41
public
function
conditionForSlot
(
Identifier
$identifier): ?
ConditionInterface
42
{
43
return
null
;
44
}
45
46
public
function
identiferFromPathAndCondition
(
47
PathInterface
$path_to_element,
48
?
PathInterface
$path_to_condition,
49
?
string
$condition_value
50
):
Identifier
{
51
return
Identifier
::
NULL
;
52
}
53
54
public
function
allSlotsForPath
(
PathInterface
$path_to_element): \Generator
55
{
56
yield
from
[];
57
}
58
59
public
function
doesSlotExist
(
60
PathInterface
$path_to_element,
61
?
PathInterface
$path_to_condition,
62
?
string
$condition_value
63
): bool {
64
return
false;
65
}
66
67
public
function
dataTypeForSlot
(
Identifier
$identifier): DataType
68
{
69
return
DataType::NULL
;
70
}
71
}
ILIAS\MetaData\Paths\NullPath
Definition:
NullPath.php:24
ILIAS\MetaData\Vocabularies\Slots\NullHandler
Definition:
NullHandler.php:30
ILIAS\MetaData\Vocabularies\Slots\NullHandler\isSlotConditional
isSlotConditional(Identifier $identifier)
Definition:
NullHandler.php:36
ILIAS\MetaData\Vocabularies\Slots\NullHandler\pathForSlot
pathForSlot(Identifier $identifier)
Definition:
NullHandler.php:31
ILIAS\MetaData\Vocabularies\Slots\NullHandler\doesSlotExist
doesSlotExist(PathInterface $path_to_element, ?PathInterface $path_to_condition, ?string $condition_value)
Definition:
NullHandler.php:59
ILIAS\MetaData\Vocabularies\Slots\NullHandler\conditionForSlot
conditionForSlot(Identifier $identifier)
Definition:
NullHandler.php:41
ILIAS\MetaData\Vocabularies\Slots\NullHandler\allSlotsForPath
allSlotsForPath(PathInterface $path_to_element)
Definition:
NullHandler.php:54
ILIAS\MetaData\Vocabularies\Slots\NullHandler\identiferFromPathAndCondition
identiferFromPathAndCondition(PathInterface $path_to_element, ?PathInterface $path_to_condition, ?string $condition_value)
Definition:
NullHandler.php:46
ILIAS\MetaData\Vocabularies\Slots\NullHandler\dataTypeForSlot
dataTypeForSlot(Identifier $identifier)
Definition:
NullHandler.php:67
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\Paths\PathInterface
Definition:
PathInterface.php:26
ILIAS\MetaData\Vocabularies\Slots\Conditions\ConditionInterface
Definition:
ConditionInterface.php:26
ILIAS\MetaData\Vocabularies\Slots\HandlerInterface
Definition:
HandlerInterface.php:28
ILIAS\Data\Description\NULL
@ NULL
Definition:
ValueType.php:30
ILIAS\MetaData\Elements\Data\Type
Type
Definition:
Type.php:24
ILIAS\MetaData\Vocabularies\Slots
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
Vocabularies
Slots
NullHandler.php
Generated on Sat Oct 18 2025 23:03:26 for ILIAS by
1.9.4 (using
Doxyfile
)