[TASK] Move t3lib/stddb files to ext:core
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / SysFile.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 'versioningWS' => TRUE,
13 'origUid' => 't3_origuid',
14 'default_sortby' => 'ORDER BY crdate DESC',
15 'delete' => 'deleted',
16 'dividers2tabs' => TRUE,
17 'typeicon_column' => 'type',
18 'typeicon_classes' => array(
19 '1' => 'mimetypes-text-text',
20 '2' => 'mimetypes-media-image',
21 '3' => 'mimetypes-media-audio',
22 '4' => 'mimetypes-media-video',
23 '5' => 'mimetypes-application',
24 'default' => 'mimetypes-other-other'
25 ),
26 'security' => array(
27 'ignoreWebMountRestriction' => TRUE,
28 'ignoreRootLevelRestriction' => TRUE,
29 ),
30 ),
31 'interface' => array(
32 'showRecordFieldList' => 'storage, name, description, alternative, type, mime_type, size, sha1'
33 ),
34 'columns' => array(
35 't3ver_label' => array(
36 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.versionLabel',
37 'config' => array(
38 'type' => 'input',
39 'size' => '30',
40 'max' => '30'
41 )
42 ),
43 'fileinfo' => array(
44 'config' => array(
45 'type' => 'user',
46 'userFunc' => 'typo3/sysext/core/Classes/Resource/Hook/FileInfoHook.php:TYPO3\CMS\Core\Resource\Hook\FileInfoHook->renderFileInfo'
47 )
48 ),
49 'storage' => array(
50 'exclude' => 0,
51 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.storage',
52 'config' => array(
53 'readOnly' => 1,
54 'type' => 'select',
55 'items' => array(
56 array('', 0)
57 ),
58 'foreign_table' => 'sys_file_storage',
59 'foreign_table_where' => 'ORDER BY sys_file_storage.name',
60 'size' => 1,
61 'minitems' => 0,
62 'maxitems' => 1
63 )
64 ),
65 'identifier' => array(
66 'exclude' => 0,
67 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.identifier',
68 'config' => array(
69 'readOnly' => 1,
70 'type' => 'input',
71 'size' => '30'
72 )
73 ),
74 'name' => array(
75 'exclude' => 0,
76 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.name',
77 'config' => array(
78 'type' => 'input',
79 'size' => '30',
80 'eval' => 'required',
81 'readOnly' => TRUE
82 )
83 ),
84 'title' => array(
85 'exclude' => 1,
86 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.title',
87 'config' => array(
88 'type' => 'input',
89 'size' => '30',
90 'placeholder' => '__row|name'
91 )
92 ),
93 'description' => array(
94 'exclude' => 0,
95 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.description',
96 'config' => array(
97 'type' => 'text',
98 'cols' => '40',
99 'rows' => '3'
100 )
101 ),
102 'alternative' => array(
103 'exclude' => 0,
104 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.alternative',
105 'config' => array(
106 'type' => 'text',
107 'cols' => '40',
108 'rows' => '3'
109 )
110 ),
111 'type' => array(
112 'exclude' => 0,
113 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.type',
114 'config' => array(
115 'readOnly' => 1,
116 'type' => 'select',
117 'size' => '1',
118 'items' => array(
119 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.unknown', 0),
120 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.text', 1),
121 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.image', 2),
122 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.audio', 3),
123 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.video', 4),
124 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.software', 5)
125 )
126 )
127 ),
128 'mime_type' => array(
129 'exclude' => 0,
130 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.mime_type',
131 'config' => array(
132 'readOnly' => 1,
133 'type' => 'input',
134 'size' => '30'
135 )
136 ),
137 'sha1' => array(
138 'exclude' => 0,
139 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.sha1',
140 'config' => array(
141 'readOnly' => 1,
142 'type' => 'input',
143 'size' => '30',
144 )
145 ),
146 'size' => array(
147 'exclude' => 0,
148 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.size',
149 'config' => array(
150 'readOnly' => 1,
151 'type' => 'input',
152 'size' => '8',
153 'max' => '30',
154 'eval' => 'int',
155 'default' => 0
156 )
157 )
158 ),
159 'types' => array(
160 '1' => array('showitem' => 'fileinfo, name, title, description, alternative, storage')
161 ),
162 'palettes' => array()
163 );
164 ?>