ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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)
 
 beforeLogin (ilObjUser $user)
 
 afterLogin (ilObjUser $user)
 
 beforeLogout (ilObjUser $user)
 
 afterLogout (ilObjUser $user)
 
 beforeCreateUser (ilObjUser $user)
 
 afterCreateUser (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.

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

References $DIC, $ilLog, and IL_COMP_SERVICE.

Member Function Documentation

◆ afterCreateUser()

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

Implements ilShibbolethAuthenticationPluginInt.

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

116 {
117 foreach ($this->getPluginObjects() as $pl) {
118 $user = $pl->afterCreateUser($user);
119 }
120
121 return $user;
122 }

References getPluginObjects().

+ Here is the call graph for this function:

◆ afterLogin()

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

Implements ilShibbolethAuthenticationPluginInt.

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

88 {
89 foreach ($this->getPluginObjects() as $pl) {
90 $user = $pl->afterLogin($user);
91 }
92
93 return $user;
94 }

References getPluginObjects().

+ Here is the call graph for this function:

◆ afterLogout()

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

Implements ilShibbolethAuthenticationPluginInt.

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

139 {
140 $this->log->write('afterlogout');
141 foreach ($this->getPluginObjects() as $pl) {
142 $user = $pl->afterLogout($user);
143 }
144
145 return $user;
146 }

References getPluginObjects().

+ Here is the call graph for this function:

◆ afterUpdateUser()

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

Implements ilShibbolethAuthenticationPluginInt.

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

168 {
169 foreach ($this->getPluginObjects() as $pl) {
170 $user = $pl->afterUpdateUser($user);
171 }
172
173 return $user;
174 }

References getPluginObjects().

+ Here is the call graph for this function:

◆ beforeCreateUser()

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

Implements ilShibbolethAuthenticationPluginInt.

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

102 {
103 foreach ($this->getPluginObjects() as $pl) {
104 $user = $pl->beforeCreateUser($user);
105 }
106
107 return $user;
108 }

References getPluginObjects().

+ Here is the call graph for this function:

◆ beforeLogin()

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

Implements ilShibbolethAuthenticationPluginInt.

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

74 {
75 foreach ($this->getPluginObjects() as $pl) {
76 $user = $pl->beforeLogin($user);
77 }
78
79 return $user;
80 }

References getPluginObjects().

+ Here is the call graph for this function:

◆ beforeLogout()

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

Implements ilShibbolethAuthenticationPluginInt.

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

125 {
126 foreach ($this->getPluginObjects() as $pl) {
127 $user = $pl->beforeLogout($user);
128 }
129
130 return $user;
131 }

References getPluginObjects().

+ Here is the call graph for this function:

◆ beforeUpdateUser()

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

Implements ilShibbolethAuthenticationPluginInt.

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

154 {
155 foreach ($this->getPluginObjects() as $pl) {
156 $user = $pl->beforeUpdateUser($user);
157 }
158
159 return $user;
160 }

References getPluginObjects().

+ Here is the call graph for this function:

◆ getInstance()

static ilShibbolethPluginWrapper::getInstance ( )
static
Returns
ilShibbolethPluginWrapper

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

44 {
45 if (! self::$cache instanceof ilShibbolethPluginWrapper) {
46 self::$cache = new self();
47 }
48
49 return self::$cache;
50 }
Class ilShibbolethPluginWrapper.

References $cache.

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

+ Here is the caller graph for this function:

◆ getPluginObjects()

ilShibbolethPluginWrapper::getPluginObjects ( )
protected
Returns
ilShibbolethAuthenticationPlugin[]

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

56 {
57 $plugin_objs = array();
58 foreach (self::$active_plugins as $plugin_name) {
59 $plugin_obj = $this->plugin_admin->getPluginObject(IL_COMP_SERVICE, 'AuthShibboleth', 'shibhk', $plugin_name);
60 if ($plugin_obj instanceof ilShibbolethAuthenticationPlugin) {
61 $plugin_objs[] = $plugin_obj;
62 }
63 }
64
65 return $plugin_objs;
66 }

References IL_COMP_SERVICE.

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

+ 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.

Referenced by getInstance().

◆ $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: