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