ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 $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

References $ilLog, and IL_COMP_SERVICE.

Member Function Documentation

◆ afterCreateUser()

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

Implements ilShibbolethAuthenticationPluginInt.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

References getPluginObjects().

+ Here is the call graph for this function:

◆ getInstance()

static ilShibbolethPluginWrapper::getInstance ( )
static
Returns
ilShibbolethPluginWrapper

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

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

References $cache.

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

+ Here is the caller graph for this function:

◆ getPluginObjects()

ilShibbolethPluginWrapper::getPluginObjects ( )
protected
Returns
ilShibbolethAuthenticationPlugin[]

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

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 }

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: