ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.shibConfig.php
Go to the documentation of this file.
1<?php
2
8class shibConfig {
9
13 protected $firstname = '';
17 protected $update_firstname = false;
21 protected $lastname = '';
25 protected $update_lastname = false;
29 protected $gender = '';
33 protected $update_gender = false;
37 protected $login = '';
41 protected $update_login = false;
45 protected $title = '';
49 protected $update_title;
53 protected $institution = '';
57 protected $update_institution = false;
61 protected $department = '';
65 protected $update_department = false;
69 protected $street = '';
73 protected $update_street = false;
77 protected $city = '';
81 protected $update_city = false;
85 protected $zipcode = 0;
89 protected $update_zipcode = false;
93 protected $country = '';
97 protected $update_country = false;
101 protected $phone_office = '';
105 protected $update_phone_office = false;
109 protected $phone_home = '';
113 protected $update_phone_home = false;
117 protected $phone_mobile = '';
121 protected $update_phone_mobile = false;
125 protected $fax = '';
129 protected $update_fax = false;
133 protected $matriculation = '';
137 protected $update_matriculation = false;
141 protected $email = '';
145 protected $update_email = false;
149 protected $hobby = '';
153 protected $update_hobby = false;
157 protected $language = '';
161 protected $update_language = false;
165 protected $data_conv = '';
169 protected $update_data_conv = false;
173 protected $user_default_role = 4;
177 protected static $cache = NULL;
178
179
180 protected function __construct() {
181 global $ilSetting;
185 foreach (get_class_vars('shibConfig') as $field => $val) {
186 $str = $ilSetting->get('shib_' . $field);
187 if ($str !== NULL) {
188 $this->{$field} = $str;
189 }
190 }
191
192 if ($this->getGender() != 'm' OR $this->getGender() != 'w') {
193 $this->setGender(NULL);
194 }
195 }
196
197
201 public static function getInstance() {
202 if (! isset(self::$cache)) {
203 self::$cache = new self();
204 }
205
206 return self::$cache;
207 }
208
209
215 public function getValueByKey($key) {
216
217 return $this->{$key};
218 }
219
220
224 public function setCity($city) {
225 $this->city = $city;
226 }
227
228
232 public function getCity() {
233 return $this->city;
234 }
235
236
240 public function setCountry($country) {
241 $this->country = $country;
242 }
243
244
248 public function getCountry() {
249 return $this->country;
250 }
251
252
256 public function setDataConv($data_conv) {
257 $this->data_conv = $data_conv;
258 }
259
260
264 public function getDataConv() {
265 return $this->data_conv;
266 }
267
268
272 public function setDepartment($department) {
273 $this->department = $department;
274 }
275
276
280 public function getDepartment() {
281 return $this->department;
282 }
283
284
288 public function setEmail($email) {
289 $this->email = $email;
290 }
291
292
296 public function getEmail() {
297 return $this->email;
298 }
299
300
304 public function setFax($fax) {
305 $this->fax = $fax;
306 }
307
308
312 public function getFax() {
313 return $this->fax;
314 }
315
316
320 public function setFirstname($firstname) {
321 $this->firstname = $firstname;
322 }
323
324
328 public function getFirstname() {
329 return $this->firstname;
330 }
331
332
336 public function setGender($gender) {
337 $this->gender = $gender;
338 }
339
340
344 public function getGender() {
345 return $this->gender;
346 }
347
348
352 public function setHobby($hobby) {
353 $this->hobby = $hobby;
354 }
355
356
360 public function getHobby() {
361 return $this->hobby;
362 }
363
364
368 public function setInstitution($institution) {
369 $this->institution = $institution;
370 }
371
372
376 public function getInstitution() {
377 return $this->institution;
378 }
379
380
384 public function setLanguage($language) {
385 $this->language = $language;
386 }
387
388
392 public function getLanguage() {
393 return $this->language;
394 }
395
396
400 public function setLastname($lastname) {
401 $this->lastname = $lastname;
402 }
403
404
408 public function getLastname() {
409 return $this->lastname;
410 }
411
412
416 public function setLogin($login) {
417 $this->login = $login;
418 }
419
420
424 public function getLogin() {
425 return $this->login;
426 }
427
428
433 $this->matriculation = $matriculation;
434 }
435
436
440 public function getMatriculation() {
442 }
443
444
448 public function setPhoneHome($phone_home) {
449 $this->phone_home = $phone_home;
450 }
451
452
456 public function getPhoneHome() {
457 return $this->phone_home;
458 }
459
460
464 public function setPhoneMobile($phone_mobile) {
465 $this->phone_mobile = $phone_mobile;
466 }
467
468
472 public function getPhoneMobile() {
473 return $this->phone_mobile;
474 }
475
476
480 public function setPhoneOffice($phone_office) {
481 $this->phone_office = $phone_office;
482 }
483
484
488 public function getPhoneOffice() {
489 return $this->phone_office;
490 }
491
492
496 public function setStreet($street) {
497 $this->street = $street;
498 }
499
500
504 public function getStreet() {
505 return $this->street;
506 }
507
508
512 public function setTitle($title) {
513 $this->title = $title;
514 }
515
516
520 public function getTitle() {
521 return $this->title;
522 }
523
524
528 public function setUpdateCity($update_city) {
529 $this->update_city = $update_city;
530 }
531
532
536 public function getUpdateCity() {
537 return $this->update_city;
538 }
539
540
545 $this->update_country = $update_country;
546 }
547
548
552 public function getUpdateCountry() {
554 }
555
556
561 $this->update_data_conv = $update_data_conv;
562 }
563
564
568 public function getUpdateDataConv() {
570 }
571
572
577 $this->update_department = $update_department;
578 }
579
580
584 public function getUpdateDepartment() {
586 }
587
588
592 public function setUpdateEmail($update_email) {
593 $this->update_email = $update_email;
594 }
595
596
600 public function getUpdateEmail() {
601 return $this->update_email;
602 }
603
604
608 public function setUpdateFax($update_fax) {
609 $this->update_fax = $update_fax;
610 }
611
612
616 public function getUpdateFax() {
617 return $this->update_fax;
618 }
619
620
625 $this->update_gender = $update_gender;
626 }
627
628
632 public function getUpdateGender() {
634 }
635
636
640 public function setUpdateHobby($update_hobby) {
641 $this->update_hobby = $update_hobby;
642 }
643
644
648 public function getUpdateHobby() {
649 return $this->update_hobby;
650 }
651
652
657 $this->update_institution = $update_institution;
658 }
659
660
664 public function getUpdateInstitution() {
666 }
667
668
673 $this->update_language = $update_language;
674 }
675
676
680 public function getUpdateLanguage() {
682 }
683
684
688 public function setUpdateLogin($update_login) {
689 $this->update_login = $update_login;
690 }
691
692
696 public function getUpdateLogin() {
697 return $this->update_login;
698 }
699
700
705 $this->update_matriculation = $update_matriculation;
706 }
707
708
712 public function getUpdateMatriculation() {
714 }
715
716
721 $this->update_phone_home = $update_phone_home;
722 }
723
724
728 public function getUpdatePhoneHome() {
730 }
731
732
737 $this->update_phone_mobile = $update_phone_mobile;
738 }
739
740
744 public function getUpdatePhoneMobile() {
746 }
747
748
753 $this->update_phone_office = $update_phone_office;
754 }
755
756
760 public function getUpdatePhoneOffice() {
762 }
763
764
769 $this->update_street = $update_street;
770 }
771
772
776 public function getUpdateStreet() {
778 }
779
780
784 public function setUpdateTitle($update_title) {
785 $this->update_title = $update_title;
786 }
787
788
792 public function getUpdateTitle() {
793 return $this->update_title;
794 }
795
796
801 $this->update_zipcode = $update_zipcode;
802 }
803
804
808 public function getUpdateZipcode() {
810 }
811
812
816 public function setZipcode($zipcode) {
817 $this->zipcode = $zipcode;
818 }
819
820
824 public function getZipcode() {
825 return $this->zipcode;
826 }
827
828
833 $this->user_default_role = $user_default_role;
834 }
835
836
840 public function getUserDefaultRole() {
842 }
843
844
849 $this->update_firstname = $update_firstname;
850 }
851
852
856 public function getUpdateFirstname() {
858 }
859
860
865 $this->update_lastname = $update_lastname;
866 }
867
868
872 public function getUpdateLastname() {
874 }
875}
876
877?>
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)
setUpdatePhoneOffice($update_phone_office)
setPhoneOffice($phone_office)
setUpdatePhoneHome($update_phone_home)
setFirstname($firstname)
setUpdateZipcode($update_zipcode)
global $ilSetting
Definition: privfeed.php:40