ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
NullFactory.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\Elements\Base\BaseElementInterface
;
24
25
class
NullFactory
implements
FactoryInterface
26
{
27
public
function
fromString
(
string
$string):
PathInterface
28
{
29
return
new
NullPath
();
30
}
31
32
public
function
toElement
(
BaseElementInterface
$to,
bool
$leads_to_exactly_one =
false
):
PathInterface
33
{
34
return
new
NullPath
();
35
}
36
37
public
function
betweenElements
(
BaseElementInterface
$from,
BaseElementInterface
$to,
bool
$leads_to_exactly_one =
false
):
PathInterface
38
{
39
return
new
NullPath
();
40
}
41
42
public
function
custom
():
BuilderInterface
43
{
44
return
new
NullBuilder
();
45
}
46
}
ILIAS\MetaData\Paths\NullFactory\toElement
toElement(BaseElementInterface $to, bool $leads_to_exactly_one=false)
Returns absolute path from root to the given element.
Definition:
NullFactory.php:32
ILIAS\MetaData\Paths\NullPath
Definition:
NullPath.php:23
ILIAS\MetaData\Paths
Definition:
Builder.php:21
ILIAS\MetaData\Paths\NullFactory\fromString
fromString(string $string)
Definition:
NullFactory.php:27
ILIAS\MetaData\Paths\NullBuilder
Definition:
NullBuilder.php:28
ILIAS\MetaData\Paths\PathInterface
Definition:
PathInterface.php:25
ILIAS\MetaData\Paths\NullFactory\custom
custom()
Definition:
NullFactory.php:42
ILIAS\MetaData\Paths\FactoryInterface
Definition:
FactoryInterface.php:25
ILIAS\MetaData\Paths\NullFactory\betweenElements
betweenElements(BaseElementInterface $from, BaseElementInterface $to, bool $leads_to_exactly_one=false)
Returns relative path between two given elements.
Definition:
NullFactory.php:37
BaseElementInterface
ILIAS\MetaData\Elements\Base\BaseElementInterface
Definition:
BaseElementInterface.php:27
ILIAS\MetaData\Paths\BuilderInterface
Definition:
BuilderInterface.php:28
ILIAS\MetaData\Paths\NullFactory
Definition:
NullFactory.php:25
components
ILIAS
MetaData
classes
Paths
NullFactory.php
Generated on Sun Aug 31 2025 23:03:22 for ILIAS by
1.8.13 (using
Doxyfile
)