ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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)
 

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 23 of file class.ilShibbolethPluginWrapper.php.

Constructor & Destructor Documentation

◆ __construct()

ilShibbolethPluginWrapper::__construct ( )
protected

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

References $DIC.

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

Member Function Documentation

◆ afterCreateUser()

ilShibbolethPluginWrapper::afterCreateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

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

◆ afterLogin()

ilShibbolethPluginWrapper::afterLogin ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

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

◆ afterLogout()

ilShibbolethPluginWrapper::afterLogout ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

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

◆ afterUpdateUser()

ilShibbolethPluginWrapper::afterUpdateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

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

◆ beforeCreateUser()

ilShibbolethPluginWrapper::beforeCreateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

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

◆ beforeLogin()

ilShibbolethPluginWrapper::beforeLogin ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

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

◆ beforeLogout()

ilShibbolethPluginWrapper::beforeLogout ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

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

◆ beforeUpdateUser()

ilShibbolethPluginWrapper::beforeUpdateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

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

◆ getInstance()

static ilShibbolethPluginWrapper::getInstance ( )
static

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

Referenced by ilAuthProviderShibboleth\doAuthentication().

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

◆ getPluginObjects()

ilShibbolethPluginWrapper::getPluginObjects ( )
protected

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

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

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

Field Documentation

◆ $cache

ilShibbolethPluginWrapper ilShibbolethPluginWrapper::$cache = null
staticprotected

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

◆ $component_factory

ilComponentFactory ilShibbolethPluginWrapper::$component_factory
protected

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

◆ $log

ilComponentLogger ilShibbolethPluginWrapper::$log
protected

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


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