TYPO3 CMS  TYPO3_6-2
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  'dividers2tabs' => TRUE,
12  'typeicon_column' => 'type',
13  'typeicon_classes' => array(
14  '1' => 'mimetypes-text-text',
15  '2' => 'mimetypes-media-image',
16  '3' => 'mimetypes-media-audio',
17  '4' => 'mimetypes-media-video',
18  '5' => 'mimetypes-application',
19  'default' => 'mimetypes-other-other'
20  ),
21  'security' => array(
22  'ignoreWebMountRestriction' => TRUE,
23  'ignoreRootLevelRestriction' => TRUE,
24  ),
25  'searchFields' => 'name, type, mime_type, sha1'
26  ),
27  'interface' => array(
28  'showRecordFieldList' => 'storage, name, type, mime_type, size, sha1, missing'
29  ),
30  'columns' => array(
31  'fileinfo' => array(
32  'config' => array(
33  'type' => 'user',
34  'userFunc' => 'typo3/sysext/core/Classes/Resource/Hook/FileInfoHook.php:TYPO3\CMS\Core\Resource\Hook\FileInfoHook->renderFileInfo'
35  )
36  ),
37  'storage' => array(
38  'exclude' => 0,
39  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.storage',
40  'config' => array(
41  'readOnly' => 1,
42  'type' => 'select',
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  'size' => '1',
79  'items' => array(
80  array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.unknown', 0),
81  array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.text', 1),
82  array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.image', 2),
83  array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.audio', 3),
84  array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.video', 4),
85  array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.software', 5)
86  )
87  )
88  ),
89  'mime_type' => array(
90  'exclude' => 0,
91  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.mime_type',
92  'config' => array(
93  'readOnly' => 1,
94  'type' => 'input',
95  'size' => '30'
96  )
97  ),
98  'sha1' => array(
99  'exclude' => 0,
100  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.sha1',
101  'config' => array(
102  'readOnly' => 1,
103  'type' => 'input',
104  'size' => '30',
105  )
106  ),
107  'size' => array(
108  'exclude' => 0,
109  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.size',
110  'config' => array(
111  'readOnly' => 1,
112  'type' => 'input',
113  'size' => '8',
114  'max' => '30',
115  'eval' => 'int',
116  'default' => 0
117  )
118  ),
119  'missing' => array(
120  'exclude' => 0,
121  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.missing',
122  'config' => array(
123  'readOnly' => 1,
124  'type' => 'check',
125  'default' => 0
126  )
127  ),
128  'metadata' => array(
129  'exclude' => 0,
130  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.metadata',
131  'config' => array(
132  'readOnly' => 1,
133  'type' => 'inline',
134  'foreign_table' => 'sys_file_metadata',
135  'foreign_field' => 'file',
136  'size' => 1,
137  'minitems' => 1,
138  'maxitems' => 1,
139  )
140  )
141  ),
142  'types' => array(
143  '1' => array('showitem' => 'fileinfo, storage, missing')
144  ),
145  'palettes' => array()
146 );