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