ILIAS  release_8 Revision v8.24
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['ilSetting'];
77 foreach (array_keys(get_class_vars('shibConfig')) as $field) {
78 $str = $ilSetting->get('shib_' . $field);
79 if ($str !== null) {
80 $this->{$field} = $str;
81 }
82 }
83 }
84
85 public static function getInstance(): shibConfig
86 {
87 if (!isset(self::$cache)) {
88 self::$cache = new self();
89 }
90
91 return self::$cache;
92 }
93
97 public function getValueByKey(string $key)
98 {
99 if ($key === 'cache') {
100 return null;
101 }
102 return $this->{$key};
103 }
104
105 public function setCity(string $city): void
106 {
107 $this->city = $city;
108 }
109
110 public function getCity(): string
111 {
112 return $this->city;
113 }
114
115 public function setCountry(string $country): void
116 {
117 $this->country = $country;
118 }
119
120 public function getCountry(): string
121 {
122 return $this->country;
123 }
124
125 public function setDataConv(string $data_conv): void
126 {
127 $this->data_conv = $data_conv;
128 }
129
130 public function getDataConv(): string
131 {
132 return $this->data_conv;
133 }
134
135 public function setDepartment(string $department): void
136 {
137 $this->department = $department;
138 }
139
140 public function getDepartment(): string
141 {
142 return $this->department;
143 }
144
145 public function setEmail(string $email): void
146 {
147 $this->email = $email;
148 }
149
150 public function getEmail(): string
151 {
152 return explode(';', $this->email)[0];
153 }
154
155 public function setFax(string $fax): void
156 {
157 $this->fax = $fax;
158 }
159
160 public function getFax(): string
161 {
162 return $this->fax;
163 }
164
165 public function setFirstname(string $firstname): void
166 {
167 $this->firstname = $firstname;
168 }
169
170 public function getFirstname(): string
171 {
172 return $this->firstname;
173 }
174
175 public function setGender(string $gender): void
176 {
177 $this->gender = $gender;
178 }
179
180 public function getGender(): string
181 {
182 return $this->gender;
183 }
184
185 public function setHobby(string $hobby): void
186 {
187 $this->hobby = $hobby;
188 }
189
190 public function getHobby(): string
191 {
192 return $this->hobby;
193 }
194
195 public function setInstitution(string $institution): void
196 {
197 $this->institution = $institution;
198 }
199
200 public function getInstitution(): string
201 {
202 return $this->institution;
203 }
204
205 public function setLanguage(string $language): void
206 {
207 $this->language = $language;
208 }
209
210 public function getLanguage(): string
211 {
212 return $this->language;
213 }
214
215 public function setLastname(string $lastname): void
216 {
217 $this->lastname = $lastname;
218 }
219
220 public function getLastname(): string
221 {
222 return $this->lastname;
223 }
224
225 public function setLogin(string $login): void
226 {
227 $this->login = $login;
228 }
229
230 public function getLogin(): string
231 {
232 return $this->login;
233 }
234
235 public function setMatriculation(string $matriculation): void
236 {
237 $this->matriculation = $matriculation;
238 }
239
240 public function getMatriculation(): string
241 {
243 }
244
245 public function setPhoneHome(string $phone_home): void
246 {
247 $this->phone_home = $phone_home;
248 }
249
250 public function getPhoneHome(): string
251 {
252 return $this->phone_home;
253 }
254
255 public function setPhoneMobile(string $phone_mobile): void
256 {
257 $this->phone_mobile = $phone_mobile;
258 }
259
260 public function getPhoneMobile(): string
261 {
262 return $this->phone_mobile;
263 }
264
265 public function setPhoneOffice(string $phone_office): void
266 {
267 $this->phone_office = $phone_office;
268 }
269
270 public function getPhoneOffice(): string
271 {
272 return $this->phone_office;
273 }
274
275 public function setStreet(string $street): void
276 {
277 $this->street = $street;
278 }
279
280 public function getStreet(): string
281 {
282 return $this->street;
283 }
284
285 public function setTitle(string $title): void
286 {
287 $this->title = $title;
288 }
289
290 public function getTitle(): string
291 {
292 return $this->title;
293 }
294
295 public function setUpdateCity(bool $update_city): void
296 {
297 $this->update_city = $update_city;
298 }
299
300 public function getUpdateCity(): bool
301 {
302 return $this->update_city;
303 }
304
305 public function setUpdateCountry(bool $update_country): void
306 {
307 $this->update_country = $update_country;
308 }
309
310 public function getUpdateCountry(): bool
311 {
313 }
314
315 public function setUpdateDataConv(bool $update_data_conv): void
316 {
317 $this->update_data_conv = $update_data_conv;
318 }
319
320 public function getUpdateDataConv(): bool
321 {
323 }
324
325 public function setUpdateDepartment(bool $update_department): void
326 {
327 $this->update_department = $update_department;
328 }
329
330 public function getUpdateDepartment(): bool
331 {
333 }
334
335 public function setUpdateEmail(bool $update_email): void
336 {
337 $this->update_email = $update_email;
338 }
339
340 public function getUpdateEmail(): bool
341 {
342 return $this->update_email;
343 }
344
345 public function setUpdateFax(bool $update_fax): void
346 {
347 $this->update_fax = $update_fax;
348 }
349
350 public function getUpdateFax(): bool
351 {
352 return $this->update_fax;
353 }
354
355 public function setUpdateGender(bool $update_gender): void
356 {
357 $this->update_gender = $update_gender;
358 }
359
360 public function getUpdateGender(): bool
361 {
363 }
364
365 public function setUpdateHobby(bool $update_hobby): void
366 {
367 $this->update_hobby = $update_hobby;
368 }
369
370 public function getUpdateHobby(): bool
371 {
372 return $this->update_hobby;
373 }
374
375 public function setUpdateInstitution(bool $update_institution): void
376 {
377 $this->update_institution = $update_institution;
378 }
379
380 public function getUpdateInstitution(): bool
381 {
383 }
384
385 public function setUpdateLanguage(bool $update_language): void
386 {
387 $this->update_language = $update_language;
388 }
389
390 public function getUpdateLanguage(): bool
391 {
393 }
394
395 public function setUpdateLogin(bool $update_login): void
396 {
397 $this->update_login = $update_login;
398 }
399
400 public function getUpdateLogin(): bool
401 {
402 return $this->update_login;
403 }
404
406 {
407 $this->update_matriculation = $update_matriculation;
408 }
409
410 public function getUpdateMatriculation(): bool
411 {
413 }
414
415 public function setUpdatePhoneHome(bool $update_phone_home): void
416 {
417 $this->update_phone_home = $update_phone_home;
418 }
419
420 public function getUpdatePhoneHome(): bool
421 {
423 }
424
425 public function setUpdatePhoneMobile(bool $update_phone_mobile): void
426 {
427 $this->update_phone_mobile = $update_phone_mobile;
428 }
429
430 public function getUpdatePhoneMobile(): bool
431 {
433 }
434
435 public function setUpdatePhoneOffice(bool $update_phone_office): void
436 {
437 $this->update_phone_office = $update_phone_office;
438 }
439
440 public function getUpdatePhoneOffice(): bool
441 {
443 }
444
445 public function setUpdateStreet(bool $update_street): void
446 {
447 $this->update_street = $update_street;
448 }
449
450 public function getUpdateStreet(): bool
451 {
453 }
454
458 public function setUpdateTitle(bool $update_title): void
459 {
460 $this->update_title = $update_title;
461 }
462
466 public function getUpdateTitle(): bool
467 {
468 return $this->update_title;
469 }
470
471 public function setUpdateZipcode(bool $update_zipcode): void
472 {
473 $this->update_zipcode = $update_zipcode;
474 }
475
476 public function getUpdateZipcode(): bool
477 {
479 }
480
481 public function setZipcode(string $zipcode): void
482 {
483 $this->zipcode = $zipcode;
484 }
485
486 public function getZipcode(): string
487 {
488 return $this->zipcode;
489 }
490
491 public function setUserDefaultRole(int $user_default_role): void
492 {
493 $this->user_default_role = $user_default_role;
494 }
495
496 public function getUserDefaultRole(): int
497 {
499 }
500
501 public function setUpdateFirstname(bool $update_firstname): void
502 {
503 $this->update_firstname = $update_firstname;
504 }
505
506 public function getUpdateFirstname(): bool
507 {
509 }
510
511 public function setUpdateLastname(bool $update_lastname): void
512 {
513 $this->update_lastname = $update_lastname;
514 }
515
516 public function getUpdateLastname(): bool
517 {
519 }
520
521 public function isActivateNew(): bool
522 {
523 return $this->activate_new;
524 }
525
526 public function setActivateNew(bool $activate_new): void
527 {
528 $this->activate_new = $activate_new;
529 }
530}
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 $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
string $key
Consumer key/client ID value.
Definition: System.php:193
global $ilSetting
Definition: privfeed.php:17