TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
core/Configuration/TCA/be_users.php
Go to the documentation of this file.
1 <?php
2 return [
3  'ctrl' => [
4  'label' => 'username',
5  'descriptionColumn' => 'description',
6  'tstamp' => 'tstamp',
7  'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users',
8  'crdate' => 'crdate',
9  'cruser_id' => 'cruser_id',
10  'delete' => 'deleted',
11  'adminOnly' => true,
12  'rootLevel' => 1,
13  'default_sortby' => 'ORDER BY admin, username',
14  'enablecolumns' => [
15  'disabled' => 'disable',
16  'starttime' => 'starttime',
17  'endtime' => 'endtime'
18  ],
19  'type' => 'admin',
20  'typeicon_column' => 'admin',
21  'typeicon_classes' => [
22  '0' => 'status-user-backend',
23  '1' => 'status-user-admin',
24  'default' => 'status-user-backend'
25  ],
26  'useColumnsForDefaultValues' => 'usergroup,lockToDomain,options,db_mountpoints,file_mountpoints,file_permissions,userMods',
27  'versioningWS_alwaysAllowLiveEdit' => true,
28  'searchFields' => 'username,email,realName'
29  ],
30  'interface' => [
31  'showRecordFieldList' => 'username,description,usergroup,db_mountpoints,file_mountpoints,admin,options,file_permissions,userMods,lockToDomain,realName,email,disable,starttime,endtime,lastlogin'
32  ],
33  'columns' => [
34  'username' => [
35  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.username',
36  'config' => [
37  'type' => 'input',
38  'size' => 20,
39  'max' => 50,
40  'eval' => 'nospace,trim,lower,unique,required',
41  'autocomplete' => false,
42  ]
43  ],
44  'description' => [
45  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.description',
46  'config' => [
47  'type' => 'text',
48  'rows' => 5,
49  'cols' => 30,
50  'max' => 2000,
51  ]
52  ],
53  'password' => [
54  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.password',
55  'config' => [
56  'type' => 'input',
57  'size' => 20,
58  'max' => 40,
59  'eval' => 'trim,required,md5,password',
60  'autocomplete' => false,
61  ]
62  ],
63  'usergroup' => [
64  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.usergroup',
65  'config' => [
66  'type' => 'select',
67  'renderType' => 'selectMultipleSideBySide',
68  'foreign_table' => 'be_groups',
69  'foreign_table_where' => 'ORDER BY be_groups.title',
70  'size' => 5,
71  'maxitems' => 20,
72  'enableMultiSelectFilterTextfield' => true,
73  'wizards' => [
74  '_VERTICAL' => 1,
75  'edit' => [
76  'type' => 'popup',
77  'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.usergroup_edit_title',
78  'module' => [
79  'name' => 'wizard_edit',
80  ],
81  'popup_onlyOpenIfSelected' => true,
82  'icon' => 'actions-open',
83  'JSopenParams' => 'width=800,height=600,status=0,menubar=0,scrollbars=1'
84  ],
85  'add' => [
86  'type' => 'script',
87  'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.usergroup_add_title',
88  'icon' => 'actions-add',
89  'params' => [
90  'table' => 'be_groups',
91  'pid' => 0,
92  'setValue' => 'prepend'
93  ],
94  'module' => [
95  'name' => 'wizard_add'
96  ]
97  ],
98  'list' => [
99  'type' => 'script',
100  'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.usergroup_list_title',
101  'icon' => 'actions-system-list-open',
102  'params' => [
103  'table' => 'be_groups',
104  'pid' => 0
105  ],
106  'module' => [
107  'name' => 'wizard_list'
108  ]
109  ]
110  ]
111  ]
112  ],
113  'avatar' => [
114  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.avatar',
116  'avatar',
117  ['maxitems' => 1],
118  $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
119  )
120  ],
121  'lockToDomain' => [
122  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:lockToDomain',
123  'config' => [
124  'type' => 'input',
125  'size' => 20,
126  'eval' => 'trim',
127  'max' => 50,
128  'softref' => 'substitute'
129  ]
130  ],
131  'db_mountpoints' => [
132  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.options_db_mounts',
133  'config' => [
134  'type' => 'group',
135  'internal_type' => 'db',
136  'allowed' => 'pages',
137  'size' => 3,
138  'maxitems' => 100,
139  'autoSizeMax' => 10,
140  'show_thumbs' => true,
141  'wizards' => [
142  'suggest' => [
143  'type' => 'suggest'
144  ]
145  ]
146  ]
147  ],
148  'file_mountpoints' => [
149  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.options_file_mounts',
150  'config' => [
151  'type' => 'select',
152  'renderType' => 'selectMultipleSideBySide',
153  'foreign_table' => 'sys_filemounts',
154  'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
155  'size' => 3,
156  'maxitems' => 100,
157  'autoSizeMax' => 10,
158  'wizards' => [
159  '_VERTICAL' => 1,
160  'edit' => [
161  'type' => 'popup',
162  'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:file_mountpoints_edit_title',
163  'module' => [
164  'name' => 'wizard_edit',
165  ],
166  'icon' => 'actions-open',
167  'popup_onlyOpenIfSelected' => true,
168  'JSopenParams' => 'width=800,height=600,status=0,menubar=0,scrollbars=1'
169  ],
170  'add' => [
171  'type' => 'script',
172  'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:file_mountpoints_add_title',
173  'icon' => 'actions-add',
174  'params' => [
175  'table' => 'sys_filemounts',
176  'pid' => 0,
177  'setValue' => 'prepend'
178  ],
179  'module' => [
180  'name' => 'wizard_add'
181  ]
182  ],
183  'list' => [
184  'type' => 'script',
185  'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:file_mountpoints_list_title',
186  'icon' => 'actions-system-list-open',
187  'params' => [
188  'table' => 'sys_filemounts',
189  'pid' => 0
190  ],
191  'module' => [
192  'name' => 'wizard_list'
193  ]
194  ]
195  ]
196  ]
197  ],
198  'email' => [
199  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.email',
200  'config' => [
201  'type' => 'input',
202  'size' => 20,
203  'eval' => 'trim',
204  'max' => 80,
205  'softref' => 'email[subst]'
206  ]
207  ],
208  'realName' => [
209  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.name',
210  'config' => [
211  'type' => 'input',
212  'size' => 20,
213  'eval' => 'trim',
214  'max' => 80
215  ]
216  ],
217  'disable' => [
218  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.disable',
219  'config' => [
220  'type' => 'check'
221  ]
222  ],
223  'disableIPlock' => [
224  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.disableIPlock',
225  'config' => [
226  'type' => 'check'
227  ]
228  ],
229  'admin' => [
230  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.admin',
231  'config' => [
232  'type' => 'check',
233  'default' => 0
234  ]
235  ],
236  'options' => [
237  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.options',
238  'config' => [
239  'type' => 'check',
240  'items' => [
241  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.options_db_mounts', 0],
242  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.options_file_mounts', 0]
243  ],
244  'default' => 3
245  ]
246  ],
247  'file_permissions' => [
248  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.fileoper_perms',
249  'config' => [
250  'type' => 'select',
251  'renderType' => 'selectCheckBox',
252  'items' => [
253  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder', '--div--', 'apps-filetree-folder-default'],
254  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_read', 'readFolder', 'apps-filetree-folder-default'],
255  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_write', 'writeFolder', 'apps-filetree-folder-default'],
256  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_add', 'addFolder', 'apps-filetree-folder-default'],
257  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_rename', 'renameFolder', 'apps-filetree-folder-default'],
258  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_move', 'moveFolder', 'apps-filetree-folder-default'],
259  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_copy', 'copyFolder', 'apps-filetree-folder-default'],
260  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_delete', 'deleteFolder', 'apps-filetree-folder-default'],
261  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.folder_recursivedelete', 'recursivedeleteFolder', 'apps-filetree-folder-default'],
262  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files', '--div--', 'mimetypes-other-other'],
263  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_read', 'readFile', 'mimetypes-other-other'],
264  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_write', 'writeFile', 'mimetypes-other-other'],
265  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_add', 'addFile', 'mimetypes-other-other'],
266  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_rename', 'renameFile', 'mimetypes-other-other'],
267  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_replace', 'replaceFile', 'mimetypes-other-other'],
268  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_move', 'moveFile', 'mimetypes-other-other'],
269  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_copy', 'copyFile', 'mimetypes-other-other'],
270  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_groups.file_permissions.files_delete', 'deleteFile', 'mimetypes-other-other']
271  ],
272  'size' => 17,
273  'maxitems' => 17,
274  'default' => 'readFolder,writeFolder,addFolder,renameFolder,moveFolder,deleteFolder,readFile,writeFile,addFile,renameFile,replaceFile,moveFile,copyFile,deleteFile'
275  ]
276  ],
277  'workspace_perms' => [
278  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:workspace_perms',
279  'config' => [
280  'type' => 'check',
281  'items' => [
282  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:workspace_perms_live', 0]
283  ],
284  'default' => 1
285  ]
286  ],
287  'starttime' => [
288  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
289  'config' => [
290  'type' => 'input',
291  'size' => 13,
292  'eval' => 'datetime',
293  'default' => 0
294  ]
295  ],
296  'endtime' => [
297  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
298  'config' => [
299  'type' => 'input',
300  'size' => 13,
301  'eval' => 'datetime',
302  'default' => 0,
303  'range' => [
304  'upper' => mktime(0, 0, 0, 1, 1, 2038)
305  ]
306  ]
307  ],
308  'lang' => [
309  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.lang',
310  'config' => [
311  'type' => 'select',
312  'renderType' => 'selectSingle',
313  'items' => [
314  ['English', '']
315  ]
316  ]
317  ],
318  'userMods' => [
319  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:userMods',
320  'config' => [
321  'type' => 'select',
322  'renderType' => 'selectCheckBox',
323  'special' => 'modListUser',
324  'size' => 5,
325  'autoSizeMax' => 50,
326  'maxitems' => 100,
327  ]
328  ],
329  'allowed_languages' => [
330  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:allowed_languages',
331  'config' => [
332  'type' => 'select',
333  'renderType' => 'selectCheckBox',
334  'special' => 'languages',
335  'maxitems' => 1000,
336  ]
337  ],
338  'TSconfig' => [
339  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:TSconfig',
340  'config' => [
341  'type' => 'text',
342  'cols' => 40,
343  'rows' => 5
344  ],
345  'defaultExtras' => 'fixed-font : enable-tab'
346  ],
347  'createdByAction' => [
348  'config' => [
349  'type' => 'passthrough'
350  ]
351  ],
352  'lastlogin' => [
353  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.lastlogin',
354  'config' => [
355  'type' => 'input',
356  'readOnly' => true,
357  'size' => 12,
358  'eval' => 'datetime',
359  'default' => 0
360  ]
361  ],
362  'category_perms' => [
363  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:category_perms',
364  'config' => [
365  'type' => 'select',
366  'renderType' => 'selectTree',
367  'foreign_table' => 'sys_category',
368  'foreign_table_where' => ' AND (sys_category.sys_language_uid = 0 OR sys_category.l10n_parent = 0) ORDER BY sys_category.sorting',
369  'treeConfig' => [
370  'parentField' => 'parent',
371  'appearance' => [
372  'expandAll' => false,
373  'showHeader' => false,
374  'maxLevels' => 99,
375  ],
376  ],
377  'size' => 20,
378  'minitems' => 0,
379  'maxitems' => 9999
380  ]
381  ],
382  ],
383  'types' => [
384  '0' => ['showitem' => '
385  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
386  admin, username, password, avatar, usergroup, realName, email, lang, lastlogin,
387  --div--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.tabs.rights,
388  userMods, allowed_languages,
389  --div--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.tabs.mounts_and_workspaces,
390  workspace_perms, db_mountpoints, options, file_mountpoints, file_permissions, category_perms,
391  --div--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.tabs.options,
392  lockToDomain, disableIPlock, TSconfig,
393  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
394  disable,--palette--;;timeRestriction,
395  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
396  description,
397  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
398  '],
399  '1' => ['showitem' => '
400  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
401  admin, username, password, avatar, usergroup, realName, email, lang, lastlogin,
402  --div--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:be_users.tabs.options,
403  disableIPlock, TSconfig, db_mountpoints, options, file_mountpoints,
404  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
405  disable,--palette--;;timeRestriction,
406  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
407  description,
408  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
409  ']
410  ],
411  'palettes' => [
412  'timeRestriction' => ['showitem' => 'starttime, endtime']
413  ],
414 ];
static getFileFieldTCAConfig($fieldName, array $customSettingOverride=[], $allowedFileExtensions= '', $disallowedFileExtensions= '')
if(TYPO3_MODE=== 'BE') $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tsfebeuserauth.php']['frontendEditingController']['default']