ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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)
 @deprecate ILIAS is moving towards UI components and plugins are expected to use these components. More...
 
 getStyleSheetLocation (string $a_css_file)
 @deprecate ILIAS is moving towards UI components and plugins are expected to use these components. More...
 
 addBlockFile ($a_tpl, $a_var, $a_block, $a_tplname)
 @deprecate 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...
 
 beforeLogin (ilObjUser $user)
 
 afterLogin (ilObjUser $user)
 
 beforeLogout (ilObjUser $user)
 
 afterLogout (ilObjUser $user)
 
 beforeCreateUser (ilObjUser $user)
 
 afterCreateUser (ilObjUser $user)
 
 beforeUpdateUser (ilObjUser $user)
 
 afterUpdateUser (ilObjUser $user)
 

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 ()
 @deprecate If you cannot get rid of the requirement to use this, adjust the install method in your subclass instead. More...
 
 beforeUninstall ()
 @deprecate If you cannot get rid of the requirement to use this, adjust the uninstall method in your subclass instead. More...
 
 afterUninstall ()
 @deprecate If you cannot get rid of the requirement to use this, adjust the uninstall method in your subclass instead. More...
 
 beforeActivation ()
 @deprecate If you cannot get rid of the requirement to use this, adjust the activate method in your subclass instead. More...
 
 afterActivation ()
 @deprecate If you cannot get rid of the requirement to use this, adjust the activate method in your subclass instead. More...
 
 afterDeactivation ()
 @deprecate If you cannot get rid of the requirement to use this, adjust the activate method in your subclass instead. More...
 
 updateDatabase ()
 
 beforeUpdate ()
 @deprecate 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 28 of file class.ilShibbolethAuthenticationPlugin.php.

Member Function Documentation

◆ afterCreateUser()

ilShibbolethAuthenticationPlugin::afterCreateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

69 : ilObjUser
70 {
71 return $user;
72 }
User class.

◆ afterLogin()

ilShibbolethAuthenticationPlugin::afterLogin ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

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

◆ afterLogout()

ilShibbolethAuthenticationPlugin::afterLogout ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

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

◆ afterUpdateUser()

ilShibbolethAuthenticationPlugin::afterUpdateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

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

◆ beforeCreateUser()

ilShibbolethAuthenticationPlugin::beforeCreateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

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

◆ beforeLogin()

ilShibbolethAuthenticationPlugin::beforeLogin ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

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

◆ beforeLogout()

ilShibbolethAuthenticationPlugin::beforeLogout ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

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

◆ beforeUpdateUser()

ilShibbolethAuthenticationPlugin::beforeUpdateUser ( ilObjUser  $user)

Implements ilShibbolethAuthenticationPluginInt.

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

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

◆ checkValue()

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

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

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

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