ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Authentication\StaticUrlHandler Class Reference
+ Inheritance diagram for ILIAS\Authentication\StaticUrlHandler:
+ Collaboration diagram for ILIAS\Authentication\StaticUrlHandler:

Public Member Functions

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

Private Attributes

readonly ilCtrlInterface $ctrl
 
readonly ilLanguage $language
 

Detailed Description

Definition at line 32 of file StaticUrlHandler.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Authentication\StaticUrlHandler::__construct ( )

Definition at line 37 of file StaticUrlHandler.php.

References $DIC, ILIAS\Repository\ctrl(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().

38  {
39  global $DIC;
40  $this->ctrl = $DIC->ctrl();
41  $this->language = $DIC->language();
42  }
global $DIC
Definition: shib_login.php:22
language()
description: > Example for rendring a language glyph.
Definition: language.php:41
+ Here is the call graph for this function:

Member Function Documentation

◆ getNamespace()

ILIAS\Authentication\StaticUrlHandler::getNamespace ( )

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 
)

Definition at line 49 of file StaticUrlHandler.php.

References ILIAS\UI\examples\Symbol\Glyph\Language\language().

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  }
language()
description: > Example for rendring a language glyph.
Definition: language.php:41
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

readonly ilCtrlInterface ILIAS\Authentication\StaticUrlHandler::$ctrl
private

Definition at line 34 of file StaticUrlHandler.php.

◆ $language

readonly ilLanguage ILIAS\Authentication\StaticUrlHandler::$language
private

Definition at line 35 of file StaticUrlHandler.php.


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