[TASK] Cleanup TCA
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_file_storage.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'LLL:EXT:lang/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 'rootLevel' => true,
12 'versioningWS_alwaysAllowLiveEdit' => true, // Only have LIVE records of file storages
13 'enablecolumns' => array(),
14 'requestUpdate' => 'driver',
15 'typeicon_classes' => array(
16 'default' => 'mimetypes-x-sys_file_storage'
17 ),
18 'searchFields' => 'name,description'
19 ),
20 'interface' => array(
21 'showRecordFieldList' => 'name,description,driver,processingfolder,configuration,auto_extract_metadata'
22 ),
23 'columns' => array(
24 'name' => array(
25 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.name',
26 'config' => array(
27 'type' => 'input',
28 'size' => 30,
29 'eval' => 'required'
30 )
31 ),
32 'description' => array(
33 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.description',
34 'config' => array(
35 'type' => 'text',
36 'cols' => 30,
37 'rows' => 5
38 )
39 ),
40 'is_browsable' => array(
41 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_browsable',
42 'config' => array(
43 'type' => 'check',
44 'default' => 1
45 )
46 ),
47 'is_default' => array(
48 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_default',
49 'config' => array(
50 'type' => 'check',
51 'default' => 0,
52 'eval' => 'maximumRecordsChecked',
53 'validation' => array(
54 'maximumRecordsChecked' => 1
55 )
56 )
57 ),
58 'is_public' => array(
59 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_public',
60 'config' => array(
61 'default' => true,
62 'type' => 'user',
63 'userFunc' => \TYPO3\CMS\Core\Resource\Service\UserStorageCapabilityService::class . '->renderIsPublic',
64 )
65 ),
66 'is_writable' => array(
67 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_writable',
68 'config' => array(
69 'type' => 'check',
70 'default' => 1
71 )
72 ),
73 'is_online' => array(
74 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_online',
75 'config' => array(
76 'type' => 'check',
77 'default' => 1
78 )
79 ),
80 'auto_extract_metadata' => array(
81 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.auto_extract_metadata',
82 'config' => array(
83 'type' => 'check',
84 'default' => 1
85 )
86 ),
87 'processingfolder' => array(
88 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.processingfolder',
89 'config' => array(
90 'type' => 'input',
91 'placeholder' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.processingfolder.placeholder',
92 'size' => 20
93 )
94 ),
95 'driver' => array(
96 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.driver',
97 'config' => array(
98 'type' => 'select',
99 'renderType' => 'selectSingle',
100 'items' => array(),
101 'default' => 'Local',
102 'onChange' => 'reload'
103 )
104 ),
105 'configuration' => array(
106 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.configuration',
107 'config' => array(
108 'type' => 'flex',
109 'ds_pointerField' => 'driver',
110 'ds' => array()
111 ),
112 )
113 ),
114 'types' => array(
115 '0' => array('showitem' => 'name, description, --div--;Configuration, driver, configuration, is_default, auto_extract_metadata, processingfolder, --div--;Access, --palette--;Capabilities;capabilities, is_online')
116 ),
117 'palettes' => array(
118 'capabilities' => array(
119 'showitem' => 'is_browsable, is_public, is_writable',
120 ),
121 ),
122 );