ILIAS  trunk Revision v12.0_alpha-33-ge186251a14d
ilLoginPageAuthStrategy Class Reference
+ Inheritance diagram for ilLoginPageAuthStrategy:
+ Collaboration diagram for ilLoginPageAuthStrategy:

Public Member Functions

 __construct (private ilCtrlInterface $ctrl, private ilLogger $logger, private ilLanguage $lng)
 
 getName ()
 
 isActive ()
 
 handleLogin (string $redirection_target)
 
 isActive ()
 
 getName ()
 
 handleLogin (string $redirection_target)
 

Detailed Description

Definition at line 20 of file class.ilLoginPageAuthStrategy.php.

Constructor & Destructor Documentation

◆ __construct()

ilLoginPageAuthStrategy::__construct ( private ilCtrlInterface  $ctrl,
private ilLogger  $logger,
private ilLanguage  $lng 
)

Definition at line 22 of file class.ilLoginPageAuthStrategy.php.

26 {
27 }

Member Function Documentation

◆ getName()

ilLoginPageAuthStrategy::getName ( )

Reimplemented from ilECSAuthStrategy.

Definition at line 29 of file class.ilLoginPageAuthStrategy.php.

29 : string
30 {
31 return 'ilias';
32 }

◆ handleLogin()

ilLoginPageAuthStrategy::handleLogin ( string  $redirection_target)

Reimplemented from ilECSAuthStrategy.

Definition at line 39 of file class.ilLoginPageAuthStrategy.php.

39 : void
40 {
41 $this->logger->info('Redirect to login authentication');
42 ilSession::set('success', $this->lng->txt('ecs_login_success_ilias'));
43 $this->ctrl->redirectToURL('login.php?target=' . $redirection_target);
44 }
static set(string $a_var, $a_val)
Set a value.

References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), and ilSession\set().

+ Here is the call graph for this function:

◆ isActive()

ilLoginPageAuthStrategy::isActive ( )

Reimplemented from ilECSAuthStrategy.

Definition at line 34 of file class.ilLoginPageAuthStrategy.php.

34 : bool
35 {
36 return true;
37 }

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