ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.shibConfig.php
Go to the documentation of this file.
1 <?php
2 
8 class 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 $DIC;
182  $ilSetting = $DIC['ilSetting'];
186  foreach (get_class_vars('shibConfig') as $field => $val) {
187  $str = $ilSetting->get('shib_' . $field);
188  if ($str !== null) {
189  $this->{$field} = $str;
190  }
191  }
192 
193  if ($this->getGender() != 'm' OR $this->getGender() != 'w') {
194  $this->setGender(null);
195  }
196  }
197 
198 
202  public static function getInstance() {
203  if (!isset(self::$cache)) {
204  self::$cache = new self();
205  }
206 
207  return self::$cache;
208  }
209 
210 
216  public function getValueByKey($key) {
217 
218  return $this->{$key};
219  }
220 
221 
225  public function setCity($city) {
226  $this->city = $city;
227  }
228 
229 
233  public function getCity() {
234  return $this->city;
235  }
236 
237 
241  public function setCountry($country) {
242  $this->country = $country;
243  }
244 
245 
249  public function getCountry() {
250  return $this->country;
251  }
252 
253 
257  public function setDataConv($data_conv) {
258  $this->data_conv = $data_conv;
259  }
260 
261 
265  public function getDataConv() {
266  return $this->data_conv;
267  }
268 
269 
273  public function setDepartment($department) {
274  $this->department = $department;
275  }
276 
277 
281  public function getDepartment() {
282  return $this->department;
283  }
284 
285 
289  public function setEmail($email) {
290  $this->email = $email;
291  }
292 
293 
297  public function getEmail() {
298  return $this->email;
299  }
300 
301 
305  public function setFax($fax) {
306  $this->fax = $fax;
307  }
308 
309 
313  public function getFax() {
314  return $this->fax;
315  }
316 
317 
321  public function setFirstname($firstname) {
322  $this->firstname = $firstname;
323  }
324 
325 
329  public function getFirstname() {
330  return $this->firstname;
331  }
332 
333 
337  public function setGender($gender) {
338  $this->gender = $gender;
339  }
340 
341 
345  public function getGender() {
346  return $this->gender;
347  }
348 
349 
353  public function setHobby($hobby) {
354  $this->hobby = $hobby;
355  }
356 
357 
361  public function getHobby() {
362  return $this->hobby;
363  }
364 
365 
369  public function setInstitution($institution) {
370  $this->institution = $institution;
371  }
372 
373 
377  public function getInstitution() {
378  return $this->institution;
379  }
380 
381 
385  public function setLanguage($language) {
386  $this->language = $language;
387  }
388 
389 
393  public function getLanguage() {
394  return $this->language;
395  }
396 
397 
401  public function setLastname($lastname) {
402  $this->lastname = $lastname;
403  }
404 
405 
409  public function getLastname() {
410  return $this->lastname;
411  }
412 
413 
417  public function setLogin($login) {
418  $this->login = $login;
419  }
420 
421 
425  public function getLogin() {
426  return $this->login;
427  }
428 
429 
433  public function setMatriculation($matriculation) {
434  $this->matriculation = $matriculation;
435  }
436 
437 
441  public function getMatriculation() {
442  return $this->matriculation;
443  }
444 
445 
449  public function setPhoneHome($phone_home) {
450  $this->phone_home = $phone_home;
451  }
452 
453 
457  public function getPhoneHome() {
458  return $this->phone_home;
459  }
460 
461 
465  public function setPhoneMobile($phone_mobile) {
466  $this->phone_mobile = $phone_mobile;
467  }
468 
469 
473  public function getPhoneMobile() {
474  return $this->phone_mobile;
475  }
476 
477 
481  public function setPhoneOffice($phone_office) {
482  $this->phone_office = $phone_office;
483  }
484 
485 
489  public function getPhoneOffice() {
490  return $this->phone_office;
491  }
492 
493 
497  public function setStreet($street) {
498  $this->street = $street;
499  }
500 
501 
505  public function getStreet() {
506  return $this->street;
507  }
508 
509 
513  public function setTitle($title) {
514  $this->title = $title;
515  }
516 
517 
521  public function getTitle() {
522  return $this->title;
523  }
524 
525 
529  public function setUpdateCity($update_city) {
530  $this->update_city = $update_city;
531  }
532 
533 
537  public function getUpdateCity() {
538  return $this->update_city;
539  }
540 
541 
546  $this->update_country = $update_country;
547  }
548 
549 
553  public function getUpdateCountry() {
554  return $this->update_country;
555  }
556 
557 
562  $this->update_data_conv = $update_data_conv;
563  }
564 
565 
569  public function getUpdateDataConv() {
571  }
572 
573 
578  $this->update_department = $update_department;
579  }
580 
581 
585  public function getUpdateDepartment() {
587  }
588 
589 
593  public function setUpdateEmail($update_email) {
594  $this->update_email = $update_email;
595  }
596 
597 
601  public function getUpdateEmail() {
602  return $this->update_email;
603  }
604 
605 
609  public function setUpdateFax($update_fax) {
610  $this->update_fax = $update_fax;
611  }
612 
613 
617  public function getUpdateFax() {
618  return $this->update_fax;
619  }
620 
621 
625  public function setUpdateGender($update_gender) {
626  $this->update_gender = $update_gender;
627  }
628 
629 
633  public function getUpdateGender() {
634  return $this->update_gender;
635  }
636 
637 
641  public function setUpdateHobby($update_hobby) {
642  $this->update_hobby = $update_hobby;
643  }
644 
645 
649  public function getUpdateHobby() {
650  return $this->update_hobby;
651  }
652 
653 
658  $this->update_institution = $update_institution;
659  }
660 
661 
665  public function getUpdateInstitution() {
667  }
668 
669 
674  $this->update_language = $update_language;
675  }
676 
677 
681  public function getUpdateLanguage() {
682  return $this->update_language;
683  }
684 
685 
689  public function setUpdateLogin($update_login) {
690  $this->update_login = $update_login;
691  }
692 
693 
697  public function getUpdateLogin() {
698  return $this->update_login;
699  }
700 
701 
706  $this->update_matriculation = $update_matriculation;
707  }
708 
709 
713  public function getUpdateMatriculation() {
715  }
716 
717 
722  $this->update_phone_home = $update_phone_home;
723  }
724 
725 
729  public function getUpdatePhoneHome() {
731  }
732 
733 
738  $this->update_phone_mobile = $update_phone_mobile;
739  }
740 
741 
745  public function getUpdatePhoneMobile() {
747  }
748 
749 
754  $this->update_phone_office = $update_phone_office;
755  }
756 
757 
761  public function getUpdatePhoneOffice() {
763  }
764 
765 
769  public function setUpdateStreet($update_street) {
770  $this->update_street = $update_street;
771  }
772 
773 
777  public function getUpdateStreet() {
778  return $this->update_street;
779  }
780 
781 
785  public function setUpdateTitle($update_title) {
786  $this->update_title = $update_title;
787  }
788 
789 
793  public function getUpdateTitle() {
794  return $this->update_title;
795  }
796 
797 
802  $this->update_zipcode = $update_zipcode;
803  }
804 
805 
809  public function getUpdateZipcode() {
810  return $this->update_zipcode;
811  }
812 
813 
817  public function setZipcode($zipcode) {
818  $this->zipcode = $zipcode;
819  }
820 
821 
825  public function getZipcode() {
826  return $this->zipcode;
827  }
828 
829 
834  $this->user_default_role = $user_default_role;
835  }
836 
837 
841  public function getUserDefaultRole() {
843  }
844 
845 
850  $this->update_firstname = $update_firstname;
851  }
852 
853 
857  public function getUpdateFirstname() {
859  }
860 
861 
866  $this->update_lastname = $update_lastname;
867  }
868 
869 
873  public function getUpdateLastname() {
874  return $this->update_lastname;
875  }
876 }
setLanguage($language)
setPhoneMobile($phone_mobile)
setUpdateStreet($update_street)
setMatriculation($matriculation)
setUpdateInstitution($update_institution)
setUpdateEmail($update_email)
setStreet($street)
setFirstname($firstname)
setDepartment($department)
setUpdateTitle($update_title)
setDataConv($data_conv)
setUserDefaultRole($user_default_role)
static getInstance()
setUpdateDepartment($update_department)
setUpdateLastname($update_lastname)
setUpdateLogin($update_login)
setUpdatePhoneMobile($update_phone_mobile)
setUpdateZipcode($update_zipcode)
setUpdateMatriculation($update_matriculation)
setUpdateHobby($update_hobby)
setUpdateFirstname($update_firstname)
setUpdateLanguage($update_language)
setCountry($country)
setUpdateCity($update_city)
Class shibConfig.
setPhoneOffice($phone_office)
setUpdateCountry($update_country)
setUpdatePhoneHome($update_phone_home)
setPhoneHome($phone_home)
setLastname($lastname)
global $ilSetting
Definition: privfeed.php:17
setGender($gender)
setUpdateFax($update_fax)
global $DIC
setZipcode($zipcode)
setUpdatePhoneOffice($update_phone_office)
setInstitution($institution)
setUpdateDataConv($update_data_conv)
setUpdateGender($update_gender)