ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilShibbolethAuthenticationPlugin Class Reference

Plugin definition. More...

+ Inheritance diagram for ilShibbolethAuthenticationPlugin:
+ Collaboration diagram for ilShibbolethAuthenticationPlugin:

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)
 
- Public Member Functions inherited from ilPlugin
 getMessage ()
 
 __construct (\ilDBInterface $db, \ilComponentRepositoryWrite $component_repository, string $id)
 
 getPluginName ()
 
 getId ()
 
 getVersion ()
 Only very little classes seem to care about this: More...
 
 getDirectory ()
 Only very little classes seem to care about this: More...
 
 isActive ()
 Only very little classes seem to care about this: More...
 
 needsUpdate ()
 
 install ()
 
 uninstall ()
 
 activate ()
 This will update (if required) and activate the plugin. More...
 
 deactivate ()
 
 update ()
 
 loadLanguageModule ()
 Load language module for plugin. More...
 
 txt (string $a_var)
 Get Language Variable (prefix will be prepended automatically) More...
 
 getTemplate (string $a_template, bool $a_par1=true, bool $a_par2=true)
 ILIAS is moving towards UI components and plugins are expected to use these components. More...
 
 getStyleSheetLocation (string $a_css_file)
 ILIAS is moving towards UI components and plugins are expected to use these components. More...
 
 addBlockFile ($a_tpl, $a_var, $a_block, $a_tplname)
 ILIAS is moving towards UI components and plugins are expected to use these components. More...
 
 getGlobalScreenProviderCollection ()
 
 exchangeUIRendererAfterInitialization (\ILIAS\DI\Container $dic)
 This methods allows to replace the UI Renderer (see src/UI) of ILIAS after initialization by returning a closure returning a custom renderer. More...
 
 exchangeUIFactoryAfterInitialization (string $dic_key, \ILIAS\DI\Container $dic)
 This methods allows to replace some factory for UI Components (see src/UI) of ILIAS after initialization by returning a closure returning a custom factory. More...
 

Protected Member Functions

 checkValue (array $a_user_data, string $a_keyword, $a_value)
 
- Protected Member Functions inherited from ilPlugin
 init ()
 Object initialization. More...
 
 getPluginInfo ()
 
 getComponentInfo ()
 
 getPluginSlotInfo ()
 
 afterInstall ()
 If you cannot get rid of the requirement to use this, adjust the install method in your subclass instead. More...
 
 beforeUninstall ()
 If you cannot get rid of the requirement to use this, adjust the uninstall method in your subclass instead. More...
 
 afterUninstall ()
 If you cannot get rid of the requirement to use this, adjust the uninstall method in your subclass instead. More...
 
 beforeActivation ()
 If you cannot get rid of the requirement to use this, adjust the activate method in your subclass instead. More...
 
 afterActivation ()
 If you cannot get rid of the requirement to use this, adjust the activate method in your subclass instead. More...
 
 afterDeactivation ()
 If you cannot get rid of the requirement to use this, adjust the activate method in your subclass instead. More...
 
 updateDatabase ()
 
 beforeUpdate ()
 If you cannot get rid of the requirement to use this, adjust the update method in your subclass instead. More...
 
 afterUpdate ()
 
 getLanguageHandler ()
 
 buildLanguageHandler ()
 
 readEventListening ()
 
 clearEventListening ()
 

Protected Attributes

array $active_plugins = []
 
- Protected Attributes inherited from ilPlugin
ilDBInterface $db
 
ilComponentRepositoryWrite $component_repository
 
string $id
 
ilPluginLanguage $language_handler = null
 
bool $lang_initialised = false
 
ProviderCollection $provider_collection
 
string $message = ''
 

Detailed Description

Plugin definition.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 24 of file class.ilShibbolethAuthenticationPlugin.php.

Member Function Documentation

◆ afterCreateUser()

ilShibbolethAuthenticationPlugin::afterCreateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

Definition at line 70 of file class.ilShibbolethAuthenticationPlugin.php.

70  : ilObjUser
71  {
72  return $user;
73  }

◆ afterLogin()

ilShibbolethAuthenticationPlugin::afterLogin ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

Definition at line 58 of file class.ilShibbolethAuthenticationPlugin.php.

58  : ilObjUser
59  {
60  return $user;
61  }

◆ afterLogout()

ilShibbolethAuthenticationPlugin::afterLogout ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

Definition at line 82 of file class.ilShibbolethAuthenticationPlugin.php.

82  : ilObjUser
83  {
84  return $user;
85  }

◆ afterUpdateUser()

ilShibbolethAuthenticationPlugin::afterUpdateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

Definition at line 94 of file class.ilShibbolethAuthenticationPlugin.php.

94  : ilObjUser
95  {
96  return $user;
97  }

◆ beforeCreateUser()

ilShibbolethAuthenticationPlugin::beforeCreateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

Definition at line 64 of file class.ilShibbolethAuthenticationPlugin.php.

64  : ilObjUser
65  {
66  return $user;
67  }

◆ beforeLogin()

ilShibbolethAuthenticationPlugin::beforeLogin ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

Definition at line 52 of file class.ilShibbolethAuthenticationPlugin.php.

52  : ilObjUser
53  {
54  return $user;
55  }

◆ beforeLogout()

ilShibbolethAuthenticationPlugin::beforeLogout ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

Definition at line 76 of file class.ilShibbolethAuthenticationPlugin.php.

76  : ilObjUser
77  {
78  return $user;
79  }

◆ beforeUpdateUser()

ilShibbolethAuthenticationPlugin::beforeUpdateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

88  : ilObjUser
89  {
90  return $user;
91  }

◆ checkValue()

ilShibbolethAuthenticationPlugin::checkValue ( array  $a_user_data,
string  $a_keyword,
  $a_value 
)
protected
Parameters
mixed$a_value

Definition at line 34 of file class.ilShibbolethAuthenticationPlugin.php.

34  : bool
35  {
36  if (!$a_user_data[$a_keyword]) {
37  return false;
38  }
39  if (is_array($a_user_data[$a_keyword])) {
40  foreach ($a_user_data[$a_keyword] as $values) {
41  if (strcasecmp(trim($values), $a_value) === 0) {
42  return true;
43  }
44  }
45 
46  return false;
47  }
48  return strcasecmp(trim($a_user_data[$a_keyword]), trim($a_value)) === 0;
49  }

Field Documentation

◆ $active_plugins

array ilShibbolethAuthenticationPlugin::$active_plugins = []
protected

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


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