ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
ilECSAuthFactory Class Reference
+ Collaboration diagram for ilECSAuthFactory:

Public Member Functions

 __construct ()
 
 build (int $auth_type)
 
 getAuthTypes ()
 
 getAvailableStrategies ()
 

Protected Attributes

readonly ilLogger $logger
 
readonly ilCtrlInterface $ctrl
 
readonly ilLanguage $lng
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilECSAuthFactory::__construct ( )

Definition at line 26 of file class.ilECSAuthFactory.php.

27 {
28 global $DIC;
29
30 $this->logger = $DIC->logger()->wsrv();
31 $this->ctrl = $DIC->ctrl();
32 $this->lng = $DIC->language();
33 }
global $DIC
Definition: shib_login.php:26

References $DIC, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\logger().

+ Here is the call graph for this function:

Member Function Documentation

◆ build()

ilECSAuthFactory::build ( int  $auth_type)

Definition at line 35 of file class.ilECSAuthFactory.php.

References ILIAS\Repository\ctrl(), ilECSParticipantSetting\INCOMING_AUTH_TYPE_LOGIN_PAGE, ilECSParticipantSetting\INCOMING_AUTH_TYPE_OIDC, ilECSParticipantSetting\INCOMING_AUTH_TYPE_SHIBBOLETH, ILIAS\Repository\lng(), and ILIAS\Repository\logger().

Referenced by getAvailableStrategies().

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

◆ getAuthTypes()

◆ getAvailableStrategies()

ilECSAuthFactory::getAvailableStrategies ( )

Definition at line 57 of file class.ilECSAuthFactory.php.

57 : array
58 {
59 $strategies = [];
60 foreach ($this->getAuthTypes() as $auth_type) {
61 $strategy = $this->build($auth_type);
62 if ($strategy->isActive()) {
63 $strategies[$auth_type] = $strategy;
64 }
65 }
66 return $strategies;
67 }

References build(), and getAuthTypes().

+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

readonly ilCtrlInterface ilECSAuthFactory::$ctrl
protected

Definition at line 23 of file class.ilECSAuthFactory.php.

◆ $lng

readonly ilLanguage ilECSAuthFactory::$lng
protected

Definition at line 24 of file class.ilECSAuthFactory.php.

◆ $logger

readonly ilLogger ilECSAuthFactory::$logger
protected

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


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