ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
DefaultFields.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\User\Profile;
22 
24 
26 {
27  private array $default_profile_fields = [
28  'username' => [
29  'input' => 'login',
30  'maxlength' => 190,
31  'size' => 190,
32  'method' => 'getLogin',
33  'course_export_fix_value' => 1,
34  'group_export_fix_value' => 1,
35  'prg_export_fix_value' => 0,
36  'changeable_hide' => true,
37  'required_hide' => true,
38  'group' => 'personal_data'
39  ],
40  'password' => [
41  'input' => 'password',
42  'required_hide' => true,
43  'visib_reg_hide' => true,
44  'visib_lua_fix_value' => 0,
45  'course_export_hide' => true,
46  'export_hide' => false,
47  'group_export_hide' => true,
48  'prg_export_hide' => true,
49  'lists_hide' => true,
50  'group' => 'personal_data'
51  ],
52  'firstname' => [
53  'input' => 'text',
54  'maxlength' => 128,
55  'size' => 40,
56  'method' => 'getFirstname',
57  'required_fix_value' => 1,
58  'visib_reg_fix_value' => 1,
59  'visib_lua_fix_value' => 1,
60  'course_export_fix_value' => 1,
61  'group_export_fix_value' => 1,
62  'prg_export_fix_value' => 1,
63  'group' => 'personal_data'
64  ],
65  'lastname' => [
66  'input' => 'text',
67  'maxlength' => 128,
68  'size' => 40,
69  'method' => 'getLastname',
70  'required_fix_value' => 1,
71  'visib_reg_fix_value' => 1,
72  'visib_lua_fix_value' => 1,
73  'course_export_fix_value' => 1,
74  'group_export_fix_value' => 1,
75  'prg_export_fix_value' => 1,
76  'group' => 'personal_data'
77  ],
78  'title' => [
79  'input' => 'text',
80  'lang_var' => 'person_title',
81  'maxlength' => 32,
82  'size' => 40,
83  'method' => 'getUTitle',
84  'group' => 'personal_data'
85  ],
86  'birthday' => [
87  'input' => 'birthday',
88  'lang_var' => 'birthday',
89  'maxlength' => 32,
90  'size' => 40,
91  'method' => 'getBirthday',
92  'group' => 'personal_data'
93  ],
94  'gender' => [
95  'input' => 'radio',
96  'values' => ['n' => 'salutation_n', 'f' => 'salutation_f', 'm' => 'salutation_m'],
97  'method' => 'getGender',
98  'group' => 'personal_data'
99  ],
100  'upload' => [
101  'input' => 'picture',
102  'required_hide' => true,
103  'visib_reg_hide' => true,
104  'course_export_hide' => true,
105  'group_export_hide' => true,
106  'prg_export_hide' => true,
107  'lists_hide' => true,
108  'lang_var' => 'personal_picture',
109  'group' => 'personal_data'
110  ],
111  'roles' => [
112  'input' => 'roles',
113  'changeable_hide' => true,
114  'required_hide' => true,
115  'visib_reg_hide' => true,
116  'export_hide' => true,
117  'course_export_hide' => true,
118  'group_export_hide' => true,
119  'prg_export_hide' => true,
120  'lists_hide' => true,
121  'group' => 'personal_data'
122  ],
123  'interests_general' => [
124  'input' => 'multitext',
125  'maxlength' => 40,
126  'size' => 40,
127  'method' => 'getGeneralInterests',
128  'course_export_hide' => true,
129  'group_export_hide' => true,
130  'prg_export_hide' => true,
131  'lists_hide' => true,
132  'group' => 'interests'
133  ],
134  'interests_help_offered' => [
135  'input' => 'multitext',
136  'maxlength' => 40,
137  'size' => 40,
138  'method' => 'getOfferingHelp',
139  'course_export_hide' => true,
140  'group_export_hide' => true,
141  'prg_export_hide' => true,
142  'lists_hide' => true,
143  'group' => 'interests'
144  ],
145  'interests_help_looking' => [
146  'input' => 'multitext',
147  'maxlength' => 40,
148  'size' => 40,
149  'method' => 'getLookingForHelp',
150  'course_export_hide' => true,
151  'group_export_hide' => true,
152  'prg_export_hide' => true,
153  'lists_hide' => true,
154  'group' => 'interests'
155  ],
156  'org_units' => [
157  'input' => 'noneditable',
158  'lang_var' => 'objs_orgu',
159  'required_hide' => true,
160  'visib_reg_hide' => true,
161  'course_export_hide' => false,
162  'group_export_hide' => false,
163  'prg_export_hide' => false,
164  'export_hide' => true,
165  'changeable_hide' => true,
166  'changeable_fix_value' => 0,
167  'changeable_lua_hide' => true,
168  'changeable_lua_fix_value' => 0,
169  'method' => 'getOrgUnitsRepresentation',
170  'group' => 'contact_data'
171  ],
172  'institution' => [
173  'input' => 'text',
174  'maxlength' => 80,
175  'size' => 40,
176  'method' => 'getInstitution',
177  'group' => 'contact_data'
178  ],
179  'department' => [
180  'input' => 'text',
181  'maxlength' => 80,
182  'size' => 40,
183  'method' => 'getDepartment',
184  'group' => 'contact_data'
185  ],
186  'street' => [
187  'input' => 'text',
188  'maxlength' => 40,
189  'size' => 40,
190  'method' => 'getStreet',
191  'group' => 'contact_data'
192  ],
193  'zipcode' => [
194  'input' => 'text',
195  'maxlength' => 10,
196  'size' => 10,
197  'method' => 'getZipcode',
198  'group' => 'contact_data'
199  ],
200  'city' => [
201  'input' => 'text',
202  'maxlength' => 40,
203  'size' => 40,
204  'method' => 'getCity',
205  'group' => 'contact_data'
206  ],
207  'country' => [
208  'input' => 'text',
209  'maxlength' => 40,
210  'size' => 40,
211  'method' => 'getCountry',
212  'group' => 'contact_data'
213  ],
214  'sel_country' => [
215  'input' => 'sel_country',
216  'method' => 'getSelectedCountry',
217  'group' => 'contact_data'
218  ],
219  'phone_office' => [
220  'input' => 'text',
221  'maxlength' => 40,
222  'size' => 40,
223  'method' => 'getPhoneOffice',
224  'group' => 'contact_data'
225  ],
226  'phone_home' => [
227  'input' => 'text',
228  'maxlength' => 40,
229  'size' => 40,
230  'method' => 'getPhoneHome',
231  'group' => 'contact_data'
232  ],
233  'phone_mobile' => [
234  'input' => 'text',
235  'maxlength' => 40,
236  'size' => 40,
237  'method' => 'getPhoneMobile',
238  'group' => 'contact_data'
239  ],
240  'fax' => [
241  'input' => 'text',
242  'maxlength' => 40,
243  'size' => 40,
244  'method' => 'getFax',
245  'group' => 'contact_data'
246  ],
247  'email' => [
248  'input' => 'email',
249  'maxlength' => 128,
250  'size' => 40,
251  'method' => 'getEmail',
252  'group' => 'contact_data'
253  ],
254  'second_email' => [
255  'input' => 'second_email',
256  'maxlength' => 40,
257  'size' => 40,
258  'method' => 'getSecondEmail',
259  'group' => 'contact_data',
260  'change_listeners' => [
261  ilMailUserFieldChangeListener::class,
262  ]
263  ],
264  'hobby' => [
265  'input' => 'textarea',
266  'rows' => 3,
267  'cols' => 45,
268  'method' => 'getHobby',
269  'lists_hide' => true,
270  'group' => 'contact_data'
271  ],
272  'referral_comment' => [
273  'input' => 'textarea',
274  'rows' => 3,
275  'cols' => 45,
276  'method' => 'getComment',
277  'course_export_hide' => true,
278  'group_export_hide' => true,
279  'prg_export_hide' => true,
280  'lists_hide' => true,
281  'group' => 'contact_data'
282  ],
283  'matriculation' => [
284  'input' => 'text',
285  'maxlength' => 40,
286  'size' => 40,
287  'method' => 'getMatriculation',
288  'group' => 'other'
289  ],
290  'language' => [
291  'input' => 'language',
292  'method' => 'getLanguage',
293  'required_hide' => true,
294  'visib_reg_hide' => true,
295  'course_export_hide' => true,
296  'group_export_hide' => true,
297  'prg_export_hide' => true,
298  'group' => 'settings'
299  ],
300  'skin_style' => [
301  'input' => 'skinstyle',
302  'required_hide' => true,
303  'visib_reg_hide' => true,
304  'course_export_hide' => true,
305  'group_export_hide' => true,
306  'prg_export_hide' => true,
307  'group' => 'settings'
308  ],
309  'hide_own_online_status' => [
310  'input' => 'selection',
311  'lang_var' => 'awrn_user_show',
312  'required_hide' => true,
313  'visib_reg_hide' => true,
314  'course_export_hide' => true,
315  'group_export_hide' => true,
316  'prg_export_hide' => true,
317  'group' => 'settings',
318  'default' => 'y',
319  'options' => [
320  'y' => 'user_awrn_hide',
321  'n' => 'user_awrn_show'
322  ]
323  ],
324  'bs_allow_to_contact_me' => [
325  'input' => 'selection',
326  'lang_var' => 'buddy_allow_to_contact_me',
327  'required_hide' => true,
328  'visib_reg_hide' => true,
329  'course_export_hide' => true,
330  'group_export_hide' => true,
331  'prg_export_hide' => true,
332  'group' => 'settings',
333  'default' => 'y',
334  'options' => [
335  'n' => 'buddy_allow_to_contact_me_no',
336  'y' => 'buddy_allow_to_contact_me_yes'
337  ]
338  ],
339  'chat_osc_accept_msg' => [
340  'input' => 'selection',
341  'lang_var' => 'chat_osc_accept_msg',
342  'required_hide' => true,
343  'visib_reg_hide' => true,
344  'course_export_hide' => true,
345  'group_export_hide' => true,
346  'prg_export_hide' => true,
347  'group' => 'settings',
348  'default' => 'y',
349  'options' => [
350  'n' => 'chat_osc_accepts_messages_no',
351  'y' => 'chat_osc_accepts_messages_yes'
352  ]
353  ],
354  'chat_broadcast_typing' => [
355  'input' => 'selection',
356  'lang_var' => 'chat_broadcast_typing',
357  'required_hide' => true,
358  'visib_reg_hide' => true,
359  'course_export_hide' => true,
360  'group_export_hide' => true,
361  'prg_export_hide' => true,
362  'group' => 'settings',
363  'default' => 'y',
364  'options' => [
365  'n' => 'chat_no_use_typing_broadcast',
366  'y' => 'chat_use_typing_broadcast'
367  ]
368  ],
369  'preferences' => [
370  'visible_fix_value' => 1,
371  'changeable_fix_value' => 1,
372  'required_hide' => true,
373  'visib_reg_hide' => true,
374  'course_export_hide' => true,
375  'group_export_hide' => true,
376  'prg_export_hide' => true,
377  'group' => 'preferences'],
378  'mail_incoming_mail' => [
379  'input' => 'selection',
380  'default' => 'y',
381  'options' => [
382  \ilMailOptions::INCOMING_LOCAL => 'mail_incoming_local',
383  \ilMailOptions::INCOMING_EMAIL => 'mail_incoming_smtp',
384  \ilMailOptions::INCOMING_BOTH => 'mail_incoming_both'],
385  'required_hide' => true,
386  'visib_reg_hide' => true,
387  'course_export_hide' => true,
388  'group_export_hide' => true,
389  'export_hide' => true,
390  'prg_export_hide' => true,
391  'search_hide' => true,
392  'group' => 'settings'
393  ],
394  'session_reminder' => [
395  'input' => 'numeric',
396  'default' => 'y',
397  'required_hide' => true,
398  'visib_reg_hide' => true,
399  'course_export_hide' => true,
400  'group_export_hide' => true,
401  'prg_export_hide' => true,
402  'search_hide' => true,
403  'group' => 'settings'
404  ]
405  ];
406 
407  public function getDefaultProfileFields(): array
408  {
410  }
411 }
final const INCOMING_LOCAL
final const INCOMING_EMAIL
final const INCOMING_BOTH
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...