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