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