ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilShibbolethAuthenticationPlugin Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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, string $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 ()
 

Additional Inherited Members

- 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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Plugin definition

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

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

Member Function Documentation

◆ afterCreateUser()

ilShibbolethAuthenticationPlugin::afterCreateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

68  : ilObjUser
69  {
70  return $user;
71  }

◆ afterLogin()

ilShibbolethAuthenticationPlugin::afterLogin ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

56  : ilObjUser
57  {
58  return $user;
59  }

◆ afterLogout()

ilShibbolethAuthenticationPlugin::afterLogout ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

80  : ilObjUser
81  {
82  return $user;
83  }

◆ afterUpdateUser()

ilShibbolethAuthenticationPlugin::afterUpdateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

92  : ilObjUser
93  {
94  return $user;
95  }

◆ beforeCreateUser()

ilShibbolethAuthenticationPlugin::beforeCreateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

62  : ilObjUser
63  {
64  return $user;
65  }

◆ beforeLogin()

ilShibbolethAuthenticationPlugin::beforeLogin ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

50  : ilObjUser
51  {
52  return $user;
53  }

◆ beforeLogout()

ilShibbolethAuthenticationPlugin::beforeLogout ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

74  : ilObjUser
75  {
76  return $user;
77  }

◆ beforeUpdateUser()

ilShibbolethAuthenticationPlugin::beforeUpdateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

86  : ilObjUser
87  {
88  return $user;
89  }

◆ checkValue()

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

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

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

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