TYPO3 CMS  TYPO3_6-2
tca.mnmmasym.php
Go to the documentation of this file.
1 <?php
2 if (!defined ('TYPO3_MODE')) {
3  die('Access denied.');
4 }
5 
6 $TCA['tx_irretutorial_mnmmasym_hotel'] = array(
7  'ctrl' => $TCA['tx_irretutorial_mnmmasym_hotel']['ctrl'],
8  'interface' => array(
9  'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,offers'
10  ),
11  'feInterface' => $TCA['tx_irretutorial_mnmmasym_hotel']['feInterface'],
12  'columns' => array(
13  'sys_language_uid' => array(
14  'exclude' => 1,
15  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
16  'config' => array(
17  'type' => 'select',
18  'foreign_table' => 'sys_language',
19  'foreign_table_where' => 'ORDER BY sys_language.title',
20  'items' => array(
21  array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
22  array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
23  )
24  )
25  ),
26  'l18n_parent' => array(
27  'displayCond' => 'FIELD:sys_language_uid:>:0',
28  'exclude' => 1,
29  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
30  'config' => array(
31  'type' => 'select',
32  'items' => array(
33  array('', 0),
34  ),
35  'foreign_table' => 'tx_irretutorial_mnmmasym_hotel',
36  'foreign_table_where' => 'AND tx_irretutorial_mnmmasym_hotel.pid=###CURRENT_PID### AND tx_irretutorial_mnmmasym_hotel.sys_language_uid IN (-1,0)',
37  )
38  ),
39  'l18n_diffsource' => array(
40  'config' => array(
41  'type' => 'passthrough'
42  )
43  ),
44  'hidden' => array(
45  'exclude' => 1,
46  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
47  'config' => array(
48  'type' => 'check',
49  'default' => '0'
50  )
51  ),
52  'title' => array(
53  'exclude' => 1,
54  'l10n_mode' => 'prefixLangTitle',
55  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.title',
56  'config' => array(
57  'type' => 'input',
58  'size' => '30',
59  'eval' => 'required',
60  )
61  ),
62  'offers' => array(
63  'exclude' => 1,
64  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.offers',
65  'config' => array(
66  'type' => 'inline',
67  'foreign_table' => 'tx_irretutorial_mnmmasym_offer',
68  'MM' => 'tx_irretutorial_mnmmasym_hotel_offer_rel',
69  'MM_hasUidField' => TRUE,
70  'maxitems' => 10,
71  'appearance' => array(
72  'showSynchronizationLink' => 1,
73  'showAllLocalizationLink' => 1,
74  'showPossibleLocalizationRecords' => 1,
75  'showRemovedLocalizationRecords' => 1,
76  ),
77  'behaviour' => array(
78  'localizationMode' => 'select',
79  ),
80  )
81  ),
82  ),
83  'types' => array(
84  '0' => Array('showitem' =>
85  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title;;;;2-2-2, offers;;;;3-3-3,' .
86  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, hidden;;1'
87  )
88  ),
89  'palettes' => array(
90  '1' => Array('showitem' => '')
91  )
92 );
93 
94 
95 
96 $TCA['tx_irretutorial_mnmmasym_offer'] = array(
97  'ctrl' => $TCA['tx_irretutorial_mnmmasym_offer']['ctrl'],
98  'interface' => array(
99  'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,hotels,prices'
100  ),
101  'feInterface' => $TCA['tx_irretutorial_mnmmasym_offer']['feInterface'],
102  'columns' => array(
103  'sys_language_uid' => array(
104  'exclude' => 1,
105  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
106  'config' => array(
107  'type' => 'select',
108  'foreign_table' => 'sys_language',
109  'foreign_table_where' => 'ORDER BY sys_language.title',
110  'items' => array(
111  array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
112  array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
113  )
114  )
115  ),
116  'l18n_parent' => array(
117  'displayCond' => 'FIELD:sys_language_uid:>:0',
118  'exclude' => 1,
119  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
120  'config' => array(
121  'type' => 'select',
122  'items' => array(
123  array('', 0),
124  ),
125  'foreign_table' => 'tx_irretutorial_mnmmasym_offer',
126  'foreign_table_where' => 'AND tx_irretutorial_mnmmasym_offer.pid=###CURRENT_PID### AND tx_irretutorial_mnmmasym_offer.sys_language_uid IN (-1,0)',
127  )
128  ),
129  'l18n_diffsource' => array(
130  'config' => array(
131  'type' => 'passthrough'
132  )
133  ),
134  'hidden' => array(
135  'exclude' => 1,
136  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
137  'config' => array(
138  'type' => 'check',
139  'default' => '0'
140  )
141  ),
142  'title' => array(
143  'exclude' => 1,
144  'l10n_mode' => 'prefixLangTitle',
145  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_offer.title',
146  'config' => array(
147  'type' => 'input',
148  'size' => '30',
149  'eval' => 'required',
150  )
151  ),
152  'hotels' => array(
153  'exclude' => 1,
154  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_offer.hotels',
155  'config' => array(
156  'type' => 'inline',
157  'foreign_table' => 'tx_irretutorial_mnmmasym_hotel',
158  'MM' => 'tx_irretutorial_mnmmasym_hotel_offer_rel',
159  'MM_hasUidField' => TRUE,
160  'MM_opposite_field' => 'offers',
161  'maxitems' => 10,
162  'appearance' => array(
163  'showSynchronizationLink' => 1,
164  'showAllLocalizationLink' => 1,
165  'showPossibleLocalizationRecords' => 1,
166  'showRemovedLocalizationRecords' => 1,
167  ),
168  'behaviour' => array(
169  'localizationMode' => 'select',
170  ),
171  )
172  ),
173  'prices' => array(
174  'exclude' => 1,
175  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_offer.prices',
176  'config' => array(
177  'type' => 'inline',
178  'foreign_table' => 'tx_irretutorial_mnmmasym_price',
179  'MM' => 'tx_irretutorial_mnmmasym_offer_price_rel',
180  'MM_hasUidField' => TRUE,
181  'maxitems' => 10,
182  'appearance' => array(
183  'showSynchronizationLink' => 1,
184  'showAllLocalizationLink' => 1,
185  'showPossibleLocalizationRecords' => 1,
186  'showRemovedLocalizationRecords' => 1,
187  ),
188  'behaviour' => array(
189  'localizationMode' => 'select',
190  ),
191  )
192  ),
193  ),
194  'types' => array(
195  '0' => Array('showitem' =>
196  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title;;;;2-2-2, hotels, prices,' .
197  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, hidden;;1'
198  )
199  ),
200  'palettes' => array(
201  '1' => Array('showitem' => '')
202  )
203 );
204 
205 
206 
207 $TCA['tx_irretutorial_mnmmasym_price'] = array(
208  'ctrl' => $TCA['tx_irretutorial_mnmmasym_price']['ctrl'],
209  'interface' => array(
210  'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,price,offers'
211  ),
212  'feInterface' => $TCA['tx_irretutorial_mnmmasym_price']['feInterface'],
213  'columns' => array(
214  'sys_language_uid' => array(
215  'exclude' => 1,
216  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
217  'config' => array(
218  'type' => 'select',
219  'foreign_table' => 'sys_language',
220  'foreign_table_where' => 'ORDER BY sys_language.title',
221  'items' => array(
222  array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
223  array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
224  )
225  )
226  ),
227  'l18n_parent' => array(
228  'displayCond' => 'FIELD:sys_language_uid:>:0',
229  'exclude' => 1,
230  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
231  'config' => array(
232  'type' => 'select',
233  'items' => array(
234  array('', 0),
235  ),
236  'foreign_table' => 'tx_irretutorial_mnmmasym_price',
237  'foreign_table_where' => 'AND tx_irretutorial_mnmmasym_price.pid=###CURRENT_PID### AND tx_irretutorial_mnmmasym_price.sys_language_uid IN (-1,0)',
238  )
239  ),
240  'l18n_diffsource' => array(
241  'config' => array(
242  'type' => 'passthrough'
243  )
244  ),
245  'hidden' => array(
246  'exclude' => 1,
247  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
248  'config' => array(
249  'type' => 'check',
250  'default' => '0'
251  )
252  ),
253  'title' => array(
254  'exclude' => 1,
255  'l10n_mode' => 'prefixLangTitle',
256  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_price.title',
257  'config' => array(
258  'type' => 'input',
259  'size' => '30',
260  'eval' => 'required',
261  )
262  ),
263  'price' => array(
264  'exclude' => 1,
265  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_price.price',
266  'config' => array(
267  'type' => 'input',
268  'size' => '30',
269  'eval' => 'double2',
270  )
271  ),
272  'offers' => array(
273  'exclude' => 1,
274  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_price.offers',
275  'config' => array(
276  'type' => 'inline',
277  'foreign_table' => 'tx_irretutorial_mnmmasym_offer',
278  'MM' => 'tx_irretutorial_mnmmasym_offer_price_rel',
279  'MM_hasUidField' => TRUE,
280  'MM_opposite_field' => 'prices',
281  'maxitems' => 10,
282  'appearance' => array(
283  'showSynchronizationLink' => 1,
284  'showAllLocalizationLink' => 1,
285  'showPossibleLocalizationRecords' => 1,
286  'showRemovedLocalizationRecords' => 1,
287  ),
288  'behaviour' => array(
289  'localizationMode' => 'select',
290  ),
291  )
292  ),
293  ),
294  'types' => array(
295  '0' => Array('showitem' =>
296  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title;;;;2-2-2, price;;;;3-3-3, offers,' .
297  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, hidden;;1'
298  )
299  ),
300  'palettes' => array(
301  '1' => Array('showitem' => '')
302  )
303 );
304 ?>
die
Definition: index.php:6
if(!defined('TYPO3_MODE')) $TCA['tx_irretutorial_mnmmasym_hotel']
Definition: tca.mnmmasym.php:6