ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilShibbolethPluginWrapper Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilShibbolethPluginWrapper:
+ Collaboration diagram for ilShibbolethPluginWrapper:

Public Member Functions

 beforeLogin (ilObjUser $user)
 
 afterLogin (ilObjUser $user)
 
 beforeCreateUser (ilObjUser $user)
 
 afterCreateUser (ilObjUser $user)
 
 beforeLogout (ilObjUser $user)
 
 afterLogout (ilObjUser $user)
 
 beforeUpdateUser (ilObjUser $user)
 
 afterUpdateUser (ilObjUser $user)
 
 beforeLogin (ilObjUser $user)
 
 afterLogin (ilObjUser $user)
 
 beforeLogout (ilObjUser $user)
 
 afterLogout (ilObjUser $user)
 
 beforeCreateUser (ilObjUser $user)
 
 afterCreateUser (ilObjUser $user)
 
 beforeUpdateUser (ilObjUser $user)
 
 afterUpdateUser (ilObjUser $user)
 

Static Public Member Functions

static getInstance ()
 

Protected Member Functions

 __construct ()
 
 getPluginObjects ()
 

Protected Attributes

ilComponentFactory $component_factory
 
ilComponentLogger $log
 

Static Protected Attributes

static ilShibbolethPluginWrapper $cache = null
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilShibbolethPluginWrapper

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

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

Constructor & Destructor Documentation

◆ __construct()

ilShibbolethPluginWrapper::__construct ( )
protected

Definition at line 30 of file class.ilShibbolethPluginWrapper.php.

31 {
32 global $DIC;
33 $this->component_factory = $DIC["component.factory"];
34 $this->log = $DIC['ilLog'];
35 }
global $DIC
Definition: shib_login.php:26

References $DIC.

Member Function Documentation

◆ afterCreateUser()

ilShibbolethPluginWrapper::afterCreateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

Definition at line 82 of file class.ilShibbolethPluginWrapper.php.

82 : ilObjUser
83 {
84 foreach ($this->getPluginObjects() as $pl) {
85 $user = $pl->afterCreateUser($user);
86 }
87
88 return $user;
89 }
User class.

References getPluginObjects().

+ Here is the call graph for this function:

◆ afterLogin()

ilShibbolethPluginWrapper::afterLogin ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

Definition at line 62 of file class.ilShibbolethPluginWrapper.php.

62 : ilObjUser
63 {
64 foreach ($this->getPluginObjects() as $pl) {
65 $user = $pl->afterLogin($user);
66 }
67
68 return $user;
69 }

References getPluginObjects().

+ Here is the call graph for this function:

◆ afterLogout()

ilShibbolethPluginWrapper::afterLogout ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

Definition at line 102 of file class.ilShibbolethPluginWrapper.php.

102 : ilObjUser
103 {
104 $this->log->log('afterlogout');
105 foreach ($this->getPluginObjects() as $pl) {
106 $user = $pl->afterLogout($user);
107 }
108
109 return $user;
110 }

References getPluginObjects().

+ Here is the call graph for this function:

◆ afterUpdateUser()

ilShibbolethPluginWrapper::afterUpdateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

Definition at line 123 of file class.ilShibbolethPluginWrapper.php.

123 : ilObjUser
124 {
125 foreach ($this->getPluginObjects() as $pl) {
126 $user = $pl->afterUpdateUser($user);
127 }
128
129 return $user;
130 }

References getPluginObjects().

+ Here is the call graph for this function:

◆ beforeCreateUser()

ilShibbolethPluginWrapper::beforeCreateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

Definition at line 72 of file class.ilShibbolethPluginWrapper.php.

72 : ilObjUser
73 {
74 foreach ($this->getPluginObjects() as $pl) {
75 $user = $pl->beforeCreateUser($user);
76 }
77
78 return $user;
79 }

References getPluginObjects().

+ Here is the call graph for this function:

◆ beforeLogin()

ilShibbolethPluginWrapper::beforeLogin ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

Definition at line 52 of file class.ilShibbolethPluginWrapper.php.

52 : ilObjUser
53 {
54 foreach ($this->getPluginObjects() as $pl) {
55 $user = $pl->beforeLogin($user);
56 }
57
58 return $user;
59 }

References getPluginObjects().

+ Here is the call graph for this function:

◆ beforeLogout()

ilShibbolethPluginWrapper::beforeLogout ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

Definition at line 92 of file class.ilShibbolethPluginWrapper.php.

92 : ilObjUser
93 {
94 foreach ($this->getPluginObjects() as $pl) {
95 $user = $pl->beforeLogout($user);
96 }
97
98 return $user;
99 }

References getPluginObjects().

+ Here is the call graph for this function:

◆ beforeUpdateUser()

ilShibbolethPluginWrapper::beforeUpdateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

Definition at line 113 of file class.ilShibbolethPluginWrapper.php.

113 : ilObjUser
114 {
115 foreach ($this->getPluginObjects() as $pl) {
116 $user = $pl->beforeUpdateUser($user);
117 }
118
119 return $user;
120 }

References getPluginObjects().

+ Here is the call graph for this function:

◆ getInstance()

static ilShibbolethPluginWrapper::getInstance ( )
static

Definition at line 37 of file class.ilShibbolethPluginWrapper.php.

37 : self
38 {
39 if (!self::$cache instanceof self) {
40 self::$cache = new self();
41 }
42
43 return self::$cache;
44 }
static ilShibbolethPluginWrapper $cache

References $cache.

Referenced by ilAuthProviderShibboleth\doAuthentication().

+ Here is the caller graph for this function:

◆ getPluginObjects()

ilShibbolethPluginWrapper::getPluginObjects ( )
protected

Definition at line 46 of file class.ilShibbolethPluginWrapper.php.

46 : Iterator
47 {
48 return $this->component_factory->getActivePluginsInSlot('shibhk');
49 }

Referenced by afterCreateUser(), afterLogin(), afterLogout(), afterUpdateUser(), beforeCreateUser(), beforeLogin(), beforeLogout(), and beforeUpdateUser().

+ Here is the caller graph for this function:

Field Documentation

◆ $cache

ilShibbolethPluginWrapper ilShibbolethPluginWrapper::$cache = null
staticprotected

Definition at line 28 of file class.ilShibbolethPluginWrapper.php.

Referenced by getInstance().

◆ $component_factory

ilComponentFactory ilShibbolethPluginWrapper::$component_factory
protected

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

◆ $log

ilComponentLogger ilShibbolethPluginWrapper::$log
protected

Definition at line 27 of file class.ilShibbolethPluginWrapper.php.


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