ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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 function checkValue(array $a_user_data, string $a_keyword, string $a_value): 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  }
45 
46 
47  public function beforeLogin(ilObjUser $user): ilObjUser
48  {
49  return $user;
50  }
51 
52 
53  public function afterLogin(ilObjUser $user): ilObjUser
54  {
55  return $user;
56  }
57 
58 
59  public function beforeCreateUser(ilObjUser $user): ilObjUser
60  {
61  return $user;
62  }
63 
64 
65  public function afterCreateUser(ilObjUser $user): ilObjUser
66  {
67  return $user;
68  }
69 
70 
71  public function beforeLogout(ilObjUser $user): ilObjUser
72  {
73  return $user;
74  }
75 
76 
77  public function afterLogout(ilObjUser $user): ilObjUser
78  {
79  return $user;
80  }
81 
82 
83  public function beforeUpdateUser(ilObjUser $user): ilObjUser
84  {
85  return $user;
86  }
87 
88 
89  public function afterUpdateUser(ilObjUser $user): ilObjUser
90  {
91  return $user;
92  }
93 }
checkValue(array $a_user_data, string $a_keyword, string $a_value)