ILIAS
trunk Revision v13.0_alpha-52-g21c366bbdd4
◀ ilDoc Overview
StaticUrlHandler.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Authentication
;
22
23
use
ILIAS\StaticURL\Handler\Handler
;
24
use
ILIAS\StaticURL\Handler\BaseHandler
;
25
use
ILIAS\StaticURL\Request\Request
;
26
use
ILIAS\StaticURL\Context
;
27
use
ILIAS\StaticURL\Response\Factory
;
28
use
ILIAS\StaticURL\Response\Response
;
29
use
ilLanguage
;
30
31
class
StaticUrlHandler
extends
BaseHandler
implements
Handler
32
{
33
private
?
ilLanguage
$language
=
null
;
34
35
private
function
language
():
ilLanguage
36
{
37
if
($this->
language
===
null
) {
38
global
$DIC
;
39
$this->
language
= $DIC->language();
40
}
41
return
$this->language
;
42
}
43
44
public
function
getNamespace
(): string
45
{
46
return
'auth'
;
47
}
48
49
public
function
handle
(
Request
$request
,
Context
$context,
Factory
$response_factory):
Response
50
{
51
$additional_params = implode(
'/'
,
$request
->getAdditionalParameters() ?? []);
52
53
return
match ($additional_params) {
54
'login'
=> $response_factory->
can
(
'login.php?'
. http_build_query([
55
'cmd'
=>
'force_login'
,
56
'lang'
=> $this->
language
()->getLangKey(),
57
])),
58
};
59
}
60
}
ILIAS\Authentication\StaticUrlHandler
Definition:
StaticUrlHandler.php:32
ILIAS\Authentication\StaticUrlHandler\language
language()
Definition:
StaticUrlHandler.php:35
ILIAS\Authentication\StaticUrlHandler\$language
ilLanguage $language
Definition:
StaticUrlHandler.php:33
ILIAS\Authentication\StaticUrlHandler\getNamespace
getNamespace()
Definition:
StaticUrlHandler.php:44
ILIAS\Authentication\StaticUrlHandler\handle
handle(Request $request, Context $context, Factory $response_factory)
Definition:
StaticUrlHandler.php:49
ILIAS\StaticURL\Context
What a {.
Definition:
Context.php:44
ILIAS\StaticURL\Handler\BaseHandler
Definition:
BaseHandler.php:29
ILIAS\StaticURL\Request\Request
Definition:
Request.php:29
ILIAS\StaticURL\Response\Factory
Produces {.
Definition:
Factory.php:32
ILIAS\StaticURL\Response\Factory\can
can(string $uri_path, bool $shift=false)
The Handler successfully resolved the target.
Definition:
Factory.php:88
ilLanguage
language handling
Definition:
class.ilLanguage.php:48
ILIAS\StaticURL\Handler\Handler
Definition:
Handler.php:32
ILIAS\StaticURL\Response\Response
Definition:
Response.php:25
$request
$request
@ilCtrl_Calls ilObjLearningSequenceContentGUI: ilObjLearningSequenceConditionsGUI
Definition:
ltiauth.php:39
ILIAS\Authentication
$DIC
global $DIC
Definition:
shib_login.php:26
components
ILIAS
Authentication
classes
StaticUrlHandler.php
Generated on Tue Nov 10 2026 23:07:20 for ILIAS by
1.9.4 (using
Doxyfile
)