[TASK] Cleanup TCA
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_file.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file',
5 'label' => 'name',
6 'tstamp' => 'tstamp',
7 'type' => 'type',
8 'hideTable' => true,
9 'rootLevel' => true,
10 'default_sortby' => 'ORDER BY name ASC',
11 'typeicon_column' => 'type',
12 'typeicon_classes' => array(
13 '1' => 'mimetypes-text-text',
14 '2' => 'mimetypes-media-image',
15 '3' => 'mimetypes-media-audio',
16 '4' => 'mimetypes-media-video',
17 '5' => 'mimetypes-application',
18 'default' => 'mimetypes-other-other'
19 ),
20 'security' => array(
21 'ignoreWebMountRestriction' => true,
22 'ignoreRootLevelRestriction' => true,
23 ),
24 'searchFields' => 'name, type, mime_type, sha1'
25 ),
26 'interface' => array(
27 'showRecordFieldList' => 'storage, name, type, mime_type, size, sha1, missing'
28 ),
29 'columns' => array(
30 'fileinfo' => array(
31 'config' => array(
32 'type' => 'user',
33 'userFunc' => 'TYPO3\\CMS\\Core\\Resource\\Hook\\FileInfoHook->renderFileInfo'
34 )
35 ),
36 'storage' => array(
37 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.storage',
38 'config' => array(
39 'readOnly' => true,
40 'type' => 'select',
41 'renderType' => 'selectSingle',
42 'items' => array(
43 array('', 0)
44 ),
45 'foreign_table' => 'sys_file_storage',
46 'foreign_table_where' => 'ORDER BY sys_file_storage.name',
47 'size' => 1,
48 'minitems' => 0,
49 'maxitems' => 1
50 )
51 ),
52 'identifier' => array(
53 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.identifier',
54 'config' => array(
55 'readOnly' => true,
56 'type' => 'input',
57 'size' => 30
58 )
59 ),
60 'name' => array(
61 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.name',
62 'config' => array(
63 'readOnly' => true,
64 'type' => 'input',
65 'size' => 30,
66 'eval' => 'required',
67 )
68 ),
69 'type' => array(
70 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.type',
71 'config' => array(
72 'readOnly' => true,
73 'type' => 'select',
74 'renderType' => 'selectSingle',
75 'size' => 1,
76 'items' => array(
77 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.unknown', 0),
78 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.text', 1),
79 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.image', 2),
80 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.audio', 3),
81 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.video', 4),
82 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.software', 5)
83 )
84 )
85 ),
86 'mime_type' => array(
87 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.mime_type',
88 'config' => array(
89 'readOnly' => true,
90 'type' => 'input',
91 'size' => 30
92 )
93 ),
94 'sha1' => array(
95 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.sha1',
96 'config' => array(
97 'readOnly' => true,
98 'type' => 'input',
99 'size' => 30,
100 )
101 ),
102 'size' => array(
103 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.size',
104 'config' => array(
105 'readOnly' => true,
106 'type' => 'input',
107 'size' => 8,
108 'max' => 30,
109 'eval' => 'int',
110 'default' => 0
111 )
112 ),
113 'missing' => array(
114 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.missing',
115 'config' => array(
116 'readOnly' => true,
117 'type' => 'check',
118 'default' => 0
119 )
120 ),
121 'metadata' => array(
122 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.metadata',
123 'config' => array(
124 'readOnly' => true,
125 'type' => 'inline',
126 'foreign_table' => 'sys_file_metadata',
127 'foreign_field' => 'file',
128 'size' => 1,
129 'minitems' => 1,
130 'maxitems' => 1,
131 )
132 )
133 ),
134 'types' => array(
135 '1' => array('showitem' => 'fileinfo, storage, missing')
136 ),
137 'palettes' => array()
138 );