ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilShibbolethPluginWrapper Class Reference

Class ilShibbolethPluginWrapper. 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)
 

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

Constructor & Destructor Documentation

◆ __construct()

ilShibbolethPluginWrapper::__construct ( )
protected

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

References $DIC.

28  {
29  global $DIC;
30  $ilLog = $DIC['ilLog'];
31  $this->log = $ilLog;
32  $this->component_factory = $DIC["component.factory"];
33  }
global $DIC
Definition: feed.php:28

Member Function Documentation

◆ afterCreateUser()

ilShibbolethPluginWrapper::afterCreateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

83  : ilObjUser
84  {
85  foreach ($this->getPluginObjects() as $pl) {
86  $user = $pl->afterCreateUser($user);
87  }
88 
89  return $user;
90  }
+ Here is the call graph for this function:

◆ afterLogin()

ilShibbolethPluginWrapper::afterLogin ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

63  : ilObjUser
64  {
65  foreach ($this->getPluginObjects() as $pl) {
66  $user = $pl->afterLogin($user);
67  }
68 
69  return $user;
70  }
+ Here is the call graph for this function:

◆ afterLogout()

ilShibbolethPluginWrapper::afterLogout ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

103  : ilObjUser
104  {
105  $this->log->write('afterlogout');
106  foreach ($this->getPluginObjects() as $pl) {
107  $user = $pl->afterLogout($user);
108  }
109 
110  return $user;
111  }
+ Here is the call graph for this function:

◆ afterUpdateUser()

ilShibbolethPluginWrapper::afterUpdateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

124  : ilObjUser
125  {
126  foreach ($this->getPluginObjects() as $pl) {
127  $user = $pl->afterUpdateUser($user);
128  }
129 
130  return $user;
131  }
+ Here is the call graph for this function:

◆ beforeCreateUser()

ilShibbolethPluginWrapper::beforeCreateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

73  : ilObjUser
74  {
75  foreach ($this->getPluginObjects() as $pl) {
76  $user = $pl->beforeCreateUser($user);
77  }
78 
79  return $user;
80  }
+ Here is the call graph for this function:

◆ beforeLogin()

ilShibbolethPluginWrapper::beforeLogin ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

53  : ilObjUser
54  {
55  foreach ($this->getPluginObjects() as $pl) {
56  $user = $pl->beforeLogin($user);
57  }
58 
59  return $user;
60  }
+ Here is the call graph for this function:

◆ beforeLogout()

ilShibbolethPluginWrapper::beforeLogout ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

93  : ilObjUser
94  {
95  foreach ($this->getPluginObjects() as $pl) {
96  $user = $pl->beforeLogout($user);
97  }
98 
99  return $user;
100  }
+ Here is the call graph for this function:

◆ beforeUpdateUser()

ilShibbolethPluginWrapper::beforeUpdateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

114  : ilObjUser
115  {
116  foreach ($this->getPluginObjects() as $pl) {
117  $user = $pl->beforeUpdateUser($user);
118  }
119 
120  return $user;
121  }
+ Here is the call graph for this function:

◆ getInstance()

static ilShibbolethPluginWrapper::getInstance ( )
static

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

Referenced by ilAuthProviderShibboleth\doAuthentication().

35  : self
36  {
37  if (!self::$cache instanceof self) {
38  self::$cache = new self();
39  }
40 
41  return self::$cache;
42  }
+ Here is the caller graph for this function:

◆ getPluginObjects()

ilShibbolethPluginWrapper::getPluginObjects ( )
protected
Returns
ilShibbolethAuthenticationPlugin[]

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

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

47  : Iterator
48  {
49  return $this->component_factory->getActivePluginsInSlot('shibhk');
50  }
+ Here is the caller graph for this function:

Field Documentation

◆ $cache

ilShibbolethPluginWrapper ilShibbolethPluginWrapper::$cache = null
staticprotected

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

◆ $component_factory

ilComponentFactory ilShibbolethPluginWrapper::$component_factory
protected

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

◆ $log

ilComponentLogger ilShibbolethPluginWrapper::$log
protected

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


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