ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.shibConfig.php
Go to the documentation of this file.
1<?php
2
25{
26 protected string $firstname = '';
27 protected bool $update_firstname = false;
28 protected string $lastname = '';
29 protected bool $update_lastname = false;
30 protected string $gender = '';
31 protected bool $update_gender = false;
32 protected string $login = '';
33 protected bool $update_login = false;
34 protected string $title = '';
35 protected bool $update_title = false;
36 protected string $institution = '';
37 protected bool $update_institution = false;
38 protected string $department = '';
39 protected bool $update_department = false;
40 protected string $street = '';
41 protected bool $update_street = false;
42 protected string $city = '';
43 protected bool $update_city = false;
44 protected string $zipcode = '';
45 protected bool $update_zipcode = false;
46 protected string $country = '';
47 protected bool $update_country = false;
48 protected string $phone_office = '';
49 protected bool $update_phone_office = false;
50 protected string $phone_home = '';
51 protected bool $update_phone_home = false;
52 protected string $phone_mobile = '';
53 protected bool $update_phone_mobile = false;
54 protected string $fax = '';
55 protected bool $update_fax = false;
56 protected string $matriculation = '';
57 protected bool $update_matriculation = false;
58 protected string $email = '';
59 protected bool $update_email = false;
60 protected string $hobby = '';
61 protected bool $update_hobby = false;
62 protected string $language = '';
63 protected bool $update_language = false;
64 protected string $data_conv = '';
65 protected bool $update_data_conv = false;
66 protected string $user_default_role = '4';
67 protected bool $activate_new = false;
68 protected static ?shibConfig $cache = null;
69
70 protected function __construct()
71 {
72 global $DIC;
73 $ilSetting = $DIC->settings();
74 foreach (array_keys(get_class_vars('shibConfig')) as $field) {
75 $str = $ilSetting->get('shib_' . $field);
76 if ($str !== null) {
77 $this->{$field} = $str;
78 }
79 }
80 }
81
82 public static function getInstance(): shibConfig
83 {
84 if (!isset(self::$cache)) {
85 self::$cache = new self();
86 }
87
88 return self::$cache;
89 }
90
94 public function getValueByKey(string $key)
95 {
96 if ($key === 'cache') {
97 return null;
98 }
99 return $this->{$key};
100 }
101
102 public function setCity(string $city): void
103 {
104 $this->city = $city;
105 }
106
107 public function getCity(): string
108 {
109 return $this->city;
110 }
111
112 public function setCountry(string $country): void
113 {
114 $this->country = $country;
115 }
116
117 public function getCountry(): string
118 {
119 return $this->country;
120 }
121
122 public function setDataConv(string $data_conv): void
123 {
124 $this->data_conv = $data_conv;
125 }
126
127 public function getDataConv(): string
128 {
129 return $this->data_conv;
130 }
131
132 public function setDepartment(string $department): void
133 {
134 $this->department = $department;
135 }
136
137 public function getDepartment(): string
138 {
139 return $this->department;
140 }
141
142 public function setEmail(string $email): void
143 {
144 $this->email = $email;
145 }
146
147 public function getEmail(): string
148 {
149 return explode(';', $this->email)[0];
150 }
151
152 public function setFax(string $fax): void
153 {
154 $this->fax = $fax;
155 }
156
157 public function getFax(): string
158 {
159 return $this->fax;
160 }
161
162 public function setFirstname(string $firstname): void
163 {
164 $this->firstname = $firstname;
165 }
166
167 public function getFirstname(): string
168 {
169 return $this->firstname;
170 }
171
172 public function setGender(string $gender): void
173 {
174 $this->gender = $gender;
175 }
176
177 public function getGender(): string
178 {
179 return $this->gender;
180 }
181
182 public function setHobby(string $hobby): void
183 {
184 $this->hobby = $hobby;
185 }
186
187 public function getHobby(): string
188 {
189 return $this->hobby;
190 }
191
192 public function setInstitution(string $institution): void
193 {
194 $this->institution = $institution;
195 }
196
197 public function getInstitution(): string
198 {
199 return $this->institution;
200 }
201
202 public function setLanguage(string $language): void
203 {
204 $this->language = $language;
205 }
206
207 public function getLanguage(): string
208 {
209 return $this->language;
210 }
211
212 public function setLastname(string $lastname): void
213 {
214 $this->lastname = $lastname;
215 }
216
217 public function getLastname(): string
218 {
219 return $this->lastname;
220 }
221
222 public function setLogin(string $login): void
223 {
224 $this->login = $login;
225 }
226
227 public function getLogin(): string
228 {
229 return $this->login;
230 }
231
232 public function setMatriculation(string $matriculation): void
233 {
234 $this->matriculation = $matriculation;
235 }
236
237 public function getMatriculation(): string
238 {
240 }
241
242 public function setPhoneHome(string $phone_home): void
243 {
244 $this->phone_home = $phone_home;
245 }
246
247 public function getPhoneHome(): string
248 {
249 return $this->phone_home;
250 }
251
252 public function setPhoneMobile(string $phone_mobile): void
253 {
254 $this->phone_mobile = $phone_mobile;
255 }
256
257 public function getPhoneMobile(): string
258 {
259 return $this->phone_mobile;
260 }
261
262 public function setPhoneOffice(string $phone_office): void
263 {
264 $this->phone_office = $phone_office;
265 }
266
267 public function getPhoneOffice(): string
268 {
269 return $this->phone_office;
270 }
271
272 public function setStreet(string $street): void
273 {
274 $this->street = $street;
275 }
276
277 public function getStreet(): string
278 {
279 return $this->street;
280 }
281
282 public function setTitle(string $title): void
283 {
284 $this->title = $title;
285 }
286
287 public function getTitle(): string
288 {
289 return $this->title;
290 }
291
292 public function setUpdateCity(bool $update_city): void
293 {
294 $this->update_city = $update_city;
295 }
296
297 public function getUpdateCity(): bool
298 {
299 return $this->update_city;
300 }
301
302 public function setUpdateCountry(bool $update_country): void
303 {
304 $this->update_country = $update_country;
305 }
306
307 public function getUpdateCountry(): bool
308 {
310 }
311
312 public function setUpdateDataConv(bool $update_data_conv): void
313 {
314 $this->update_data_conv = $update_data_conv;
315 }
316
317 public function getUpdateDataConv(): bool
318 {
320 }
321
322 public function setUpdateDepartment(bool $update_department): void
323 {
324 $this->update_department = $update_department;
325 }
326
327 public function getUpdateDepartment(): bool
328 {
330 }
331
332 public function setUpdateEmail(bool $update_email): void
333 {
334 $this->update_email = $update_email;
335 }
336
337 public function getUpdateEmail(): bool
338 {
339 return $this->update_email;
340 }
341
342 public function setUpdateFax(bool $update_fax): void
343 {
344 $this->update_fax = $update_fax;
345 }
346
347 public function getUpdateFax(): bool
348 {
349 return $this->update_fax;
350 }
351
352 public function setUpdateGender(bool $update_gender): void
353 {
354 $this->update_gender = $update_gender;
355 }
356
357 public function getUpdateGender(): bool
358 {
360 }
361
362 public function setUpdateHobby(bool $update_hobby): void
363 {
364 $this->update_hobby = $update_hobby;
365 }
366
367 public function getUpdateHobby(): bool
368 {
369 return $this->update_hobby;
370 }
371
372 public function setUpdateInstitution(bool $update_institution): void
373 {
374 $this->update_institution = $update_institution;
375 }
376
377 public function getUpdateInstitution(): bool
378 {
380 }
381
382 public function setUpdateLanguage(bool $update_language): void
383 {
384 $this->update_language = $update_language;
385 }
386
387 public function getUpdateLanguage(): bool
388 {
390 }
391
392 public function setUpdateLogin(bool $update_login): void
393 {
394 $this->update_login = $update_login;
395 }
396
397 public function getUpdateLogin(): bool
398 {
399 return $this->update_login;
400 }
401
403 {
404 $this->update_matriculation = $update_matriculation;
405 }
406
407 public function getUpdateMatriculation(): bool
408 {
410 }
411
412 public function setUpdatePhoneHome(bool $update_phone_home): void
413 {
414 $this->update_phone_home = $update_phone_home;
415 }
416
417 public function getUpdatePhoneHome(): bool
418 {
420 }
421
422 public function setUpdatePhoneMobile(bool $update_phone_mobile): void
423 {
424 $this->update_phone_mobile = $update_phone_mobile;
425 }
426
427 public function getUpdatePhoneMobile(): bool
428 {
430 }
431
432 public function setUpdatePhoneOffice(bool $update_phone_office): void
433 {
434 $this->update_phone_office = $update_phone_office;
435 }
436
437 public function getUpdatePhoneOffice(): bool
438 {
440 }
441
442 public function setUpdateStreet(bool $update_street): void
443 {
444 $this->update_street = $update_street;
445 }
446
447 public function getUpdateStreet(): bool
448 {
450 }
451
455 public function setUpdateTitle(bool $update_title): void
456 {
457 $this->update_title = $update_title;
458 }
459
463 public function getUpdateTitle(): bool
464 {
465 return $this->update_title;
466 }
467
468 public function setUpdateZipcode(bool $update_zipcode): void
469 {
470 $this->update_zipcode = $update_zipcode;
471 }
472
473 public function getUpdateZipcode(): bool
474 {
476 }
477
478 public function setZipcode(string $zipcode): void
479 {
480 $this->zipcode = $zipcode;
481 }
482
483 public function getZipcode(): string
484 {
485 return $this->zipcode;
486 }
487
488 public function setUserDefaultRole(int $user_default_role): void
489 {
490 $this->user_default_role = $user_default_role;
491 }
492
493 public function getUserDefaultRole(): int
494 {
496 }
497
498 public function setUpdateFirstname(bool $update_firstname): void
499 {
500 $this->update_firstname = $update_firstname;
501 }
502
503 public function getUpdateFirstname(): bool
504 {
506 }
507
508 public function setUpdateLastname(bool $update_lastname): void
509 {
510 $this->update_lastname = $update_lastname;
511 }
512
513 public function getUpdateLastname(): bool
514 {
516 }
517
518 public function isActivateNew(): bool
519 {
520 return $this->activate_new;
521 }
522
523 public function setActivateNew(bool $activate_new): void
524 {
525 $this->activate_new = $activate_new;
526 }
527}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setDepartment(string $department)
setUpdateCountry(bool $update_country)
string $phone_office
setMatriculation(string $matriculation)
setUpdateFax(bool $update_fax)
bool $update_phone_mobile
setLogin(string $login)
setActivateNew(bool $activate_new)
setLastname(string $lastname)
string $phone_home
setPhoneMobile(string $phone_mobile)
setUpdateFirstname(bool $update_firstname)
bool $update_institution
string $matriculation
setZipcode(string $zipcode)
setUpdateGender(bool $update_gender)
setPhoneHome(string $phone_home)
setUpdateLogin(bool $update_login)
setUpdatePhoneOffice(bool $update_phone_office)
setUpdateLastname(bool $update_lastname)
string $department
string $user_default_role
setUpdateTitle(bool $update_title)
string $institution
bool $update_phone_office
bool $update_department
setGender(string $gender)
setHobby(string $hobby)
setCity(string $city)
setUpdateDepartment(bool $update_department)
setFax(string $fax)
setUserDefaultRole(int $user_default_role)
static getInstance()
setUpdatePhoneMobile(bool $update_phone_mobile)
setUpdateCity(bool $update_city)
string $phone_mobile
setUpdateDataConv(bool $update_data_conv)
static shibConfig $cache
setTitle(string $title)
setUpdateLanguage(bool $update_language)
setEmail(string $email)
bool $update_phone_home
getValueByKey(string $key)
setUpdateEmail(bool $update_email)
setUpdateStreet(bool $update_street)
setUpdateInstitution(bool $update_institution)
setInstitution(string $institution)
setUpdateMatriculation(bool $update_matriculation)
setDataConv(string $data_conv)
setUpdateHobby(bool $update_hobby)
setCountry(string $country)
setStreet(string $street)
setUpdatePhoneHome(bool $update_phone_home)
setFirstname(string $firstname)
setLanguage(string $language)
setUpdateZipcode(bool $update_zipcode)
bool $update_matriculation
bool $update_data_conv
setPhoneOffice(string $phone_office)
bool $update_firstname
global $ilSetting
Definition: privfeed.php:31
global $DIC
Definition: shib_login.php:26