ILIAS  release_4-4 Revision
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

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

References $ilLog, and IL_COMP_SERVICE.

29  {
30  global $ilPluginAdmin, $ilLog;
31  $this->log = $ilLog;
32  $this->plugin_admin = $ilPluginAdmin;
33  if (self::$active_plugins == NULL) {
34  self::$active_plugins = $this->plugin_admin->getActivePluginsForSlot(IL_COMP_SERVICE, 'AuthShibboleth', 'shibhk');
35  }
36  }
const IL_COMP_SERVICE

Member Function Documentation

◆ afterCreateUser()

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

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

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

◆ afterLogin()

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

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

87  {
88  foreach ($this->getPluginObjects() as $pl) {
89  $user = $pl->afterLogin($user);
90  }
91 
92  return $user;
93  }
+ Here is the call graph for this function:

◆ afterLogout()

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

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

138  {
139  $this->log->write('afterlogout');
140  foreach ($this->getPluginObjects() as $pl) {
141  $user = $pl->afterLogout($user);
142  }
143 
144  return $user;
145  }
+ Here is the call graph for this function:

◆ afterUpdateUser()

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

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

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

◆ beforeCreateUser()

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

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

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

◆ beforeLogin()

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

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

72  {
73  // $this->log->write('ilShibbolethPluginWrapper::beforeLogin');
74  foreach ($this->getPluginObjects() as $pl) {
75  $user = $pl->beforeLogin($user);
76  }
77 
78  return $user;
79  }
+ Here is the call graph for this function:

◆ beforeLogout()

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

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

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

◆ beforeUpdateUser()

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

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

153  {
154  foreach ($this->getPluginObjects() as $pl) {
155  $user = $pl->beforeUpdateUser($user);
156  }
157 
158  return $user;
159  }
+ Here is the call graph for this function:

◆ getInstance()

static ilShibbolethPluginWrapper::getInstance ( )
static
Returns
ilShibbolethPluginWrapper

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

Referenced by ShibAuth\login(), ShibAuth\logout(), and ShibAuth\setAuth().

42  {
43  if (! self::$cache instanceof ilShibbolethPluginWrapper) {
44  self::$cache = new self();
45  }
46 
47  return self::$cache;
48  }
Class ilShibbolethPluginWrapper.
+ Here is the caller graph for this function:

◆ getPluginObjects()

ilShibbolethPluginWrapper::getPluginObjects ( )
protected
Returns
ilShibbolethAuthenticationPlugin[]

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

References IL_COMP_SERVICE.

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

54  {
55  $plugin_objs = array();
56  foreach (self::$active_plugins as $plugin_name) {
57  $plugin_obj = $this->plugin_admin->getPluginObject(IL_COMP_SERVICE, 'AuthShibboleth', 'shibhk', $plugin_name);
58  if ($plugin_obj instanceof ilShibbolethAuthenticationPlugin) {
59  $plugin_objs[] = $plugin_obj;
60  }
61  }
62 
63  return $plugin_objs;
64  }
const IL_COMP_SERVICE
+ Here is the caller graph for this function:

Field Documentation

◆ $active_plugins

ilShibbolethPluginWrapper::$active_plugins = array()
staticprotected

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

◆ $cache

ilShibbolethPluginWrapper::$cache = NULL
staticprotected

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

◆ $log

ilShibbolethPluginWrapper::$log
protected

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

◆ $plugin_admin

ilShibbolethPluginWrapper::$plugin_admin
protected

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


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