ILIAS  release_7 Revision v7.30-3-g800a261c036
class.shibConfig.php
Go to the documentation of this file.
1<?php
2
25{
29 protected $firstname = '';
33 protected $update_firstname = false;
37 protected $lastname = '';
41 protected $update_lastname = false;
45 protected $gender = '';
49 protected $update_gender = false;
53 protected $login = '';
57 protected $update_login = false;
61 protected $title = '';
65 protected $update_title = false;
69 protected $institution = '';
73 protected $update_institution = false;
77 protected $department = '';
81 protected $update_department = false;
85 protected $street = '';
89 protected $update_street = false;
93 protected $city = '';
97 protected $update_city = false;
101 protected $zipcode = '';
105 protected $update_zipcode = false;
109 protected $country = '';
113 protected $update_country = false;
117 protected $phone_office = '';
121 protected $update_phone_office = false;
125 protected $phone_home = '';
129 protected $update_phone_home = false;
133 protected $phone_mobile = '';
137 protected $update_phone_mobile = false;
141 protected $fax = '';
145 protected $update_fax = false;
149 protected $matriculation = '';
153 protected $update_matriculation = false;
157 protected $email = '';
161 protected $update_email = false;
165 protected $hobby = '';
169 protected $update_hobby = false;
173 protected $language = '';
177 protected $update_language = false;
181 protected $data_conv = '';
185 protected $update_data_conv = false;
189 protected $user_default_role = '4';
193 protected $activate_new = false;
197 protected static $cache;
198
199 protected function __construct()
200 {
201 global $DIC;
202 $ilSetting = $DIC['ilSetting'];
206 foreach (array_keys(get_class_vars('shibConfig')) as $field) {
207 $str = $ilSetting->get('shib_' . $field);
208 if ($str !== null) {
209 $this->{$field} = $str;
210 }
211 }
212 }
213
214 public static function getInstance() : shibConfig
215 {
216 if (!isset(self::$cache)) {
217 self::$cache = new self();
218 }
219
220 return self::$cache;
221 }
222
226 public function getValueByKey(string $key)
227 {
228 if ($key === 'cache') {
229 return null;
230 }
231 return $this->{$key};
232 }
233
234 public function setCity(string $city) : void
235 {
236 $this->city = $city;
237 }
238
239 public function getCity() : string
240 {
241 return $this->city;
242 }
243
244 public function setCountry(string $country) : void
245 {
246 $this->country = $country;
247 }
248
249 public function getCountry() : string
250 {
251 return $this->country;
252 }
253
254 public function setDataConv(string $data_conv) : void
255 {
256 $this->data_conv = $data_conv;
257 }
258
259 public function getDataConv() : string
260 {
261 return $this->data_conv;
262 }
263
264 public function setDepartment(string $department) : void
265 {
266 $this->department = $department;
267 }
268
269 public function getDepartment() : string
270 {
271 return $this->department;
272 }
273
274 public function setEmail(string $email) : void
275 {
276 $this->email = $email;
277 }
278
279 public function getEmail() : string
280 {
281 return explode(';', $this->email)[0];
282 }
283
284 public function setFax(string $fax) : void
285 {
286 $this->fax = $fax;
287 }
288
289 public function getFax() : string
290 {
291 return $this->fax;
292 }
293
294 public function setFirstname(string $firstname) : void
295 {
296 $this->firstname = $firstname;
297 }
298
299 public function getFirstname() : string
300 {
301 return $this->firstname;
302 }
303
304 public function setGender(string $gender) : void
305 {
306 $this->gender = $gender;
307 }
308
309 public function getGender() : string
310 {
311 return $this->gender;
312 }
313
314 public function setHobby(string $hobby) : void
315 {
316 $this->hobby = $hobby;
317 }
318
319 public function getHobby() : string
320 {
321 return $this->hobby;
322 }
323
324 public function setInstitution(string $institution) : void
325 {
326 $this->institution = $institution;
327 }
328
329 public function getInstitution() : string
330 {
331 return $this->institution;
332 }
333
334 public function setLanguage(string $language) : void
335 {
336 $this->language = $language;
337 }
338
339 public function getLanguage() : string
340 {
341 return $this->language;
342 }
343
344 public function setLastname(string $lastname) : void
345 {
346 $this->lastname = $lastname;
347 }
348
349 public function getLastname() : string
350 {
351 return $this->lastname;
352 }
353
354 public function setLogin(string $login) : void
355 {
356 $this->login = $login;
357 }
358
359 public function getLogin() : string
360 {
361 return $this->login;
362 }
363
364 public function setMatriculation(string $matriculation) : void
365 {
366 $this->matriculation = $matriculation;
367 }
368
369 public function getMatriculation() : string
370 {
372 }
373
374 public function setPhoneHome(string $phone_home) : void
375 {
376 $this->phone_home = $phone_home;
377 }
378
379 public function getPhoneHome() : string
380 {
381 return $this->phone_home;
382 }
383
384 public function setPhoneMobile(string $phone_mobile) : void
385 {
386 $this->phone_mobile = $phone_mobile;
387 }
388
389 public function getPhoneMobile() : string
390 {
391 return $this->phone_mobile;
392 }
393
394 public function setPhoneOffice(string $phone_office) : void
395 {
396 $this->phone_office = $phone_office;
397 }
398
399 public function getPhoneOffice() : string
400 {
401 return $this->phone_office;
402 }
403
404 public function setStreet(string $street) : void
405 {
406 $this->street = $street;
407 }
408
409 public function getStreet() : string
410 {
411 return $this->street;
412 }
413
414 public function setTitle(string $title) : void
415 {
416 $this->title = $title;
417 }
418
419 public function getTitle() : string
420 {
421 return $this->title;
422 }
423
424 public function setUpdateCity(bool $update_city) : void
425 {
426 $this->update_city = $update_city;
427 }
428
429 public function getUpdateCity() : bool
430 {
431 return $this->update_city;
432 }
433
434 public function setUpdateCountry(bool $update_country) : void
435 {
436 $this->update_country = $update_country;
437 }
438
439 public function getUpdateCountry() : bool
440 {
442 }
443
444 public function setUpdateDataConv(bool $update_data_conv) : void
445 {
446 $this->update_data_conv = $update_data_conv;
447 }
448
449 public function getUpdateDataConv() : bool
450 {
452 }
453
454 public function setUpdateDepartment(bool $update_department) : void
455 {
456 $this->update_department = $update_department;
457 }
458
459 public function getUpdateDepartment() : bool
460 {
462 }
463
464 public function setUpdateEmail(bool $update_email) : void
465 {
466 $this->update_email = $update_email;
467 }
468
469 public function getUpdateEmail() : bool
470 {
471 return $this->update_email;
472 }
473
474 public function setUpdateFax(bool $update_fax) : void
475 {
476 $this->update_fax = $update_fax;
477 }
478
479 public function getUpdateFax() : bool
480 {
481 return $this->update_fax;
482 }
483
484 public function setUpdateGender(bool $update_gender) : void
485 {
486 $this->update_gender = $update_gender;
487 }
488
489 public function getUpdateGender() : bool
490 {
492 }
493
494 public function setUpdateHobby(bool $update_hobby) : void
495 {
496 $this->update_hobby = $update_hobby;
497 }
498
499 public function getUpdateHobby() : bool
500 {
501 return $this->update_hobby;
502 }
503
504 public function setUpdateInstitution(bool $update_institution) : void
505 {
506 $this->update_institution = $update_institution;
507 }
508
509 public function getUpdateInstitution() : bool
510 {
512 }
513
514 public function setUpdateLanguage(bool $update_language) : void
515 {
516 $this->update_language = $update_language;
517 }
518
519 public function getUpdateLanguage() : bool
520 {
522 }
523
524 public function setUpdateLogin(bool $update_login) : void
525 {
526 $this->update_login = $update_login;
527 }
528
529 public function getUpdateLogin() : bool
530 {
531 return $this->update_login;
532 }
533
535 {
536 $this->update_matriculation = $update_matriculation;
537 }
538
539 public function getUpdateMatriculation() : bool
540 {
542 }
543
544 public function setUpdatePhoneHome(bool $update_phone_home) : void
545 {
546 $this->update_phone_home = $update_phone_home;
547 }
548
549 public function getUpdatePhoneHome() : bool
550 {
552 }
553
554 public function setUpdatePhoneMobile(bool $update_phone_mobile) : void
555 {
556 $this->update_phone_mobile = $update_phone_mobile;
557 }
558
559 public function getUpdatePhoneMobile() : bool
560 {
562 }
563
564 public function setUpdatePhoneOffice(bool $update_phone_office) : void
565 {
566 $this->update_phone_office = $update_phone_office;
567 }
568
569 public function getUpdatePhoneOffice() : bool
570 {
572 }
573
574 public function setUpdateStreet(bool $update_street) : void
575 {
576 $this->update_street = $update_street;
577 }
578
579 public function getUpdateStreet() : bool
580 {
582 }
583
587 public function setUpdateTitle(bool $update_title) : void
588 {
589 $this->update_title = $update_title;
590 }
591
595 public function getUpdateTitle() : bool
596 {
597 return $this->update_title;
598 }
599
600 public function setUpdateZipcode(bool $update_zipcode) : void
601 {
602 $this->update_zipcode = $update_zipcode;
603 }
604
605 public function getUpdateZipcode() : bool
606 {
608 }
609
610 public function setZipcode(string $zipcode) : void
611 {
612 $this->zipcode = $zipcode;
613 }
614
615 public function getZipcode() : string
616 {
617 return $this->zipcode;
618 }
619
620 public function setUserDefaultRole(int $user_default_role) : void
621 {
622 $this->user_default_role = $user_default_role;
623 }
624
625 public function getUserDefaultRole() : int
626 {
628 }
629
630 public function setUpdateFirstname(bool $update_firstname) : void
631 {
632 $this->update_firstname = $update_firstname;
633 }
634
635 public function getUpdateFirstname() : bool
636 {
638 }
639
640 public function setUpdateLastname(bool $update_lastname) : void
641 {
642 $this->update_lastname = $update_lastname;
643 }
644
645 public function getUpdateLastname() : bool
646 {
648 }
649
650 public function isActivateNew() : bool
651 {
652 return $this->activate_new;
653 }
654
655 public function setActivateNew(bool $activate_new) : void
656 {
657 $this->activate_new = $activate_new;
658 }
659}
An exception for terminatinating execution or to throw for unit testing.
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)
setMatriculation(string $matriculation)
setUpdateFax(bool $update_fax)
setLogin(string $login)
setActivateNew(bool $activate_new)
setLastname(string $lastname)
setPhoneMobile(string $phone_mobile)
setUpdateFirstname(bool $update_firstname)
setZipcode(string $zipcode)
setUpdateGender(bool $update_gender)
setPhoneHome(string $phone_home)
setUpdateLogin(bool $update_login)
setUpdatePhoneOffice(bool $update_phone_office)
setUpdateLastname(bool $update_lastname)
setUpdateTitle(bool $update_title)
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)
setUpdateDataConv(bool $update_data_conv)
setTitle(string $title)
setUpdateLanguage(bool $update_language)
setEmail(string $email)
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)
setPhoneOffice(string $phone_office)
global $DIC
Definition: goto.php:24
language()
Definition: language.php:2
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $ilSetting
Definition: privfeed.php:17
login()
Definition: login.php:2