TYPO3 CMS  TYPO3_6-2
tca.mnasym.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_mnasym_hotel'] = array(
7  'ctrl' => $TCA['tx_irretutorial_mnasym_hotel']['ctrl'],
8  'interface' => array(
9  'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,offers'
10  ),
11  'feInterface' => $TCA['tx_irretutorial_mnasym_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_mnasym_hotel',
36  'foreign_table_where' => 'AND tx_irretutorial_mnasym_hotel.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_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_mnasym_hotel_offer_rel',
68  'foreign_field' => 'hotelid',
69  'foreign_sortby' => 'hotelsort',
70  'foreign_label' => 'offerid',
71  'maxitems' => 10,
72  'appearance' => array(
73  'showSynchronizationLink' => 1,
74  'showAllLocalizationLink' => 1,
75  'showPossibleLocalizationRecords' => 1,
76  'showRemovedLocalizationRecords' => 1,
77  ),
78  'behaviour' => array(
79  'localizationMode' => 'select',
80  ),
81  )
82  ),
83  ),
84  'types' => array(
85  '0' => Array('showitem' =>
86  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title;;;;2-2-2, offers;;;;3-3-3,' .
87  '--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'
88  )
89  ),
90  'palettes' => array(
91  '1' => Array('showitem' => '')
92  )
93 );
94 
95 
96 
97 $TCA['tx_irretutorial_mnasym_hotel_offer_rel'] = array(
98  'ctrl' => $TCA['tx_irretutorial_mnasym_hotel_offer_rel']['ctrl'],
99  'interface' => array(
100  'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,hotelid,offerid,prices,hotelsort,offersort'
101  ),
102  'feInterface' => $TCA['tx_irretutorial_mnasym_hotel_offer_rel']['feInterface'],
103  'columns' => array(
104  'sys_language_uid' => array(
105  'exclude' => 1,
106  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
107  'config' => array(
108  'type' => 'select',
109  'foreign_table' => 'sys_language',
110  'foreign_table_where' => 'ORDER BY sys_language.title',
111  'items' => array(
112  array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
113  array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
114  )
115  )
116  ),
117  'l18n_parent' => array(
118  'displayCond' => 'FIELD:sys_language_uid:>:0',
119  'exclude' => 1,
120  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
121  'config' => array(
122  'type' => 'select',
123  'items' => array(
124  array('', 0),
125  ),
126  'foreign_table' => 'tx_irretutorial_mnasym_hotel_offer_rel',
127  'foreign_table_where' => 'AND tx_irretutorial_mnasym_hotel_offer_rel.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_hotel_offer_rel.sys_language_uid IN (-1,0)',
128  )
129  ),
130  'l18n_diffsource' => array(
131  'config' => array(
132  'type' => 'passthrough'
133  )
134  ),
135  'hidden' => array(
136  'exclude' => 1,
137  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
138  'config' => array(
139  'type' => 'check',
140  'default' => '0'
141  )
142  ),
143  'hotelid' => array(
144  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.hotelid',
145  'config' => array(
146  'type' => 'select',
147  'foreign_table' => 'tx_irretutorial_mnasym_hotel',
148  'foreign_table_where' => 'AND tx_irretutorial_mnasym_hotel.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_hotel.sys_language_uid="###REC_FIELD_sys_language_uid###"',
149  'maxitems' => 1,
150  'localizeReferences' => 1,
151  )
152  ),
153  'offerid' => array(
154  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.offerid',
155  'config' => array(
156  'type' => 'select',
157  'foreign_table' => 'tx_irretutorial_mnasym_offer',
158  'foreign_table_where' => 'AND tx_irretutorial_mnasym_offer.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_offer.sys_language_uid="###REC_FIELD_sys_language_uid###"',
159  'maxitems' => 1,
160  'localizeReferences' => 1,
161  )
162  ),
163  'prices' => array(
164  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.prices',
165  'config' => array(
166  'type' => 'inline',
167  'foreign_table' => 'tx_irretutorial_mnasym_price',
168  'foreign_field' => 'parentid',
169  'maxitems' => 10,
170  'appearance' => array(
171  'showSynchronizationLink' => 1,
172  'showAllLocalizationLink' => 1,
173  'showPossibleLocalizationRecords' => 1,
174  'showRemovedLocalizationRecords' => 1,
175  ),
176  'behaviour' => array(
177  'localizationMode' => 'select',
178  ),
179  )
180  ),
181  'hotelsort' => array(
182  'config' => array(
183  'type' => 'passthrough',
184  )
185  ),
186  'offersort' => array(
187  'config' => array(
188  'type' => 'passthrough',
189  )
190  ),
191  ),
192  'types' => array(
193  '0' => Array('showitem' =>
194  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title;;;;2-2-2, hotelid;;;;3-3-3, offerid, prices,' .
195  '--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, hotelsort, offersort'
196  )
197  ),
198  'palettes' => array(
199  '1' => Array('showitem' => '')
200  )
201 );
202 
203 
204 
205 $TCA['tx_irretutorial_mnasym_offer'] = array(
206  'ctrl' => $TCA['tx_irretutorial_mnasym_offer']['ctrl'],
207  'interface' => array(
208  'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,hotels'
209  ),
210  'feInterface' => $TCA['tx_irretutorial_mnasym_offer']['feInterface'],
211  'columns' => array(
212  'sys_language_uid' => array(
213  'exclude' => 1,
214  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
215  'config' => array(
216  'type' => 'select',
217  'foreign_table' => 'sys_language',
218  'foreign_table_where' => 'ORDER BY sys_language.title',
219  'items' => array(
220  array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
221  array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
222  )
223  )
224  ),
225  'l18n_parent' => array(
226  'displayCond' => 'FIELD:sys_language_uid:>:0',
227  'exclude' => 1,
228  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
229  'config' => array(
230  'type' => 'select',
231  'items' => array(
232  array('', 0),
233  ),
234  'foreign_table' => 'tx_irretutorial_mnasym_offer',
235  'foreign_table_where' => 'AND tx_irretutorial_mnasym_offer.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_offer.sys_language_uid IN (-1,0)',
236  )
237  ),
238  'l18n_diffsource' => array(
239  'config' => array(
240  'type' => 'passthrough'
241  )
242  ),
243  'hidden' => array(
244  'exclude' => 1,
245  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
246  'config' => array(
247  'type' => 'check',
248  'default' => '0'
249  )
250  ),
251  'title' => array(
252  'exclude' => 1,
253  'l10n_mode' => 'prefixLangTitle',
254  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_offer.title',
255  'config' => array(
256  'type' => 'input',
257  'size' => '30',
258  'eval' => 'required',
259  )
260  ),
261  'hotels' => array(
262  'exclude' => 1,
263  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_offer.hotels',
264  'config' => array(
265  'type' => 'inline',
266  'foreign_table' => 'tx_irretutorial_mnasym_hotel_offer_rel',
267  'foreign_field' => 'offerid',
268  'foreign_sortby' => 'offersort',
269  'foreign_label' => 'hotelid',
270  'maxitems' => 10,
271  'appearance' => array(
272  'showSynchronizationLink' => 1,
273  'showAllLocalizationLink' => 1,
274  'showPossibleLocalizationRecords' => 1,
275  'showRemovedLocalizationRecords' => 1,
276  ),
277  'behaviour' => array(
278  'localizationMode' => 'select',
279  ),
280  )
281  ),
282  ),
283  'types' => array(
284  '0' => Array('showitem' =>
285  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title;;;;2-2-2, hotels,' .
286  '--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'
287  )
288  ),
289  'palettes' => array(
290  '1' => Array('showitem' => '')
291  )
292 );
293 
294 
295 
296 $TCA['tx_irretutorial_mnasym_price'] = array(
297  'ctrl' => $TCA['tx_irretutorial_mnasym_price']['ctrl'],
298  'interface' => array(
299  'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,parentid,price'
300  ),
301  'feInterface' => $TCA['tx_irretutorial_mnasym_price']['feInterface'],
302  'columns' => array(
303  'sys_language_uid' => array(
304  'exclude' => 1,
305  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
306  'config' => array(
307  'type' => 'select',
308  'foreign_table' => 'sys_language',
309  'foreign_table_where' => 'ORDER BY sys_language.title',
310  'items' => array(
311  array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
312  array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
313  )
314  )
315  ),
316  'l18n_parent' => array(
317  'displayCond' => 'FIELD:sys_language_uid:>:0',
318  'exclude' => 1,
319  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
320  'config' => array(
321  'type' => 'select',
322  'items' => array(
323  array('', 0),
324  ),
325  'foreign_table' => 'tx_irretutorial_mnasym_price',
326  'foreign_table_where' => 'AND tx_irretutorial_mnasym_price.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_price.sys_language_uid IN (-1,0)',
327  )
328  ),
329  'l18n_diffsource' => array(
330  'config' => array(
331  'type' => 'passthrough'
332  )
333  ),
334  'hidden' => array(
335  'exclude' => 1,
336  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
337  'config' => array(
338  'type' => 'check',
339  'default' => '0'
340  )
341  ),
342  'parentid' => array(
343  'config' => array(
344  'type' => 'passthrough',
345  )
346  ),
347  'title' => array(
348  'exclude' => 1,
349  'l10n_mode' => 'prefixLangTitle',
350  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_price.title',
351  'config' => array(
352  'type' => 'input',
353  'size' => '30',
354  'eval' => 'required',
355  )
356  ),
357  'price' => array(
358  'exclude' => 1,
359  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_price.price',
360  'config' => array(
361  'type' => 'input',
362  'size' => '30',
363  'eval' => 'double2',
364  )
365  ),
366  ),
367  'types' => array(
368  '0' => Array('showitem' =>
369  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title;;;;2-2-2, parentid, price;;;;3-3-3,' .
370  '--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, parentid'
371  )
372  ),
373  'palettes' => array(
374  '1' => Array('showitem' => '')
375  )
376 );
377 ?>
if(!defined('TYPO3_MODE')) $TCA['tx_irretutorial_mnasym_hotel']
Definition: tca.mnasym.php:6
die
Definition: index.php:6