ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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  $this->component_factory = $DIC["component.factory"];
31  $this->log = $DIC['ilLog'];
32  }
global $DIC
Definition: shib_login.php:25

Member Function Documentation

◆ afterCreateUser()

ilShibbolethPluginWrapper::afterCreateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

79  : ilObjUser
80  {
81  foreach ($this->getPluginObjects() as $pl) {
82  $user = $pl->afterCreateUser($user);
83  }
84 
85  return $user;
86  }
+ Here is the call graph for this function:

◆ afterLogin()

ilShibbolethPluginWrapper::afterLogin ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

59  : ilObjUser
60  {
61  foreach ($this->getPluginObjects() as $pl) {
62  $user = $pl->afterLogin($user);
63  }
64 
65  return $user;
66  }
+ Here is the call graph for this function:

◆ afterLogout()

ilShibbolethPluginWrapper::afterLogout ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

99  : ilObjUser
100  {
101  $this->log->log('afterlogout');
102  foreach ($this->getPluginObjects() as $pl) {
103  $user = $pl->afterLogout($user);
104  }
105 
106  return $user;
107  }
+ Here is the call graph for this function:

◆ afterUpdateUser()

ilShibbolethPluginWrapper::afterUpdateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

120  : ilObjUser
121  {
122  foreach ($this->getPluginObjects() as $pl) {
123  $user = $pl->afterUpdateUser($user);
124  }
125 
126  return $user;
127  }
+ Here is the call graph for this function:

◆ beforeCreateUser()

ilShibbolethPluginWrapper::beforeCreateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

69  : ilObjUser
70  {
71  foreach ($this->getPluginObjects() as $pl) {
72  $user = $pl->beforeCreateUser($user);
73  }
74 
75  return $user;
76  }
+ Here is the call graph for this function:

◆ beforeLogin()

ilShibbolethPluginWrapper::beforeLogin ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

49  : ilObjUser
50  {
51  foreach ($this->getPluginObjects() as $pl) {
52  $user = $pl->beforeLogin($user);
53  }
54 
55  return $user;
56  }
+ Here is the call graph for this function:

◆ beforeLogout()

ilShibbolethPluginWrapper::beforeLogout ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

89  : ilObjUser
90  {
91  foreach ($this->getPluginObjects() as $pl) {
92  $user = $pl->beforeLogout($user);
93  }
94 
95  return $user;
96  }
+ Here is the call graph for this function:

◆ beforeUpdateUser()

ilShibbolethPluginWrapper::beforeUpdateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

110  : ilObjUser
111  {
112  foreach ($this->getPluginObjects() as $pl) {
113  $user = $pl->beforeUpdateUser($user);
114  }
115 
116  return $user;
117  }
+ Here is the call graph for this function:

◆ getInstance()

static ilShibbolethPluginWrapper::getInstance ( )
static

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

Referenced by ilAuthProviderShibboleth\doAuthentication().

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

◆ getPluginObjects()

ilShibbolethPluginWrapper::getPluginObjects ( )
protected

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

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

43  : Iterator
44  {
45  return $this->component_factory->getActivePluginsInSlot('shibhk');
46  }
+ 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: