[!!!][BUGFIX] *_user table password field is to short
[Packages/TYPO3.CMS.git] / t3lib / stddb / tca_sys_file.php
1 <?php
2 if (!defined ('TYPO3_MODE')) {
3 die ('Access denied.');
4 }
5
6 $TCA['sys_file'] = array (
7 'ctrl' => $TCA['sys_file']['ctrl'],
8 'interface' => array (
9 'showRecordFieldList' => 'storage, name, description, alternative, type, mime_type, size, sha1'
10 ),
11 'feInterface' => $TCA['sys_file']['feInterface'],
12 'columns' => array (
13 't3ver_label' => array (
14 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.versionLabel',
15 'config' => array (
16 'type' => 'input',
17 'size' => '30',
18 'max' => '30',
19 )
20 ),
21 'fileinfo' => array(
22 'config' => array(
23 'type' => 'user',
24 'userFunc' => 't3lib/file/Utility/FileInfo.php:t3lib_file_utility_fileinfo->renderFileInfo'
25 )
26 ),
27 'storage' => array(
28 'exclude' => 0,
29 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.storage',
30 'config' => array (
31 'readOnly' => 1,
32 'type' => 'select',
33 'items' => array (
34 array('',0),
35 ),
36 'foreign_table' => 'sys_file_storage',
37 'foreign_table_where' => 'ORDER BY sys_file_storage.name',
38 'size' => 1,
39 'minitems' => 0,
40 'maxitems' => 1,
41 )
42 ),
43 'identifier' => array (
44 'exclude' => 0,
45 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.identifier',
46 'config' => array (
47 'readOnly' => 1,
48 'type' => 'input',
49 'size' => '30',
50 )
51 ),
52 'name' => array (
53 'exclude' => 0,
54 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.name',
55 'config' => array (
56 'type' => 'input',
57 'size' => '30',
58 'eval' => 'required'
59 )
60 ),
61 'description' => array(
62 'exclude' => 0,
63 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.description',
64 'config' => array(
65 'type' => 'text',
66 'cols' => '40',
67 'rows' => '3'
68 )
69 ),
70 'alternative' => array(
71 'exclude' => 0,
72 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.alternative',
73 'config' => array(
74 'type' => 'text',
75 'cols' => '40',
76 'rows' => '3'
77 )
78 ),
79 'type' => array (
80 'exclude' => 0,
81 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.type',
82 'config' => array (
83 'readOnly' => 1,
84 'type' => 'select',
85 'size' => '1',
86 'items' => array(
87 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.unknown', 0),
88 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.text', 1),
89 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.image', 2),
90 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.audio', 3),
91 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.video', 4),
92 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.software', 5),
93 ),
94 )
95 ),
96 'mime_type' => array (
97 'exclude' => 0,
98 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.mime_type',
99 'config' => array (
100 'readOnly' => 1,
101 'type' => 'input',
102 'size' => '30',
103 )
104 ),
105 'sha1' => array (
106 'exclude' => 0,
107 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.sha1',
108 'config' => array (
109 'readOnly' => 1,
110 'type' => 'input',
111 'size' => '30',
112 'readOnly' => 1,
113 )
114 ),
115 'size' => array (
116 'exclude' => 0,
117 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.size',
118 'config' => array (
119 'readOnly' => 1,
120 'type' => 'input',
121 'size' => '8',
122 'max' => '30',
123 'eval' => 'int',
124 'default' => 0
125 )
126 ),
127 ),
128 'types' => array (
129 '1' => array('showitem' => 'fileinfo, name, description, alternative, storage')
130 ),
131 'palettes' => array()
132 );
133
134 ?>