ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
NullBuilder.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Paths
;
22
23
use
ILIAS\MetaData\Paths\Filters\FilterType
;
24
use
ILIAS\MetaData\Paths\Steps\StepInterface
;
25
use
ILIAS\MetaData\Paths\Steps\StepToken
;
26
use
ILIAS\MetaData\Structure\Definitions\DefinitionInterface
;
27
28
class
NullBuilder
implements
BuilderInterface
29
{
30
public
function
withRelative
(
bool
$is_relative):
BuilderInterface
31
{
32
return
new
NullBuilder
();
33
}
34
35
public
function
withLeadsToExactlyOneElement
(
bool
$leads_to_one):
BuilderInterface
36
{
37
return
new
NullBuilder
();
38
}
39
40
public
function
withNextStep
(
string
$name,
bool
$add_as_first =
false
):
BuilderInterface
41
{
42
return
new
NullBuilder
();
43
}
44
45
public
function
withNextStepToSuperElement
(
bool
$add_as_first =
false
):
BuilderInterface
46
{
47
return
new
NullBuilder
();
48
}
49
50
public
function
withAdditionalFilterAtCurrentStep
(
FilterType
$type,
string
...$values):
BuilderInterface
51
{
52
return
new
NullBuilder
();
53
}
54
55
public
function
get
():
PathInterface
56
{
57
return
new
NullPath
();
58
}
59
60
public
function
withNextStepFromStep
(
StepInterface
$next_step,
bool
$add_as_first =
false
):
BuilderInterface
61
{
62
return
new
NullBuilder
();
63
}
64
}
ILIAS\MetaData\Paths\Steps\StepInterface
Definition:
StepInterface.php:25
ILIAS\MetaData\Paths\NullBuilder\withNextStep
withNextStep(string $name, bool $add_as_first=false)
Add the next step to the path.
Definition:
NullBuilder.php:40
ILIAS\MetaData\Paths\NullPath
Definition:
NullPath.php:23
ILIAS\MetaData\Paths
Definition:
Builder.php:21
ILIAS\MetaData\Paths\Filters\FilterType
FilterType
Values should always be all lowercase.
Definition:
FilterType.php:26
ILIAS\MetaData\Paths\NullBuilder\withNextStepFromStep
withNextStepFromStep(StepInterface $next_step, bool $add_as_first=false)
Definition:
NullBuilder.php:60
ILIAS\MetaData\Paths\NullBuilder
Definition:
NullBuilder.php:28
ILIAS\MetaData\Paths\PathInterface
Definition:
PathInterface.php:25
ILIAS\MetaData\Paths\NullBuilder\withNextStepToSuperElement
withNextStepToSuperElement(bool $add_as_first=false)
Add going to the super element as the next step to the path.
Definition:
NullBuilder.php:45
ILIAS\MetaData\Paths\Steps\StepToken
StepToken
The string representation of these tokens must not occur as names of metadata elements.
Definition:
StepToken.php:27
ILIAS\MetaData\Paths\NullBuilder\withRelative
withRelative(bool $is_relative)
Relative paths start at some otherwise determined element, absolute paths start at root...
Definition:
NullBuilder.php:30
ILIAS\MetaData\Paths\NullBuilder\withLeadsToExactlyOneElement
withLeadsToExactlyOneElement(bool $leads_to_one)
Building a path that is flagged to lead to exactly one element, but does not actually do so can throw...
Definition:
NullBuilder.php:35
DefinitionInterface
StepInterface
ILIAS\MetaData\Paths\BuilderInterface
Definition:
BuilderInterface.php:28
ILIAS\MetaData\Paths\NullBuilder\withAdditionalFilterAtCurrentStep
withAdditionalFilterAtCurrentStep(FilterType $type, string ... $values)
Adds a filter to the current step, restricting what elements are included in it:
Definition:
NullBuilder.php:50
components
ILIAS
MetaData
classes
Paths
NullBuilder.php
Generated on Sun Aug 31 2025 23:03:23 for ILIAS by
1.8.13 (using
Doxyfile
)