ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\Authentication\StaticUrlHandler Class Reference
+ Inheritance diagram for ILIAS\Authentication\StaticUrlHandler:
+ Collaboration diagram for ILIAS\Authentication\StaticUrlHandler:

Public Member Functions

 getNamespace ()
 
 handle (Request $request, Context $context, Factory $response_factory)
 
- Public Member Functions inherited from ILIAS\StaticURL\Handler\BaseHandler
 __construct ()
 
 canHandle (Request $request)
 
- Public Member Functions inherited from ILIAS\StaticURL\Handler\Handler
 __construct ()
 
 getNamespace ()
 
 canHandle (Request $request)
 
 handle (Request $request, Context $context, Factory $response_factory)
 

Private Member Functions

 language ()
 

Private Attributes

ilLanguage $language = null
 

Detailed Description

Definition at line 31 of file StaticUrlHandler.php.

Member Function Documentation

◆ getNamespace()

ILIAS\Authentication\StaticUrlHandler::getNamespace ( )

Implements ILIAS\StaticURL\Handler\Handler.

Definition at line 44 of file StaticUrlHandler.php.

44 : string
45 {
46 return 'auth';
47 }

◆ handle()

ILIAS\Authentication\StaticUrlHandler::handle ( Request  $request,
Context  $context,
Factory  $response_factory 
)

Implements ILIAS\StaticURL\Handler\Handler.

Definition at line 49 of file StaticUrlHandler.php.

49 : 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 }
$request
@ilCtrl_Calls ilObjLearningSequenceContentGUI: ilObjLearningSequenceConditionsGUI
Definition: ltiauth.php:39

References $request, ILIAS\StaticURL\Response\Factory\can(), and ILIAS\Authentication\StaticUrlHandler\language().

+ Here is the call graph for this function:

◆ language()

ILIAS\Authentication\StaticUrlHandler::language ( )
private

Definition at line 35 of file StaticUrlHandler.php.

36 {
37 if ($this->language === null) {
38 global $DIC;
39 $this->language = $DIC->language();
40 }
41 return $this->language;
42 }
language handling
global $DIC
Definition: shib_login.php:26

References $DIC, ILIAS\Authentication\StaticUrlHandler\$language, and ILIAS\Authentication\StaticUrlHandler\language().

Referenced by ILIAS\Authentication\StaticUrlHandler\handle(), and ILIAS\Authentication\StaticUrlHandler\language().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $language

ilLanguage ILIAS\Authentication\StaticUrlHandler::$language = null
private

Definition at line 33 of file StaticUrlHandler.php.

Referenced by ILIAS\Authentication\StaticUrlHandler\language().


The documentation for this class was generated from the following file: