-
Notifications
You must be signed in to change notification settings - Fork 11
/
TYPO3.xml
242 lines (241 loc) · 15.8 KB
/
TYPO3.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<?xml version="1.0" encoding="UTF-8"?>
<templateSet group="TYPO3">
<template name="t3debug" value="t3lib_utility_Debug::debug($variable$,__FILE__ . " " . __LINE__);" description="TYPO3 Debug" toReformat="false" toShortenFQNames="true">
<variable name="variable" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="SQL" value="false" />
<option name="PHP" value="true" />
<option name="CUCUMBER_FEATURE_FILE" value="false" />
<option name="CoffeeScript" value="false" />
<option name="HAML" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="tcaLink" value="'$column_name$' => array (		 	'exclude' => 0,		 	'label' => '$label$',		 	'config' => array ( 		'type' => 'input', 		'size' => '15', 		'max' => '255', 		'checkbox' => '', 		'eval' => 'trim', 		'wizards' => array( 			'_PADDING' => 2, 			'link' => array( 				'type' => 'popup', 				'title' => 'Link', 				'icon' => 'link_popup.gif', 				'script' => 'browse_links.php?mode=wizard', 				'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1' 			) 		) 	) )," description="Generates a TCA Input field, with Link wizard" toReformat="false" toShortenFQNames="true">
<variable name="column_name" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="label" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="SQL" value="false" />
<option name="PHP" value="true" />
<option name="CUCUMBER_FEATURE_FILE" value="false" />
<option name="CoffeeScript" value="false" />
<option name="HAML" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="tcaText" value="'$column_name$' => array( 	'exclude' => 0, 	'label' => '$label$', 	'config' => array( 		'type' => 'text', 		'cols' => 40, 		'rows' => 15, 		'eval' => 'trim' 	), )," description="Generate a TCA text field." toReformat="false" toShortenFQNames="true">
<variable name="column_name" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="label" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="SQL" value="false" />
<option name="PHP" value="true" />
<option name="CUCUMBER_FEATURE_FILE" value="false" />
<option name="CoffeeScript" value="false" />
<option name="HAML" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="tcaDate" value="'$column_name$' => array( 	'exclude' => 1, 	'l10n_mode' => 'mergeIfNotBlank', 	'label' => '$label$', 	'config' => array( 		'type' => 'input', 		'size' => 13, 		'max' => 20, 		'eval' => 'datetime', 		'checkbox' => 0, 		'default' => 0, 		'range' => array( 			'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')) 		), 	), )," description="Generate a TCA date field" toReformat="false" toShortenFQNames="true">
<variable name="column_name" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="label" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="SQL" value="false" />
<option name="PHP" value="true" />
<option name="CUCUMBER_FEATURE_FILE" value="false" />
<option name="CoffeeScript" value="false" />
<option name="HAML" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="tcaDamMM" value="'$column_name$' => Array ( 	"exclude" => 0, 	'label' => '$label$', 	"config" => Array ( 		'type' => 'group', 		'form_type' => 'user', 		'userFunc' => 'EXT:dam/lib/class.tx_dam_tcefunc.php:&tx_dam_tceFunc->getSingleField_typeMedia', 		'internal_type' => 'db', 		'allowed' => 'tx_dam', 		'prepend_tname' => 1, 		'MM' => 'tx_dam_mm_ref', 		'MM_foreign_select' => 1, 		'MM_opposite_field' => 'file_usage', 		'MM_match_fields' => array( 			'ident' => '$ident$' 		), 		'allowed_types' => 'gif,jpg,jpeg,tif,tiff,bmp,pcx,tga,png,pdf,ai', 		'max_size' => 10000, 		'show_thumbs' => 1, 		'size' => 6, 		'maxitems' => 20, 		'minitems' => 0, 		'autoSizeMax' => 30 	) )" description="Generates a DAM relation field." toReformat="false" toShortenFQNames="true">
<variable name="column_name" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="label" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="ident" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="SQL" value="false" />
<option name="PHP" value="true" />
<option name="CUCUMBER_FEATURE_FILE" value="false" />
<option name="CoffeeScript" value="false" />
<option name="HAML" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="inject" value="/** * @var $className$ */ protected $$$property$; /** * inject the $property$ * * @param $className$ $property$ * @return void */ public function inject$upperCaseProperty$($className$ $$$property$) { 	$this->$property$ = $$$property$; }" description="Generate an injected Extbase property" toReformat="false" toShortenFQNames="true">
<variable name="className" expression="" defaultValue="className" alwaysStopAt="true" />
<variable name="property" expression="" defaultValue="propertyName" alwaysStopAt="true" />
<variable name="upperCaseProperty" expression="capitalize(property)" defaultValue="" alwaysStopAt="false" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="SQL" value="false" />
<option name="PHP" value="true" />
<option name="CUCUMBER_FEATURE_FILE" value="false" />
<option name="CoffeeScript" value="false" />
<option name="HAML" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="flexParse" value="$flexformService = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Service\\FlexFormService'); $flex = $flexformService->convertFlexFormContentToArray($var_name$);" description="Parse a flexform XML string (doesn't handle localizations yet)" toReformat="true" toShortenFQNames="true">
<variable name="var_name" expression="complete()" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="SQL" value="false" />
<option name="PHP" value="true" />
<option name="CUCUMBER_FEATURE_FILE" value="false" />
<option name="CoffeeScript" value="false" />
<option name="HAML" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="sqlSelect" value="$$select = '$select$'; $$table = '$table$'; $$where = '$where$'; $$groupBy = '$groupBy$'; $$orderBy = '$orderBy$'; $$limit = '$limit$'; $$result = $$GLOBALS['TYPO3_DB']->exec_SELECTquery($$select,$$table,$$where,$$groupBy,$$orderBy,$$limit); while ($$row = $$GLOBALS['TYPO3_DB']->sql_fetch_assoc($$result)) { 	$$$values$[] = $$row; }" description="Generate code needed for a direct sql select query" toReformat="false" toShortenFQNames="true">
<variable name="select" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="table" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="where" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="groupBy" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="orderBy" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="limit" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="values" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="JSP" value="false" />
<option name="SQL" value="false" />
<option name="PHP" value="true" />
<option name="HAML" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="sqlInsert" value="$$dataArray['$dataKey$'] = '$dataValue$'; $$tableName = '$tableName$'; $result = $$GLOBALS['TYPO3_DB']->exec_INSERTquery($$tableName,$$dataArray);" description="Generate code needed for a direct sql insert query" toReformat="false" toShortenFQNames="true">
<variable name="dataKey" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="dataValue" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="tableName" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="JSP" value="false" />
<option name="SQL" value="false" />
<option name="PHP" value="true" />
<option name="HAML" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="sqlUpdate" value="$$dataArray['$dataKey$'] = '$dataValues$'; $$tableName = '$tableName$'; $$where = '$where$'; $result = $$GLOBALS['TYPO3_DB']->exec_UPDATEquery($$tableName,$$where,$$dataArray);" description="Generate code needed for a direct sql update query" toReformat="false" toShortenFQNames="true">
<variable name="dataKey" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="dataValues" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="tableName" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="where" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="JSP" value="false" />
<option name="SQL" value="false" />
<option name="PHP" value="true" />
<option name="HAML" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="ipmatch" value="if(t3lib_div::getIndpEnv('REMOTE_ADDR')=='`curl -s http://specialbody.com/ip.php`') { $body$ }" description="Checks if IP addresses match" toReformat="false" toShortenFQNames="true">
<variable name="body" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="JSP" value="false" />
<option name="SQL" value="false" />
<option name="PHP" value="true" />
<option name="HAML" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="ebdb" value="\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($variable$)" description="Extbase debug message" toReformat="false" toShortenFQNames="true">
<variable name="variable" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="JSP" value="false" />
<option name="SQL" value="false" />
<option name="PHP" value="true" />
<option name="HAML" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
</templateSet>