ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
class.ilCtrlPathFactory.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
/* Copyright (c) 2021 Thibeau Fuhrer <thf@studer-raimann.ch> Extended GPL, see docs/LICENSE */
6
12
class
ilCtrlPathFactory
implements
ilCtrlPathFactoryInterface
13
{
17
private
ilCtrlStructureInterface
$structure
;
18
24
public
function
__construct
(
ilCtrlStructureInterface
$structure)
25
{
26
$this->structure =
$structure
;
27
}
28
32
public
function
find
(
ilCtrlContextInterface
$context
, $target):
ilCtrlPathInterface
33
{
34
if
(is_array($target)) {
35
return
new
ilCtrlArrayClassPath
($this->structure, $context, $target);
36
}
37
38
if
(is_string($target)) {
39
return
new
ilCtrlSingleClassPath
($this->structure, $context, $target);
40
}
41
42
return
$this->
null
();
43
}
44
48
public
function
existing
(
string
$cid_path):
ilCtrlPathInterface
49
{
50
return
new
ilCtrlExistingPath
($this->structure, $cid_path);
51
}
52
56
public
function
null
():
ilCtrlPathInterface
57
{
58
return
new
ilCtrlNullPath
();
59
}
60
}
ilCtrlPathFactory\null
null()
Definition:
class.ilCtrlPathFactory.php:56
$context
$context
Definition:
webdav.php:29
ilCtrlPathFactory
Class ilCtrlPathFactory.
Definition:
class.ilCtrlPathFactory.php:12
ilCtrlPathFactory\existing
existing(string $cid_path)
Definition:
class.ilCtrlPathFactory.php:48
ilCtrlPathFactory\$structure
ilCtrlStructureInterface $structure
Definition:
class.ilCtrlPathFactory.php:17
ilCtrlArrayClassPath
Class ilCtrlArrayClassPath.
Definition:
class.ilCtrlArrayClassPath.php:12
ilCtrlStructureInterface
ilCtrlStructureInterface
Definition:
interface.ilCtrlStructureInterface.php:10
ilCtrlPathFactory\find
find(ilCtrlContextInterface $context, $target)
Definition:
class.ilCtrlPathFactory.php:32
ilCtrlSingleClassPath
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilCtrlSingleClassPath.php:25
ilCtrlContextInterface
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
interface.ilCtrlContextInterface.php:25
ilCtrlPathFactoryInterface
Interface ilCtrlPathFactoryInterface describes the ilCtrl Path factory.
Definition:
interface.ilCtrlPathFactoryInterface.php:11
ilCtrlExistingPath
Class ilCtrlExistingPath.
Definition:
class.ilCtrlExistingPath.php:12
ilCtrlNullPath
Class ilCtrlNullPath.
Definition:
class.ilCtrlNullPath.php:12
ilCtrlPathFactory\__construct
__construct(ilCtrlStructureInterface $structure)
ilCtrlPathFactory Constructor
Definition:
class.ilCtrlPathFactory.php:24
ilCtrlPathInterface
Interface ilCtrlPathInterface is responsible for holding and manipulating a valid ilCtrl class-path (...
Definition:
interface.ilCtrlPathInterface.php:13
Services
UICore
classes
Path
class.ilCtrlPathFactory.php
Generated on Sun Aug 31 2025 22:02:37 for ILIAS by
1.8.13 (using
Doxyfile
)