ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups 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

ilShibbolethPluginWrapper::__construct ( )
protected

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

References $ilLog, and IL_COMP_SERVICE.

{
global $ilPluginAdmin, $ilLog;
$this->log = $ilLog;
$this->plugin_admin = $ilPluginAdmin;
if (self::$active_plugins == NULL) {
self::$active_plugins = $this->plugin_admin->getActivePluginsForSlot(IL_COMP_SERVICE, 'AuthShibboleth', 'shibhk');
}
}

Member Function Documentation

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

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

{
foreach ($this->getPluginObjects() as $pl) {
$user = $pl->afterCreateUser($user);
}
return $user;
}

+ Here is the call graph for this function:

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

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

{
foreach ($this->getPluginObjects() as $pl) {
$user = $pl->afterLogin($user);
}
return $user;
}

+ Here is the call graph for this function:

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

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

{
$this->log->write('afterlogout');
foreach ($this->getPluginObjects() as $pl) {
$user = $pl->afterLogout($user);
}
return $user;
}

+ Here is the call graph for this function:

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

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

{
foreach ($this->getPluginObjects() as $pl) {
$user = $pl->afterUpdateUser($user);
}
return $user;
}

+ Here is the call graph for this function:

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

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

{
foreach ($this->getPluginObjects() as $pl) {
$user = $pl->beforeCreateUser($user);
}
return $user;
}

+ Here is the call graph for this function:

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

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

{
// $this->log->write('ilShibbolethPluginWrapper::beforeLogin');
foreach ($this->getPluginObjects() as $pl) {
$user = $pl->beforeLogin($user);
}
return $user;
}

+ Here is the call graph for this function:

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

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

{
foreach ($this->getPluginObjects() as $pl) {
$user = $pl->beforeLogout($user);
}
return $user;
}

+ Here is the call graph for this function:

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

Implements ilShibbolethAuthenticationPluginInt.

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

References getPluginObjects().

{
foreach ($this->getPluginObjects() as $pl) {
$user = $pl->beforeUpdateUser($user);
}
return $user;
}

+ Here is the call graph for this function:

static ilShibbolethPluginWrapper::getInstance ( )
static
Returns
ilShibbolethPluginWrapper

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

References $cache.

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

{
if (! self::$cache instanceof ilShibbolethPluginWrapper) {
self::$cache = new self();
}
return self::$cache;
}

+ Here is the caller graph for this function:

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().

{
$plugin_objs = array();
foreach (self::$active_plugins as $plugin_name) {
$plugin_obj = $this->plugin_admin->getPluginObject(IL_COMP_SERVICE, 'AuthShibboleth', 'shibhk', $plugin_name);
if ($plugin_obj instanceof ilShibbolethAuthenticationPlugin) {
$plugin_objs[] = $plugin_obj;
}
}
return $plugin_objs;
}

+ Here is the caller graph for this function:

Field Documentation

ilShibbolethPluginWrapper::$active_plugins = array()
staticprotected

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

ilShibbolethPluginWrapper::$cache = NULL
staticprotected

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

Referenced by getInstance().

ilShibbolethPluginWrapper::$log
protected

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

ilShibbolethPluginWrapper::$plugin_admin
protected

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


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