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