82816a83ecde4400f038ddeb3fdd80869bb04cdc
[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' => 'actions-open',
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' => 'actions-add',
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' => 'actions-system-list-open',
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' => 'actions-open',
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' => 'actions-add',
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' => 'actions-system-list-open',
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.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' => array(
278 'label' => 'LLL:EXT:lang/locallang_tca.xlf:workspace_perms',
279 'config' => array(
280 'type' => 'check',
281 'items' => array(
282 array('LLL:EXT:lang/locallang_tca.xlf:workspace_perms_live', 0)
283 ),
284 'default' => 1
285 )
286 ),
287 'starttime' => array(
288 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
289 'config' => array(
290 'type' => 'input',
291 'size' => '13',
292 'eval' => 'datetime',
293 'default' => '0'
294 )
295 ),
296 'endtime' => array(
297 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
298 'config' => array(
299 'type' => 'input',
300 'size' => '13',
301 'eval' => 'datetime',
302 'default' => '0',
303 'range' => array(
304 'upper' => mktime(0, 0, 0, 1, 1, 2038)
305 )
306 )
307 ),
308 'lang' => array(
309 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.lang',
310 'config' => array(
311 'type' => 'select',
312 'renderType' => 'selectSingle',
313 'items' => array(
314 array('English', '')
315 )
316 )
317 ),
318 'userMods' => array(
319 'label' => 'LLL:EXT:lang/locallang_tca.xlf:userMods',
320 'config' => array(
321 'type' => 'select',
322 'renderType' => 'selectCheckBox',
323 'special' => 'modListUser',
324 'size' => '5',
325 'autoSizeMax' => 50,
326 'maxitems' => '100',
327 )
328 ),
329 'allowed_languages' => array(
330 'label' => 'LLL:EXT:lang/locallang_tca.xlf:allowed_languages',
331 'config' => array(
332 'type' => 'select',
333 'renderType' => 'selectCheckBox',
334 'special' => 'languages',
335 'maxitems' => '1000',
336 )
337 ),
338 'TSconfig' => array(
339 'label' => 'LLL:EXT:lang/locallang_tca.xlf:TSconfig',
340 'config' => array(
341 'type' => 'text',
342 'cols' => '40',
343 'rows' => '5'
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' => 20,
378 'minitems' => 0,
379 'maxitems' => 9999
380 )
381 ),
382 ),
383 'types' => array(
384 '0' => array('showitem' => 'disable, username, password, description, avatar, usergroup, admin, realName, email, lang, lastlogin,
385 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.rights, userMods, allowed_languages,
386 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.mounts_and_workspaces, workspace_perms, db_mountpoints, options, file_mountpoints, file_permissions, category_perms,
387 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.options, lockToDomain, disableIPlock, TSconfig,
388 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.access, starttime,endtime,
389 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.extended'),
390 '1' => array('showitem' => 'disable, username, password, avatar,description, usergroup, admin, realName, email, lang, lastlogin,
391 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.options, disableIPlock, TSconfig, db_mountpoints, options, file_mountpoints,
392 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.access, starttime,endtime,
393 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.extended')
394 )
395 );