ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ 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
}
ilCtrlPathFactory\null
null()
Definition:
class.ilCtrlPathFactory.php:70
$context
$context
Definition:
webdav.php:31
ilCtrlPathFactory
Class ilCtrlPathFactory.
Definition:
class.ilCtrlPathFactory.php:26
ilCtrlPathFactory\existing
existing(string $cid_path)
Definition:
class.ilCtrlPathFactory.php:62
ilCtrlPathFactory\$structure
ilCtrlStructureInterface $structure
Definition:
class.ilCtrlPathFactory.php:31
ilCtrlArrayClassPath
Class ilCtrlArrayClassPath.
Definition:
class.ilCtrlArrayClassPath.php:26
ilCtrlStructureInterface
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
interface.ilCtrlStructureInterface.php:24
ilCtrlPathFactory\find
find(ilCtrlContextInterface $context, $target)
Definition:
class.ilCtrlPathFactory.php:46
ilCtrlSingleClassPath
Class ilCtrlSingleClassPath.
Definition:
class.ilCtrlSingleClassPath.php:26
ilCtrlContextInterface
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
interface.ilCtrlContextInterface.php:26
ilCtrlPathFactoryInterface
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
interface.ilCtrlPathFactoryInterface.php:25
ilCtrlExistingPath
Class ilCtrlExistingPath.
Definition:
class.ilCtrlExistingPath.php:26
ilCtrlNullPath
Class ilCtrlNullPath.
Definition:
class.ilCtrlNullPath.php:26
ilCtrlPathFactory\__construct
__construct(ilCtrlStructureInterface $structure)
ilCtrlPathFactory Constructor
Definition:
class.ilCtrlPathFactory.php:38
ilCtrlPathInterface
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
interface.ilCtrlPathInterface.php:27
components
ILIAS
UICore
classes
Path
class.ilCtrlPathFactory.php
Generated on Sun Aug 31 2025 23:04:18 for ILIAS by
1.8.13 (using
Doxyfile
)