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