ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.shibConfig.php
Go to the documentation of this file.
1<?php
2
9{
10
14 protected $firstname = '';
18 protected $update_firstname = false;
22 protected $lastname = '';
26 protected $update_lastname = false;
30 protected $gender = '';
34 protected $update_gender = false;
38 protected $login = '';
42 protected $update_login = false;
46 protected $title = '';
50 protected $update_title;
54 protected $institution = '';
58 protected $update_institution = false;
62 protected $department = '';
66 protected $update_department = false;
70 protected $street = '';
74 protected $update_street = false;
78 protected $city = '';
82 protected $update_city = false;
86 protected $zipcode = 0;
90 protected $update_zipcode = false;
94 protected $country = '';
98 protected $update_country = false;
102 protected $phone_office = '';
106 protected $update_phone_office = false;
110 protected $phone_home = '';
114 protected $update_phone_home = false;
118 protected $phone_mobile = '';
122 protected $update_phone_mobile = false;
126 protected $fax = '';
130 protected $update_fax = false;
134 protected $matriculation = '';
138 protected $update_matriculation = false;
142 protected $email = '';
146 protected $update_email = false;
150 protected $hobby = '';
154 protected $update_hobby = false;
158 protected $language = '';
162 protected $update_language = false;
166 protected $data_conv = '';
170 protected $update_data_conv = false;
174 protected $user_default_role = 4;
178 protected $activate_new = false;
182 protected static $cache = null;
183
184
185 protected function __construct()
186 {
187 global $DIC;
188 $ilSetting = $DIC['ilSetting'];
192 foreach (get_class_vars('shibConfig') as $field => $val) {
193 $str = $ilSetting->get('shib_' . $field);
194 if ($str !== null) {
195 $this->{$field} = $str;
196 }
197 }
198
199 if (!in_array(strtolower($this->getGender()), ['n', 'm', 'f'])) {
200 $this->setGender(null);
201 }
202 }
203
204
208 public static function getInstance()
209 {
210 if (!isset(self::$cache)) {
211 self::$cache = new self();
212 }
213
214 return self::$cache;
215 }
216
217
223 public function getValueByKey($key)
224 {
225 return $this->{$key};
226 }
227
228
232 public function setCity($city)
233 {
234 $this->city = $city;
235 }
236
237
241 public function getCity()
242 {
243 return $this->city;
244 }
245
246
250 public function setCountry($country)
251 {
252 $this->country = $country;
253 }
254
255
259 public function getCountry()
260 {
261 return $this->country;
262 }
263
264
268 public function setDataConv($data_conv)
269 {
270 $this->data_conv = $data_conv;
271 }
272
273
277 public function getDataConv()
278 {
279 return $this->data_conv;
280 }
281
282
286 public function setDepartment($department)
287 {
288 $this->department = $department;
289 }
290
291
295 public function getDepartment()
296 {
297 return $this->department;
298 }
299
300
304 public function setEmail($email)
305 {
306 $this->email = $email;
307 }
308
309
313 public function getEmail()
314 {
315 return explode(';', $this->email)[0];
316 }
317
318
322 public function setFax($fax)
323 {
324 $this->fax = $fax;
325 }
326
327
331 public function getFax()
332 {
333 return $this->fax;
334 }
335
336
340 public function setFirstname($firstname)
341 {
342 $this->firstname = $firstname;
343 }
344
345
349 public function getFirstname()
350 {
351 return $this->firstname;
352 }
353
354
358 public function setGender($gender)
359 {
360 $this->gender = $gender;
361 }
362
363
367 public function getGender()
368 {
369 return $this->gender;
370 }
371
372
376 public function setHobby($hobby)
377 {
378 $this->hobby = $hobby;
379 }
380
381
385 public function getHobby()
386 {
387 return $this->hobby;
388 }
389
390
395 {
396 $this->institution = $institution;
397 }
398
399
403 public function getInstitution()
404 {
405 return $this->institution;
406 }
407
408
412 public function setLanguage($language)
413 {
414 $this->language = $language;
415 }
416
417
421 public function getLanguage()
422 {
423 return $this->language;
424 }
425
426
430 public function setLastname($lastname)
431 {
432 $this->lastname = $lastname;
433 }
434
435
439 public function getLastname()
440 {
441 return $this->lastname;
442 }
443
444
448 public function setLogin($login)
449 {
450 $this->login = $login;
451 }
452
453
457 public function getLogin()
458 {
459 return $this->login;
460 }
461
462
467 {
468 $this->matriculation = $matriculation;
469 }
470
471
475 public function getMatriculation()
476 {
478 }
479
480
484 public function setPhoneHome($phone_home)
485 {
486 $this->phone_home = $phone_home;
487 }
488
489
493 public function getPhoneHome()
494 {
495 return $this->phone_home;
496 }
497
498
503 {
504 $this->phone_mobile = $phone_mobile;
505 }
506
507
511 public function getPhoneMobile()
512 {
513 return $this->phone_mobile;
514 }
515
516
521 {
522 $this->phone_office = $phone_office;
523 }
524
525
529 public function getPhoneOffice()
530 {
531 return $this->phone_office;
532 }
533
534
538 public function setStreet($street)
539 {
540 $this->street = $street;
541 }
542
543
547 public function getStreet()
548 {
549 return $this->street;
550 }
551
552
556 public function setTitle($title)
557 {
558 $this->title = $title;
559 }
560
561
565 public function getTitle()
566 {
567 return $this->title;
568 }
569
570
575 {
576 $this->update_city = $update_city;
577 }
578
579
583 public function getUpdateCity()
584 {
585 return $this->update_city;
586 }
587
588
593 {
594 $this->update_country = $update_country;
595 }
596
597
601 public function getUpdateCountry()
602 {
604 }
605
606
611 {
612 $this->update_data_conv = $update_data_conv;
613 }
614
615
619 public function getUpdateDataConv()
620 {
622 }
623
624
629 {
630 $this->update_department = $update_department;
631 }
632
633
637 public function getUpdateDepartment()
638 {
640 }
641
642
647 {
648 $this->update_email = $update_email;
649 }
650
651
655 public function getUpdateEmail()
656 {
657 return $this->update_email;
658 }
659
660
664 public function setUpdateFax($update_fax)
665 {
666 $this->update_fax = $update_fax;
667 }
668
669
673 public function getUpdateFax()
674 {
675 return $this->update_fax;
676 }
677
678
683 {
684 $this->update_gender = $update_gender;
685 }
686
687
691 public function getUpdateGender()
692 {
694 }
695
696
701 {
702 $this->update_hobby = $update_hobby;
703 }
704
705
709 public function getUpdateHobby()
710 {
711 return $this->update_hobby;
712 }
713
714
719 {
720 $this->update_institution = $update_institution;
721 }
722
723
727 public function getUpdateInstitution()
728 {
730 }
731
732
737 {
738 $this->update_language = $update_language;
739 }
740
741
745 public function getUpdateLanguage()
746 {
748 }
749
750
755 {
756 $this->update_login = $update_login;
757 }
758
759
763 public function getUpdateLogin()
764 {
765 return $this->update_login;
766 }
767
768
773 {
774 $this->update_matriculation = $update_matriculation;
775 }
776
777
781 public function getUpdateMatriculation()
782 {
784 }
785
786
791 {
792 $this->update_phone_home = $update_phone_home;
793 }
794
795
799 public function getUpdatePhoneHome()
800 {
802 }
803
804
809 {
810 $this->update_phone_mobile = $update_phone_mobile;
811 }
812
813
817 public function getUpdatePhoneMobile()
818 {
820 }
821
822
827 {
828 $this->update_phone_office = $update_phone_office;
829 }
830
831
835 public function getUpdatePhoneOffice()
836 {
838 }
839
840
845 {
846 $this->update_street = $update_street;
847 }
848
849
853 public function getUpdateStreet()
854 {
856 }
857
858
863 {
864 $this->update_title = $update_title;
865 }
866
867
871 public function getUpdateTitle()
872 {
873 return $this->update_title;
874 }
875
876
881 {
882 $this->update_zipcode = $update_zipcode;
883 }
884
885
889 public function getUpdateZipcode()
890 {
892 }
893
894
898 public function setZipcode($zipcode)
899 {
900 $this->zipcode = $zipcode;
901 }
902
903
907 public function getZipcode()
908 {
909 return $this->zipcode;
910 }
911
912
917 {
918 $this->user_default_role = $user_default_role;
919 }
920
921
925 public function getUserDefaultRole()
926 {
928 }
929
930
935 {
936 $this->update_firstname = $update_firstname;
937 }
938
939
943 public function getUpdateFirstname()
944 {
946 }
947
948
953 {
954 $this->update_lastname = $update_lastname;
955 }
956
957
961 public function getUpdateLastname()
962 {
964 }
965
966
970 public function isActivateNew()
971 {
972 return $this->activate_new;
973 }
974
975
980 {
981 $this->activate_new = $activate_new;
982 }
983}
An exception for terminatinating execution or to throw for unit testing.
Class shibConfig.
setUpdateLastname($update_lastname)
setUpdateFax($update_fax)
setUpdateStreet($update_street)
setUpdateLanguage($update_language)
setPhoneMobile($phone_mobile)
setStreet($street)
setUserDefaultRole($user_default_role)
setUpdateCountry($update_country)
setUpdateDepartment($update_department)
setLastname($lastname)
setUpdateCity($update_city)
setUpdateEmail($update_email)
setUpdateMatriculation($update_matriculation)
setUpdateGender($update_gender)
setUpdateLogin($update_login)
setUpdateHobby($update_hobby)
setLanguage($language)
setDataConv($data_conv)
setPhoneHome($phone_home)
setUpdatePhoneMobile($update_phone_mobile)
setZipcode($zipcode)
setUpdateFirstname($update_firstname)
setUpdateTitle($update_title)
setInstitution($institution)
static getInstance()
setCountry($country)
setMatriculation($matriculation)
setUpdateDataConv($update_data_conv)
setDepartment($department)
setGender($gender)
setUpdateInstitution($update_institution)
setActivateNew($activate_new)
setUpdatePhoneOffice($update_phone_office)
setPhoneOffice($phone_office)
setUpdatePhoneHome($update_phone_home)
setFirstname($firstname)
setUpdateZipcode($update_zipcode)
language()
Definition: language.php:2
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $ilSetting
Definition: privfeed.php:17
login()
Definition: login.php:2
$DIC
Definition: xapitoken.php:46