ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
Factory.php
Go to the documentation of this file.
1
<?php
2
19
namespace
ILIAS\StaticURL\Response
;
20
21
use
ILIAS\StaticURL\Context
;
22
26
class
Factory
27
{
28
public
function
__construct
(
29
private
Context
$context
30
) {
31
}
32
33
public
function
cannot
():
CannotHandle
34
{
35
return
new
CannotHandle
();
36
}
37
38
public
function
loginFirst
():
MaybeCanHandlerAfterLogin
|
CannotReach
39
{
40
if
($this->context->isUserLoggedIn()) {
41
return
new
CannotReach
();
42
}
43
if
(!$this->context->isUserLoggedIn() && !$this->context->isPublicSectionActive()) {
44
return
new
CannotReach
();
45
}
46
47
return
new
MaybeCanHandlerAfterLogin
();
48
}
49
50
public
function
can
(
string
$uri_path):
CanHandleWithURIPath
51
{
52
return
new
CanHandleWithURIPath
($uri_path);
53
}
54
}
$context
$context
Definition:
webdav.php:31
ILIAS\StaticURL\Response\CanHandleWithURIPath
Definition:
CanHandleWithURIPath.php:24
ILIAS\StaticURL\Response\Factory\loginFirst
loginFirst()
Definition:
Factory.php:38
ILIAS\StaticURL\Context
Definition:
Context.php:28
ILIAS\StaticURL\Response\CannotReach
Definition:
CannotReach.php:24
ILIAS\StaticURL\Response\Factory\can
can(string $uri_path)
Definition:
Factory.php:50
ILIAS\StaticURL\Response\CannotHandle
Definition:
CannotHandle.php:24
ILIAS\StaticURL\Response\Factory\cannot
cannot()
Definition:
Factory.php:33
ILIAS\StaticURL\Response\Factory
Definition:
Factory.php:26
ILIAS\StaticURL\Response
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
CanHandleWithURIPath.php:19
ILIAS\StaticURL\Response\Factory\__construct
__construct(private Context $context)
Definition:
Factory.php:28
Context
ILIAS\StaticURL\Response\MaybeCanHandlerAfterLogin
Definition:
MaybeCanHandlerAfterLogin.php:24
components
ILIAS
StaticURL
src
Response
Factory.php
Generated on Sun Aug 31 2025 23:01:53 for ILIAS by
1.8.13 (using
Doxyfile
)