ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
class.ilCtrlPathFactory.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
26
class
ilCtrlPathFactory
implements
ilCtrlPathFactoryInterface
27
{
31
private
ilCtrlStructureInterface
$structure
;
32
38
public
function
__construct
(
ilCtrlStructureInterface
$structure
)
39
{
40
$this->structure =
$structure
;
41
}
42
46
public
function
find
(
ilCtrlContextInterface
$context
, $target):
ilCtrlPathInterface
47
{
48
if
(is_array($target)) {
49
return
new
ilCtrlArrayClassPath
($this->structure,
$context
, $target);
50
}
51
52
if
(is_string($target)) {
53
return
new
ilCtrlSingleClassPath
($this->structure,
$context
, $target);
54
}
55
56
return
$this->
null
();
57
}
58
62
public
function
existing
(
string
$cid_path):
ilCtrlPathInterface
63
{
64
return
new
ilCtrlExistingPath
($this->structure, $cid_path);
65
}
66
70
public
function
null
():
ilCtrlPathInterface
71
{
72
return
new
ilCtrlNullPath
();
73
}
74
}
ilCtrlArrayClassPath
Class ilCtrlArrayClassPath.
Definition:
class.ilCtrlArrayClassPath.php:27
ilCtrlExistingPath
Class ilCtrlExistingPath.
Definition:
class.ilCtrlExistingPath.php:27
ilCtrlNullPath
Class ilCtrlNullPath.
Definition:
class.ilCtrlNullPath.php:27
ilCtrlPathFactory
Class ilCtrlPathFactory.
Definition:
class.ilCtrlPathFactory.php:27
ilCtrlPathFactory\__construct
__construct(ilCtrlStructureInterface $structure)
ilCtrlPathFactory Constructor
Definition:
class.ilCtrlPathFactory.php:38
ilCtrlPathFactory\$structure
ilCtrlStructureInterface $structure
Definition:
class.ilCtrlPathFactory.php:31
ilCtrlPathFactory\find
find(ilCtrlContextInterface $context, $target)
@inheritDoc
Definition:
class.ilCtrlPathFactory.php:46
ilCtrlPathFactory\existing
existing(string $cid_path)
@inheritDoc
Definition:
class.ilCtrlPathFactory.php:62
ilCtrlSingleClassPath
Class ilCtrlSingleClassPath.
Definition:
class.ilCtrlSingleClassPath.php:27
ilCtrlContextInterface
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
interface.ilCtrlContextInterface.php:27
ilCtrlPathFactoryInterface
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
interface.ilCtrlPathFactoryInterface.php:26
ilCtrlPathInterface
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
interface.ilCtrlPathInterface.php:28
ilCtrlStructureInterface
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
interface.ilCtrlStructureInterface.php:25
$context
$context
Definition:
webdav.php:31
components
ILIAS
UICore
classes
Path
class.ilCtrlPathFactory.php
Generated on Sat Oct 18 2025 23:04:57 for ILIAS by
1.9.4 (using
Doxyfile
)