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