ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilShibbolethAuthenticationPlugin.php
Go to the documentation of this file.
1 <?php
2 /******************************************************************************
3  *
4  * This file is part of ILIAS, a powerful learning management system.
5  *
6  * ILIAS is licensed with the GPL-3.0, you should have received a copy
7  * of said license along with the source code.
8  *
9  * If this is not the case or you just want to try ILIAS, you'll find
10  * us at:
11  * https://www.ilias.de
12  * https://github.com/ILIAS-eLearning
13  *
14  *****************************************************************************/
25 {
29  protected array $active_plugins = [];
30 
34  protected function checkValue(array $a_user_data, string $a_keyword, $a_value): 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  }
50 
51 
52  public function beforeLogin(ilObjUser $user): ilObjUser
53  {
54  return $user;
55  }
56 
57 
58  public function afterLogin(ilObjUser $user): ilObjUser
59  {
60  return $user;
61  }
62 
63 
64  public function beforeCreateUser(ilObjUser $user): ilObjUser
65  {
66  return $user;
67  }
68 
69 
70  public function afterCreateUser(ilObjUser $user): ilObjUser
71  {
72  return $user;
73  }
74 
75 
76  public function beforeLogout(ilObjUser $user): ilObjUser
77  {
78  return $user;
79  }
80 
81 
82  public function afterLogout(ilObjUser $user): ilObjUser
83  {
84  return $user;
85  }
86 
87 
88  public function beforeUpdateUser(ilObjUser $user): ilObjUser
89  {
90  return $user;
91  }
92 
93 
94  public function afterUpdateUser(ilObjUser $user): ilObjUser
95  {
96  return $user;
97  }
98 }
checkValue(array $a_user_data, string $a_keyword, $a_value)