ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilShibbolethAuthenticationPlugin.php
Go to the documentation of this file.
1 <?php
28 {
32  protected function checkValue(array $a_user_data, string $a_keyword, string $a_value): 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  }
48 
49 
50  public function beforeLogin(ilObjUser $user): ilObjUser
51  {
52  return $user;
53  }
54 
55 
56  public function afterLogin(ilObjUser $user): ilObjUser
57  {
58  return $user;
59  }
60 
61 
62  public function beforeCreateUser(ilObjUser $user): ilObjUser
63  {
64  return $user;
65  }
66 
67 
68  public function afterCreateUser(ilObjUser $user): ilObjUser
69  {
70  return $user;
71  }
72 
73 
74  public function beforeLogout(ilObjUser $user): ilObjUser
75  {
76  return $user;
77  }
78 
79 
80  public function afterLogout(ilObjUser $user): ilObjUser
81  {
82  return $user;
83  }
84 
85 
86  public function beforeUpdateUser(ilObjUser $user): ilObjUser
87  {
88  return $user;
89  }
90 
91 
92  public function afterUpdateUser(ilObjUser $user): ilObjUser
93  {
94  return $user;
95  }
96 }
checkValue(array $a_user_data, string $a_keyword, string $a_value)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...