TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
sys_file_storage.php
Go to the documentation of this file.
1 <?php
2 return [
3  'ctrl' => [
4  'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_storage',
5  'label' => 'name',
6  'tstamp' => 'tstamp',
7  'crdate' => 'crdate',
8  'cruser_id' => 'cruser_id',
9  'default_sortby' => 'ORDER BY name',
10  'delete' => 'deleted',
11  'descriptionColumn' => 'description',
12  'rootLevel' => true,
13  'versioningWS_alwaysAllowLiveEdit' => true, // Only have LIVE records of file storages
14  'enablecolumns' => [],
15  'requestUpdate' => 'driver',
16  'typeicon_classes' => [
17  'default' => 'mimetypes-x-sys_file_storage'
18  ],
19  'searchFields' => 'name,description'
20  ],
21  'interface' => [
22  'showRecordFieldList' => 'name,description,driver,processingfolder,configuration,auto_extract_metadata'
23  ],
24  'columns' => [
25  'name' => [
26  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.name',
27  'config' => [
28  'type' => 'input',
29  'size' => 30,
30  'eval' => 'required'
31  ]
32  ],
33  'description' => [
34  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.description',
35  'config' => [
36  'type' => 'text',
37  'cols' => 30,
38  'rows' => 5
39  ]
40  ],
41  'is_browsable' => [
42  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.is_browsable',
43  'config' => [
44  'type' => 'check',
45  'default' => 1
46  ]
47  ],
48  'is_default' => [
49  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.is_default',
50  'config' => [
51  'type' => 'check',
52  'default' => 0,
53  'eval' => 'maximumRecordsChecked',
54  'validation' => [
55  'maximumRecordsChecked' => 1
56  ]
57  ]
58  ],
59  'is_public' => [
60  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.is_public',
61  'config' => [
62  'default' => true,
63  'type' => 'user',
64  'userFunc' => \TYPO3\CMS\Core\Resource\Service\UserStorageCapabilityService::class . '->renderIsPublic',
65  ]
66  ],
67  'is_writable' => [
68  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.is_writable',
69  'config' => [
70  'type' => 'check',
71  'default' => 1
72  ]
73  ],
74  'is_online' => [
75  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.is_online',
76  'config' => [
77  'type' => 'check',
78  'default' => 1
79  ]
80  ],
81  'auto_extract_metadata' => [
82  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.auto_extract_metadata',
83  'config' => [
84  'type' => 'check',
85  'default' => 1
86  ]
87  ],
88  'processingfolder' => [
89  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.processingfolder',
90  'config' => [
91  'type' => 'input',
92  'placeholder' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.processingfolder.placeholder',
93  'size' => 20
94  ]
95  ],
96  'driver' => [
97  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.driver',
98  'config' => [
99  'type' => 'select',
100  'renderType' => 'selectSingle',
101  'items' => [],
102  'default' => 'Local',
103  'onChange' => 'reload'
104  ]
105  ],
106  'configuration' => [
107  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.configuration',
108  'config' => [
109  'type' => 'flex',
110  'ds_pointerField' => 'driver',
111  'ds' => []
112  ],
113  ]
114  ],
115  'types' => [
116  '0' => ['showitem' => '
117  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
118  name, driver, configuration, is_default, auto_extract_metadata, processingfolder,
119  --div--;Access capabilities,
120  --palette--;Capabilities;capabilities,
121  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
122  is_online,
123  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
124  description,
125  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
126  ']
127  ],
128  'palettes' => [
129  'capabilities' => [
130  'showitem' => 'is_browsable, is_public, is_writable',
131  ],
132  ],
133 ];