ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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, 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

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 65 of file class.ilShibbolethAuthenticationPlugin.php.

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

◆ afterLogin()

ilShibbolethAuthenticationPlugin::afterLogin ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

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

◆ afterLogout()

ilShibbolethAuthenticationPlugin::afterLogout ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

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

◆ afterUpdateUser()

ilShibbolethAuthenticationPlugin::afterUpdateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

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

◆ beforeCreateUser()

ilShibbolethAuthenticationPlugin::beforeCreateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

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

◆ beforeLogin()

ilShibbolethAuthenticationPlugin::beforeLogin ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

47  : ilObjUser
48  {
49  return $user;
50  }

◆ beforeLogout()

ilShibbolethAuthenticationPlugin::beforeLogout ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

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

◆ beforeUpdateUser()

ilShibbolethAuthenticationPlugin::beforeUpdateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

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

◆ checkValue()

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

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

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

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