TYPO3 CMS  TYPO3_6-2
sys_file_storage.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_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  'disabled' => 'hidden'
15  ),
16  'dividers2tabs' => TRUE,
17  'requestUpdate' => 'driver',
18  'iconfile' => '_icon_ftp.gif',
19  'searchFields' => 'name,description'
20  ),
21  'interface' => array(
22  'showRecordFieldList' => 'hidden,name,description,driver,processingfolder,configuration'
23  ),
24  'columns' => array(
25  'hidden' => array(
26  'exclude' => 1,
27  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.hidden',
28  'config' => array(
29  'type' => 'check',
30  'default' => '0'
31  )
32  ),
33  'name' => array(
34  'exclude' => 0,
35  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.name',
36  'config' => array(
37  'type' => 'input',
38  'size' => '30',
39  'eval' => 'required'
40  )
41  ),
42  'description' => array(
43  'exclude' => 0,
44  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.description',
45  'config' => array(
46  'type' => 'text',
47  'cols' => '30',
48  'rows' => '5'
49  )
50  ),
51  'is_browsable' => array(
52  'exclude' => 0,
53  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_browsable',
54  'config' => array(
55  'type' => 'check',
56  'default' => 1
57  )
58  ),
59  'is_default' => array(
60  'exclude' => 0,
61  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_default',
62  'config' => array(
63  'type' => 'check',
64  'default' => 0,
65  'eval' => 'maximumRecordsChecked',
66  'validation' => array(
67  'maximumRecordsChecked' => 1
68  )
69  )
70  ),
71  'is_public' => array(
72  'exclude' => 0,
73  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_public',
74  'config' => array(
75  'default' => TRUE,
76  'type' => 'user',
77  'userFunc' => 'typo3/sysext/core/Classes/Resource/Service/UserStorageCapabilityService.php:TYPO3\CMS\Core\Resource\Service\UserStorageCapabilityService->renderIsPublic',
78  )
79  ),
80  'is_writable' => array(
81  'exclude' => 0,
82  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_writable',
83  'config' => array(
84  'type' => 'check',
85  'default' => 1
86  )
87  ),
88  'is_online' => array(
89  'exclude' => 0,
90  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_online',
91  'config' => array(
92  'type' => 'check',
93  'default' => 1
94  )
95  ),
96  'processingfolder' => array(
97  'exclude' => 0,
98  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.processingfolder',
99  'config' => array(
100  'type' => 'input',
101  'placeholder' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.processingfolder.placeholder',
102  'size' => '20'
103  )
104  ),
105  'driver' => array(
106  'exclude' => 0,
107  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.driver',
108  'config' => array(
109  'type' => 'select',
110  'items' => array(),
111  'default' => 'Local',
112  'onChange' => 'reload'
113  )
114  ),
115  'configuration' => array(
116  'exclude' => 0,
117  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.configuration',
118  'config' => array(
119  'type' => 'flex',
120  'ds_pointerField' => 'driver',
121  'ds' => array()
122  ),
123  )
124  ),
125  'types' => array(
126  '0' => array('showitem' => 'name, description, hidden, --div--;Configuration, driver, configuration, is_default, processingfolder, --div--;Access, --palette--;Capabilities;capabilities, is_online')
127  ),
128  'palettes' => array(
129  'capabilities' => array('showitem' => 'is_browsable, is_public, is_writable', 'canNotCollapse' => TRUE)
130  )
131 );