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