-
Notifications
You must be signed in to change notification settings - Fork 16
/
Nette.xml
283 lines (283 loc) · 18.5 KB
/
Nette.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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<templateSet group="Nette">
<template name="com" value="/** * @return $CLASS$ */ protected function createComponent$NAME$() { return new $CLASS$($ARGS$);$END$ }" description="component factory" toReformat="true" toShortenFQNames="true">
<variable name="CLASS" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
<variable name="ARGS" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="NAME" 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="SQL" 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="TypeScript" value="false" />
<option name="PHP" value="true" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="sig" value="/***/ public function handle$NAME$($PARAMS$) { $END$ }" description="signal factory" toReformat="true" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="PARAMS" 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="SQL" 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="TypeScript" value="false" />
<option name="PHP" value="true" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="att" value="/** * @param \Nette\ComponentModel\Container $obj */ protected function attached($obj) { 	parent::attached($obj); 	if (!$obj instanceof \Nette\Application\UI\Presenter) { 		return; 	} 	$END$ }" description="component attached event" toReformat="true" toShortenFQNames="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="SQL" 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="TypeScript" value="false" />
<option name="PHP" value="true" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="obj" value="	/*************************** Nette\Object ***************************/ 	/** 	 * Access to reflection. 	 * @return \Nette\Reflection\ClassType 	 */ 	public static function getReflection() 	{ 		return new Nette\Reflection\ClassType(get_called_class()); 	} 	/** 	 * Call to undefined method. 	 * 	 * @param string $name 	 * @param array $args 	 * 	 * @throws \Nette\MemberAccessException 	 * @return mixed 	 */ 	public function __call($name, $args) 	{ 		return Nette\ObjectMixin::call($this, $name, $args); 	} 	/** 	 * Call to undefined static method. 	 * 	 * @param string $name 	 * @param array $args 	 * 	 * @throws \Nette\MemberAccessException 	 * @return mixed 	 */ 	public static function __callStatic($name, $args) 	{ 		return Nette\ObjectMixin::callStatic(get_called_class(), $name, $args); 	} 	/** 	 * Adding method to class. 	 * 	 * @param $name 	 * @param null $callback 	 * 	 * @throws \Nette\MemberAccessException 	 * @return callable|null 	 */ 	public static function extensionMethod($name, $callback = NULL) 	{ 		if (strpos($name, '::') === FALSE) { 			$class = get_called_class(); 		} else { 			list($class, $name) = explode('::', $name); 		} 		if ($callback === NULL) { 			return Nette\ObjectMixin::getExtensionMethod($class, $name); 		} else { 			Nette\ObjectMixin::setExtensionMethod($class, $name, $callback); 		} 	} 	/** 	 * Returns property value. Do not call directly. 	 * 	 * @param string $name 	 * 	 * @throws \Nette\MemberAccessException 	 * @return mixed 	 */ 	public function &__get($name) 	{ 		return Nette\ObjectMixin::get($this, $name); 	} 	/** 	 * Sets value of a property. Do not call directly. 	 * 	 * @param string $name 	 * @param mixed $value 	 * 	 * @throws \Nette\MemberAccessException 	 * @return void 	 */ 	public function __set($name, $value) 	{ 		Nette\ObjectMixin::set($this, $name, $value); 	} 	/** 	 * Is property defined? 	 * 	 * @param string $name 	 * 	 * @return bool 	 */ 	public function __isset($name) 	{ 		return Nette\ObjectMixin::has($this, $name); 	} 	/** 	 * Access to undeclared property. 	 * 	 * @param string $name 	 * 	 * @throws \Nette\MemberAccessException 	 * @return void 	 */ 	public function __unset($name) 	{ 		Nette\ObjectMixin::remove($this, $name); 	}" description="Nette\Object mixin" toReformat="true" toShortenFQNames="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="SQL" 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="TypeScript" value="false" />
<option name="PHP" value="true" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="inj" value="/** * @var $TYPE$ * @inject */ public $$$PROPERTY$;" description="@inject property" toReformat="true" toShortenFQNames="true">
<variable name="TYPE" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="PROPERTY" 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="SQL" 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="TypeScript" value="false" />
<option name="PHP" value="true" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="sup" value="protected function startup() { parent::startup(); $END$ }" description="startup method" toReformat="true" toShortenFQNames="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="SQL" 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="TypeScript" value="false" />
<option name="PHP" value="true" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="form" value="/** * @return $FORM_CLASS$ */ protected function createComponent$NAME$() { 	$$form = new $FORM_CLASS$(); 	$END$ $$form->addSubmit("send", "Odeslat"); 	$$form->onSuccess[] = function ($FORM_CLASS$ $$form) { 		throw new Nette\NotImplementedException; 	}; 	return $$form; } " description="Form component factory + handler" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="FORM_CLASS" expression="enum("Form", "UI\\Form", "Nette\\Application\\UI\\Form")" defaultValue="Form" 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="SQL" 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="TypeScript" value="false" />
<option name="PHP" value="true" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="ren" value="public function render$VIEW$($PARAMS$) { 	$END$ }" description="Render method" toReformat="false" toShortenFQNames="true">
<variable name="VIEW" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="PARAMS" 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="SQL" 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="TypeScript" value="false" />
<option name="PHP" value="true" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="act" value="public function action$ACTION$($PARAMS$) { 	$END$ }" description="Action method" toReformat="false" toShortenFQNames="true">
<variable name="ACTION" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="PARAMS" 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="SQL" 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="TypeScript" value="false" />
<option name="PHP" value="true" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="aws" value="/** * @var $TYPE$ * @autowire */ protected $$$PROPERTY$; " description="@autowire property" toReformat="true" toShortenFQNames="true">
<variable name="TYPE" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
<variable name="PROPERTY" 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="SQL" 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="TypeScript" value="false" />
<option name="PHP" value="true" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="awf" value="/** * @var $TYPE$ * @autowire(factory=$FACTORY$) */ protected $$$PROPERTY$; " description="@autowire factory to property" toReformat="true" toShortenFQNames="true">
<variable name="TYPE" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
<variable name="FACTORY" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
<variable name="PROPERTY" 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="SQL" 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="TypeScript" value="false" />
<option name="PHP" value="true" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="auw" value="/** * @var $TYPE$ * @autowire */ protected $$$PROPERTY$;" description="autowire property" toReformat="false" toShortenFQNames="true">
<variable name="TYPE" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
<variable name="PROPERTY" 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="SQL" 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="TypeScript" value="false" />
<option name="PHP" value="true" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="fac" value="protected function createComponent$NAME$($FACTORY$ $$factory) { 	$$control = $$factory->create($ARGS$);$END$ return $$control; }" description="component factory with usage of generated factory" toReformat="true" toShortenFQNames="true">
<variable name="FACTORY" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
<variable name="ARGS" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="NAME" 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="SQL" 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="TypeScript" value="false" />
<option name="PHP" value="true" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="awc" value="protected function createComponent$NAME$($FACTORY$ $factory) { 	$control = $factory->create(); 	return $control;$END$ } " description="autowired component factory" toReformat="false" toShortenFQNames="true">
<variable name="FACTORY" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
<variable name="NAME" 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="SQL" 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="TypeScript" value="false" />
<option name="PHP" value="true" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="ifa" value="interface I$NAME$Factory { 	/** @return $NAME$ */ 	function create(); }" description="interface component factory" toReformat="true" toShortenFQNames="true">
<variable name="NAME" expression="fileNameWithoutExtension()" 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="SQL" 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="TypeScript" value="false" />
<option name="PHP" value="true" />
<option name="OTHER" value="false" />
</context>
</template>
</templateSet>