TYPO3  7.6
sys_file.php
Go to the documentation of this file.
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/sysext/core/Classes/Resource/Hook/FileInfoHook.php:TYPO3\CMS\Core\Resource\Hook\FileInfoHook->renderFileInfo'
34  )
35  ),
36  'storage' => array(
37  'exclude' => 0,
38  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.storage',
39  'config' => array(
40  'readOnly' => 1,
41  'type' => 'select',
42  'renderType' => 'selectSingle',
43  'items' => array(
44  array('', 0)
45  ),
46  'foreign_table' => 'sys_file_storage',
47  'foreign_table_where' => 'ORDER BY sys_file_storage.name',
48  'size' => 1,
49  'minitems' => 0,
50  'maxitems' => 1
51  )
52  ),
53  'identifier' => array(
54  'exclude' => 0,
55  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.identifier',
56  'config' => array(
57  'readOnly' => 1,
58  'type' => 'input',
59  'size' => '30'
60  )
61  ),
62  'name' => array(
63  'exclude' => 0,
64  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.name',
65  'config' => array(
66  'readOnly' => 1,
67  'type' => 'input',
68  'size' => '30',
69  'eval' => 'required',
70  )
71  ),
72  'type' => array(
73  'exclude' => 0,
74  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.type',
75  'config' => array(
76  'readOnly' => 1,
77  'type' => 'select',
78  'renderType' => 'selectSingle',
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  'maxitems' => 1,
140  )
141  )
142  ),
143  'types' => array(
144  '1' => array('showitem' => 'fileinfo, storage, missing')
145  ),
146  'palettes' => array()
147 );