ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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

 $plugin_admin
 
 $log
 

Static Protected Attributes

static $active_plugins = array()
 
static $cache = null
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilShibbolethPluginWrapper::__construct ( )
protected

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

References $DIC, $ilLog, and IL_COMP_SERVICE.

31  {
32  global $DIC;
33  $ilPluginAdmin = $DIC['ilPluginAdmin'];
34  $ilLog = $DIC['ilLog'];
35  $this->log = $ilLog;
36  $this->plugin_admin = $ilPluginAdmin;
37  if (self::$active_plugins == null) {
38  self::$active_plugins = $this->plugin_admin->getActivePluginsForSlot(IL_COMP_SERVICE, 'AuthShibboleth', 'shibhk');
39  }
40  }
global $DIC
Definition: saml.php:7
const IL_COMP_SERVICE

Member Function Documentation

◆ afterCreateUser()

ilShibbolethPluginWrapper::afterCreateUser ( ilObjUser  $user)
Parameters
ilObjUser$user
Returns
ilObjUser

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

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

◆ afterLogin()

ilShibbolethPluginWrapper::afterLogin ( ilObjUser  $user)
Parameters
ilObjUser$user
Returns
ilObjUser

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

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

◆ afterLogout()

ilShibbolethPluginWrapper::afterLogout ( ilObjUser  $user)
Parameters
ilObjUser$user
Returns
ilObjUser

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

149  {
150  $this->log->write('afterlogout');
151  foreach ($this->getPluginObjects() as $pl) {
152  $user = $pl->afterLogout($user);
153  }
154 
155  return $user;
156  }
+ Here is the call graph for this function:

◆ afterUpdateUser()

ilShibbolethPluginWrapper::afterUpdateUser ( ilObjUser  $user)
Parameters
ilObjUser$user
Returns
ilObjUser

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

180  {
181  foreach ($this->getPluginObjects() as $pl) {
182  $user = $pl->afterUpdateUser($user);
183  }
184 
185  return $user;
186  }
+ Here is the call graph for this function:

◆ beforeCreateUser()

ilShibbolethPluginWrapper::beforeCreateUser ( ilObjUser  $user)
Parameters
ilObjUser$user
Returns
ilObjUser

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

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

◆ beforeLogin()

ilShibbolethPluginWrapper::beforeLogin ( ilObjUser  $user)
Parameters
ilObjUser$user
Returns
ilObjUser

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

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

◆ beforeLogout()

ilShibbolethPluginWrapper::beforeLogout ( ilObjUser  $user)
Parameters
ilObjUser$user
Returns
ilObjUser

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

134  {
135  foreach ($this->getPluginObjects() as $pl) {
136  $user = $pl->beforeLogout($user);
137  }
138 
139  return $user;
140  }
+ Here is the call graph for this function:

◆ beforeUpdateUser()

ilShibbolethPluginWrapper::beforeUpdateUser ( ilObjUser  $user)
Parameters
ilObjUser$user
Returns
ilObjUser

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

165  {
166  foreach ($this->getPluginObjects() as $pl) {
167  $user = $pl->beforeUpdateUser($user);
168  }
169 
170  return $user;
171  }
+ Here is the call graph for this function:

◆ getInstance()

static ilShibbolethPluginWrapper::getInstance ( )
static
Returns
ilShibbolethPluginWrapper

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

Referenced by ilAuthProviderShibboleth\doAuthentication().

47  {
48  if (!self::$cache instanceof ilShibbolethPluginWrapper) {
49  self::$cache = new self();
50  }
51 
52  return self::$cache;
53  }
Class ilShibbolethPluginWrapper.
+ Here is the caller graph for this function:

◆ getPluginObjects()

ilShibbolethPluginWrapper::getPluginObjects ( )
protected
Returns
ilShibbolethAuthenticationPlugin[]

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

References array, and IL_COMP_SERVICE.

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

60  {
61  $plugin_objs = array();
62  foreach (self::$active_plugins as $plugin_name) {
63  $plugin_obj = $this->plugin_admin->getPluginObject(IL_COMP_SERVICE, 'AuthShibboleth', 'shibhk', $plugin_name);
64  if ($plugin_obj instanceof ilShibbolethAuthenticationPlugin) {
65  $plugin_objs[] = $plugin_obj;
66  }
67  }
68 
69  return $plugin_objs;
70  }
Create styles array
The data for the language used.
const IL_COMP_SERVICE
+ Here is the caller graph for this function:

Field Documentation

◆ $active_plugins

ilShibbolethPluginWrapper::$active_plugins = array()
staticprotected

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

◆ $cache

ilShibbolethPluginWrapper::$cache = null
staticprotected

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

◆ $log

ilShibbolethPluginWrapper::$log
protected

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

◆ $plugin_admin

ilShibbolethPluginWrapper::$plugin_admin
protected

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


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