[TASK] Add functional tests for dynamic values in Extbase query cache
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Functional / Fixtures / Extensions / blog_example / Configuration / TCA / Blog.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 $TCA['tx_blogexample_domain_model_blog'] = array(
5 'ctrl' => $TCA['tx_blogexample_domain_model_blog']['ctrl'],
6 'interface' => array(
7 'showRecordFieldList' => 'title, posts, administrator'
8 ),
9 'columns' => array(
10 'sys_language_uid' => Array (
11 'exclude' => 1,
12 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
13 'config' => Array (
14 'type' => 'select',
15 'foreign_table' => 'sys_language',
16 'foreign_table_where' => 'ORDER BY sys_language.title',
17 'items' => Array(
18 Array('LLL:EXT:lang/locallang_general.php:LGL.allLanguages',-1),
19 Array('LLL:EXT:lang/locallang_general.php:LGL.default_value',0)
20 )
21 )
22 ),
23 'l18n_parent' => Array (
24 'displayCond' => 'FIELD:sys_language_uid:>:0',
25 'exclude' => 1,
26 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.l18n_parent',
27 'config' => Array (
28 'type' => 'select',
29 'items' => Array (
30 Array('', 0),
31 ),
32 'foreign_table' => 'tx_blogexample_domain_model_blog',
33 'foreign_table_where' => 'AND tx_blogexample_domain_model_blog.uid=###REC_FIELD_l18n_parent### AND tx_blogexample_domain_model_blog.sys_language_uid IN (-1,0)',
34 )
35 ),
36 'l18n_diffsource' => Array(
37 'config'=>array(
38 'type'=>'passthrough'
39 )
40 ),
41 't3ver_label' => Array (
42 'displayCond' => 'FIELD:t3ver_label:REQ:true',
43 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
44 'config' => Array (
45 'type'=>'none',
46 'cols' => 27
47 )
48 ),
49 'hidden' => array(
50 'exclude' => 1,
51 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
52 'config' => array(
53 'type' => 'check'
54 )
55 ),
56 'fe_group' => array(
57 'exclude' => 1,
58 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.fe_group',
59 'config' => array(
60 'type' => 'select',
61 'size' => 5,
62 'maxitems' => 20,
63 'items' => array(
64 array(
65 'LLL:EXT:lang/locallang_general.xlf:LGL.hide_at_login',
66 -1,
67 ),
68 array(
69 'LLL:EXT:lang/locallang_general.xlf:LGL.any_login',
70 -2,
71 ),
72 array(
73 'LLL:EXT:lang/locallang_general.xlf:LGL.usergroups',
74 '--div--',
75 ),
76 ),
77 'exclusiveKeys' => '-1,-2',
78 'foreign_table' => 'fe_groups',
79 'foreign_table_where' => 'ORDER BY fe_groups.title',
80 ),
81 ),
82 'title' => array(
83 'exclude' => 0,
84 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.title',
85 'config' => array(
86 'type' => 'input',
87 'size' => 20,
88 'eval' => 'trim,required',
89 'max' => 256
90 )
91 ),
92 'description' => array(
93 'exclude' => 1,
94 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.description',
95 'config' => array(
96 'type' => 'text',
97 'eval' => 'required',
98 'rows' => 30,
99 'cols' => 80,
100 )
101 ),
102 'logo' => array(
103 'exclude' => 1,
104 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.logo',
105 'config' => array(
106 'type' => 'group',
107 'internal_type' => 'file',
108 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
109 'max_size' => 3000,
110 'uploadfolder' => 'uploads/pics',
111 'show_thumbs' => 1,
112 'size' => 1,
113 'maxitems' => 1,
114 'minitems' => 0
115 )
116 ),
117 'posts' => array(
118 'exclude' => 1,
119 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.posts',
120 'config' => array(
121 'type' => 'inline',
122 'foreign_table' => 'tx_blogexample_domain_model_post',
123 'foreign_field' => 'blog',
124 'foreign_sortby' => 'sorting',
125 'maxitems' => 999999,
126 'appearance' => array(
127 'collapseAll' => 1,
128 'expandSingle' => 1,
129 ),
130 )
131 ),
132 'administrator' => Array (
133 'exclude' => 1,
134 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.administrator',
135 'config' => Array (
136 'type' => 'select',
137 'foreign_table' => 'fe_users',
138 'foreign_table_where' => "AND fe_users.tx_extbase_type='Tx_BlogExample_Domain_Model_Administrator'",
139 'items' => array(
140 array('--none--', 0),
141 ),
142 'wizards' => Array(
143 '_VERTICAL' => 1,
144 'edit' => Array(
145 'type' => 'popup',
146 'title' => 'Edit',
147 'script' => 'wizard_edit.php',
148 'icon' => 'edit2.gif',
149 'popup_onlyOpenIfSelected' => 1,
150 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
151 ),
152 'add' => Array(
153 'type' => 'script',
154 'title' => 'Create new',
155 'icon' => 'add.gif',
156 'params' => Array(
157 'table'=>'fe_users',
158 'pid' => '###CURRENT_PID###',
159 'setValue' => 'prepend'
160 ),
161 'script' => 'wizard_add.php',
162 ),
163 )
164 )
165 ),
166 ),
167 'types' => array(
168 '1' => array('showitem' => 'sys_language_uid, hidden, fe_group, title, description, logo, posts, administrator')
169 ),
170 'palettes' => array(
171 '1' => array('showitem' => '')
172 )
173 );