[FEATURE] Adapt to new TCA and Form Engine API of TYPO3 CMS 7
[TYPO3CMS/Extensions/static_info_tables.git] / Configuration / TCA / static_currencies.php
1 <?php
2 // Currency reference data from ISO 4217
3 return array(
4 'ctrl' => array(
5 'label' => 'cu_name_en',
6 'label_alt' => 'cu_iso_3',
7 'label_alt_force' => 1,
8 'label_userFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\FormDataProvider\\TcaLabelProcessor->addIsoCodeToLabel',
9 'adminOnly' => 1,
10 'rootLevel' => 1,
11 'is_static' => 1,
12 'readOnly' => 1,
13 'default_sortby' => 'ORDER BY cu_name_en',
14 'delete' => 'deleted',
15 'title' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies.title',
16 'iconfile' => 'EXT:static_info_tables/Resources/Public/Images/Icons/icon_static_currencies.gif',
17 'searchFields' => 'cu_name_en'
18 ),
19 'interface' => array(
20 'showRecordFieldList' => 'cu_iso_3,cu_iso_nr,cu_name_en,cu_symbol_left,cu_symbol_right,cu_thousands_point,cu_decimal_point,cu_decimal_digits,cu_sub_name_en,cu_sub_divisor,cu_sub_symbol_left,cu_sub_symbol_right'
21 ),
22 'columns' => array(
23 'deleted' => array(
24 'readonly' => 1,
25 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:deleted',
26 'config' => array(
27 'type' => 'check'
28 )
29 ),
30 'cu_iso_3' => array(
31 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_iso_3',
32 'exclude' => '0',
33 'config' => array(
34 'type' => 'input',
35 'size' => '5',
36 'max' => '3',
37 'eval' => '',
38 'default' => ''
39 )
40 ),
41 'cu_iso_nr' => array(
42 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_iso_nr',
43 'exclude' => '0',
44 'config' => array(
45 'type' => 'input',
46 'size' => '7',
47 'max' => '3',
48 'eval' => '',
49 'default' => '0'
50 )
51 ),
52 'cu_name_en' => array(
53 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_name_en',
54 'exclude' => '0',
55 'config' => array(
56 'type' => 'input',
57 'size' => '18',
58 'max' => '40',
59 'eval' => 'trim',
60 'default' => '',
61 '_is_string' => '1'
62 )
63 ),
64 'cu_sub_name_en' => array(
65 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_sub_name_en',
66 'exclude' => '0',
67 'config' => array(
68 'type' => 'input',
69 'size' => '18',
70 'max' => '20',
71 'eval' => 'trim',
72 'default' => '',
73 '_is_string' => '1'
74 )
75 ),
76 'cu_symbol_left' => array(
77 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_symbol_left',
78 'exclude' => '0',
79 'config' => array(
80 'type' => 'input',
81 'size' => '8',
82 'max' => '12',
83 'eval' => 'trim',
84 'default' => '',
85 '_is_string' => '1'
86 )
87 ),
88 'cu_symbol_right' => array(
89 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_symbol_right',
90 'exclude' => '0',
91 'config' => array(
92 'type' => 'input',
93 'size' => '8',
94 'max' => '12',
95 'eval' => 'trim',
96 'default' => '',
97 '_is_string' => '1'
98 )
99 ),
100 'cu_thousands_point' => array(
101 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_thousands_point',
102 'exclude' => '0',
103 'config' => array(
104 'type' => 'input',
105 'size' => '3',
106 'max' => '1',
107 'eval' => '',
108 'default' => ''
109 )
110 ),
111 'cu_decimal_point' => array(
112 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_decimal_point',
113 'exclude' => '0',
114 'config' => array(
115 'type' => 'input',
116 'size' => '3',
117 'max' => '1',
118 'eval' => '',
119 'default' => ''
120 )
121 ),
122 'cu_decimal_digits' => array(
123 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_decimal_digits',
124 'exclude' => '0',
125 'config' => array(
126 'type' => 'input',
127 'size' => '5',
128 'max' => '',
129 'eval' => 'int',
130 'default' => ''
131 )
132 ),
133 'cu_sub_divisor' => array(
134 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_sub_divisor',
135 'exclude' => '0',
136 'config' => array(
137 'type' => 'input',
138 'size' => '8',
139 'max' => '20',
140 'eval' => 'int',
141 'default' => '1'
142 )
143 ),
144 'cu_sub_symbol_left' => array(
145 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_sub_symbol_left',
146 'exclude' => '0',
147 'config' => array(
148 'type' => 'input',
149 'size' => '8',
150 'max' => '12',
151 'eval' => 'trim',
152 'default' => '',
153 '_is_string' => '1'
154 )
155 ),
156 'cu_sub_symbol_right' => array(
157 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_sub_symbol_right',
158 'exclude' => '0',
159 'config' => array(
160 'type' => 'input',
161 'size' => '8',
162 'max' => '12',
163 'eval' => 'trim',
164 'default' => '',
165 '_is_string' => '1'
166 )
167 )
168 ),
169 'types' => array(
170 '1' => array(
171 'showitem' => 'cu_name_en,--palette--;;1;;,--palette--;;2;;,cu_sub_name_en,--palette--;;3;;'
172 )
173 ),
174 'palettes' => array(
175 '1' => array(
176 'showitem' => 'cu_iso_nr,cu_iso_3', 'canNotCollapse' => '1'
177 ),
178 '2' => array(
179 'showitem' => 'cu_symbol_left,cu_symbol_right,cu_thousands_point,cu_decimal_point', 'canNotCollapse' => '1'
180 ),
181 '3' => array(
182 'showitem' => 'cu_sub_symbol_left,cu_sub_symbol_right,cu_decimal_digits,cu_sub_divisor', 'canNotCollapse' => '1'
183 )
184 )
185 );