Parent Directory
|
Revision Log
+ updated whole lib to version 2.2.1 (new FormProcessing since 2.2.0!)
1 | jonen | 1.1 | <?php |
2 | /** | ||
3 | * This file contains all of the default | ||
4 | * support svg tags by phpHtmlLib. | ||
5 | * | ||
6 | jonen | 1.2 | * $Id: SVGTAGS.inc,v 1.7 2003/02/18 23:02:03 hemna Exp $ |
7 | jonen | 1.1 | * |
8 | * @author Walter A. Boring IV <waboring@buildabetterweb.com> | ||
9 | * @package phpHtmlLib | ||
10 | * @link http://phphtmllib.newsblob.com | ||
11 | */ | ||
12 | |||
13 | /** | ||
14 | * This overrides the WMLTagClass to | ||
15 | * define some methods that set | ||
16 | * some commonly used SVG tag attributes. | ||
17 | * | ||
18 | * @author Walter A. Boring IV <waboring@buildabetterweb.com> | ||
19 | * @package phpHtmlLib | ||
20 | * @link http://phphtmllib.newsblob.com | ||
21 | * @link http://www.w3.org/TR/SVG | ||
22 | * @link http://www.w3.org/TR/SVG/eltindex.html | ||
23 | */ | ||
24 | class SVGTagClass extends XMLTagClass { | ||
25 | |||
26 | /** | ||
27 | * The SVGTagClass constructor | ||
28 | * | ||
29 | * @param array - the tag's attributes | ||
30 | * @param mixed - any N number of params for | ||
31 | * content for the tag | ||
32 | */ | ||
33 | function SVGTagClass( $attributes=array() ) { | ||
34 | $this->set_tag_attributes( $attributes ); | ||
35 | $num_args = func_num_args(); | ||
36 | for ($i=1;$i<$num_args;$i++) { | ||
37 | $this->add(func_get_arg($i)); | ||
38 | } | ||
39 | jonen | 1.2 | $this->_set_flags(); |
40 | jonen | 1.1 | } |
41 | |||
42 | /** | ||
43 | * Attributes common to ALL SVG tags | ||
44 | */ | ||
45 | |||
46 | /** | ||
47 | * This function is a shorthand helper | ||
48 | * to setting the id attribute on a | ||
49 | * tag. | ||
50 | * | ||
51 | * @param string - the class value. | ||
52 | * @link http://www.w3.org/TR/SVG/struct.html#StdAttrs | ||
53 | */ | ||
54 | function set_id( $value ) { | ||
55 | $this->set_tag_attribute("id", $value); | ||
56 | } | ||
57 | |||
58 | /** | ||
59 | * This method is used for setting the | ||
60 | * SVG common tag attribute of | ||
61 | * xml:base | ||
62 | * | ||
63 | * @param string - the 'xml:base' attribute | ||
64 | * @link http://www.w3.org/TR/SVG/struct.html#StdAttrs | ||
65 | */ | ||
66 | function set_xmlbase( $xmlbase ) { | ||
67 | $this->set_tag_attribute( "xml:base", $xmlbase ); | ||
68 | } | ||
69 | |||
70 | /** | ||
71 | * some often used SVG tags attributes | ||
72 | */ | ||
73 | |||
74 | /** | ||
75 | * This method is used for setting the | ||
76 | * SVG common tag attribute of | ||
77 | * xml:lang | ||
78 | * | ||
79 | * @param string - the 'xml:lang' attribute | ||
80 | * @link http://www.w3.org/TR/SVG/struct.html#StdAttrs | ||
81 | */ | ||
82 | function set_xmllang( $xmllang ) { | ||
83 | $this->set_tag_attribute( "xml:lang", $xmlbase ); | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * This method is used for setting the | ||
88 | * SVG common tag attribute of | ||
89 | * xml:space | ||
90 | * | ||
91 | * @param string - the 'xml:space' attribute | ||
92 | * @link http://www.w3.org/TR/SVG/struct.html#StdAttrs | ||
93 | */ | ||
94 | function set_xmlspace( $xmlspace ) { | ||
95 | $this->set_tag_attribute( "xml:space", $xmlbase ); | ||
96 | } | ||
97 | |||
98 | /** | ||
99 | * This function is a shorthand helper | ||
100 | * to setting the 'class' attribute on a | ||
101 | * tag. | ||
102 | * | ||
103 | * @param string - the class value. | ||
104 | */ | ||
105 | function set_class( $value ) { | ||
106 | $this->set_tag_attribute("class", $value); | ||
107 | } | ||
108 | |||
109 | /** | ||
110 | * This function is a shorthand helper | ||
111 | * to setting the 'style' attribute on a | ||
112 | * tag. | ||
113 | * | ||
114 | * @param string - the class value. | ||
115 | */ | ||
116 | function set_style( $value ) { | ||
117 | $this->set_tag_attribute("style", $value); | ||
118 | } | ||
119 | |||
120 | /** | ||
121 | * This function is used to set the | ||
122 | * 'transform' attribute of a tag. | ||
123 | * | ||
124 | * @param string - the 'transform' attribute | ||
125 | */ | ||
126 | function set_transform( $value ) { | ||
127 | $this->set_tag_attribute("transform", $value ); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * we override this method | ||
132 | * to automatically check to | ||
133 | * see if the tag has content. | ||
134 | * if it doesn't then we | ||
135 | * don't need to render the | ||
136 | * close tag. | ||
137 | */ | ||
138 | function _prepare_flags() { | ||
139 | if ($this->count_content() == 0) { | ||
140 | jonen | 1.2 | $this->_flags &= ~(_CONTENTREQUIRED | _CLOSETAGREQUIRED); |
141 | jonen | 1.1 | } |
142 | } | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <a> SVG tag | ||
147 | * @link http://www.w3.org/TR/SVG/linking.html#AElement | ||
148 | jonen | 1.2 | * @package phpHtmlLib |
149 | jonen | 1.1 | */ |
150 | class Asvgtag extends SVGTagClass { | ||
151 | var $_tag = "a"; | ||
152 | } // Asvgtag | ||
153 | |||
154 | /** | ||
155 | * <altGlyph> SVG tag | ||
156 | * @link http://www.w3.org/TR/SVG/text.html#AlternateGlyphs | ||
157 | jonen | 1.2 | * @package phpHtmlLib |
158 | jonen | 1.1 | */ |
159 | class ALTGLYGHsvgtag extends SVGTagClass { | ||
160 | var $_tag = "altGlyph"; | ||
161 | } // ALTGLYGHsvgtag | ||
162 | |||
163 | /** | ||
164 | * <altGlyphDef> SVG tag | ||
165 | * @link http://www.w3.org/TR/SVG/text.html#AlternateGlyphs | ||
166 | jonen | 1.2 | * @package phpHtmlLib |
167 | jonen | 1.1 | */ |
168 | class ALTGLYGHDEFsvgtag extends SVGTagClass { | ||
169 | var $_tag = "altGlyphDef"; | ||
170 | } // ALTGLYGHDEFsvgtag | ||
171 | |||
172 | /** | ||
173 | * <altGlyphItem> SVG tag | ||
174 | * @link http://www.w3.org/TR/SVG/text.html#AltGlyphItemElement | ||
175 | jonen | 1.2 | * @package phpHtmlLib |
176 | jonen | 1.1 | */ |
177 | class ALTGLYGHITEMsvgtag extends SVGTagClass { | ||
178 | var $_tag = "altGlyphItem"; | ||
179 | } // ALTGLYGHITEMsvgtag | ||
180 | |||
181 | /** | ||
182 | * <animate> SVG tag | ||
183 | * @link http://www.w3.org/TR/SVG/animate.html#AnimateElement | ||
184 | jonen | 1.2 | * @package phpHtmlLib |
185 | jonen | 1.1 | */ |
186 | class ANIMATEsvgtag extends SVGTagClass { | ||
187 | var $_tag = "animate"; | ||
188 | } // ANIMATEsvgtag | ||
189 | |||
190 | /** | ||
191 | * <animateColor> SVG tag | ||
192 | * @link http://www.w3.org/TR/SVG/animate.html#AnimateColorElement | ||
193 | jonen | 1.2 | * @package phpHtmlLib |
194 | jonen | 1.1 | */ |
195 | class ANIMATECOLORsvgtag extends SVGTagClass { | ||
196 | var $_tag = "animateColor"; | ||
197 | } // ANIMATECOLORsvgtag | ||
198 | |||
199 | /** | ||
200 | * <animateMotion> SVG tag | ||
201 | * @link http://www.w3.org/TR/SVG/animate.html#AnimateMotionElement | ||
202 | jonen | 1.2 | * @package phpHtmlLib |
203 | jonen | 1.1 | */ |
204 | class ANIMATEMOTIONsvgtag extends SVGTagClass { | ||
205 | var $_tag = "animateMotion"; | ||
206 | } // ANIMATEMOTIONsvgtag | ||
207 | |||
208 | /** | ||
209 | * <animateTransform> SVG tag | ||
210 | * @link http://www.w3.org/TR/SVG/animate.html#AnimateTransformElement | ||
211 | jonen | 1.2 | * @package phpHtmlLib |
212 | jonen | 1.1 | */ |
213 | class ANIMATETTRANSFORMsvgtag extends SVGTagClass { | ||
214 | var $_tag = "animateTransform"; | ||
215 | } // ANIMATETTRANSFORMsvgtag | ||
216 | |||
217 | /** | ||
218 | * <circle> SVG tag | ||
219 | * @link http://www.w3.org/TR/SVG/shapes.html | ||
220 | jonen | 1.2 | * @package phpHtmlLib |
221 | jonen | 1.1 | */ |
222 | class CIRCLEsvgtag extends SVGTagClass { | ||
223 | var $_tag = "circle"; | ||
224 | } // CIRCLEsvgtag | ||
225 | |||
226 | /** | ||
227 | * <clipPath> SVG tag | ||
228 | * @link http://www.w3.org/TR/SVG/masking.html#ClipPathElement | ||
229 | jonen | 1.2 | * @package phpHtmlLib |
230 | jonen | 1.1 | */ |
231 | class CLIPPATHsvgtag extends SVGTagClass { | ||
232 | var $_tag = "clipPath"; | ||
233 | } // CLIPPATHsvgtag | ||
234 | |||
235 | /** | ||
236 | * <color-profile> SVG tag | ||
237 | * @link http://www.w3.org/TR/SVG/color.html#ColorProfileElement | ||
238 | jonen | 1.2 | * @package phpHtmlLib |
239 | jonen | 1.1 | */ |
240 | class COLORPROFILEsvgtag extends SVGTagClass { | ||
241 | var $_tag = "color-profile"; | ||
242 | } // COLORPROFILEsvgtag | ||
243 | |||
244 | /** | ||
245 | * <cursor> SVG tag | ||
246 | * @link http://www.w3.org/TR/SVG/interact.html#CursorElement | ||
247 | jonen | 1.2 | * @package phpHtmlLib |
248 | jonen | 1.1 | */ |
249 | class CURSORsvgtag extends SVGTagClass { | ||
250 | var $_tag = "cursor"; | ||
251 | } // CIRCLEsvgtag | ||
252 | |||
253 | /** | ||
254 | * <defs> SVG tag | ||
255 | * @link http://www.w3.org/TR/SVG/struct.html#DefsElement | ||
256 | jonen | 1.2 | * @package phpHtmlLib |
257 | jonen | 1.1 | */ |
258 | class DEFSsvgtag extends SVGTagClass { | ||
259 | var $_tag = "defs"; | ||
260 | } // DEFSsvgtag | ||
261 | |||
262 | /** | ||
263 | * <desc> SVG tag | ||
264 | * @link http://www.w3.org/TR/SVG/struct.html#DefsElement | ||
265 | jonen | 1.2 | * @package phpHtmlLib |
266 | jonen | 1.1 | */ |
267 | class DESCsvgtag extends SVGTagClass { | ||
268 | var $_tag = "desc"; | ||
269 | } // DESCsvgtag | ||
270 | |||
271 | /** | ||
272 | * <definition-src> SVG tag | ||
273 | * @link http://www.w3.org/TR/SVG/fonts.html#DefinitionSrcElement | ||
274 | jonen | 1.2 | * @package phpHtmlLib |
275 | jonen | 1.1 | */ |
276 | class DEFINITIONSRCsvgtag extends SVGTagClass { | ||
277 | var $_tag = "definition-src"; | ||
278 | jonen | 1.2 | function _set_flags() { |
279 | parent::_set_flags(); | ||
280 | $this->_flags &= ~(_CONTENTREQUIRED | _CLOSETAGREQUIRED); | ||
281 | } | ||
282 | jonen | 1.1 | } // DEFINITIONSRCsvgtag |
283 | |||
284 | /** | ||
285 | * <ellipse> SVG tag | ||
286 | * @link http://www.w3.org/TR/SVG/shapes.html | ||
287 | jonen | 1.2 | * @package phpHtmlLib |
288 | jonen | 1.1 | */ |
289 | class ELLIPSEsvgtag extends SVGTagClass { | ||
290 | var $_tag = "ellipse"; | ||
291 | jonen | 1.2 | function _set_flags() { |
292 | parent::_set_flags(); | ||
293 | $this->_flags &= ~(_CONTENTREQUIRED | _CLOSETAGREQUIRED); | ||
294 | } | ||
295 | jonen | 1.1 | } // ELLIPSEsvgtag |
296 | |||
297 | /** | ||
298 | * <feBlend> SVG tag | ||
299 | * @link http://www.w3.org/TR/SVG/filters.html#feBlendElement | ||
300 | jonen | 1.2 | * @package phpHtmlLib |
301 | jonen | 1.1 | */ |
302 | class FEBLENDsvgtag extends SVGTagClass { | ||
303 | var $_tag = "feBlend"; | ||
304 | } // FEBLENDsvgtag | ||
305 | |||
306 | /** | ||
307 | * <feColorMatrix> SVG tag | ||
308 | * @link http://www.w3.org/TR/SVG/filters.html#feColorMatrixElement | ||
309 | jonen | 1.2 | * @package phpHtmlLib |
310 | jonen | 1.1 | */ |
311 | class FECOLORMATRIXsvgtag extends SVGTagClass { | ||
312 | var $_tag = "feColorMatrix"; | ||
313 | } // FECOLORMATRIXsvgtag | ||
314 | |||
315 | /** | ||
316 | * <feComponentTransfer> SVG tag | ||
317 | * @link http://www.w3.org/TR/SVG/filters.html#feComponentTransferElement | ||
318 | jonen | 1.2 | * @package phpHtmlLib |
319 | jonen | 1.1 | */ |
320 | class FECOMPONENTTANSFERsvgtag extends SVGTagClass { | ||
321 | var $_tag = "feComponentTransfer"; | ||
322 | } // FECOMPONENTTANSFERsvgtag | ||
323 | |||
324 | /** | ||
325 | * <feComposite> SVG tag | ||
326 | * @link http://www.w3.org/TR/SVG/filters.html#feCompositeElement | ||
327 | jonen | 1.2 | * @package phpHtmlLib |
328 | jonen | 1.1 | */ |
329 | class FECOMPOSITEsvgtag extends SVGTagClass { | ||
330 | var $_tag = "feComposite"; | ||
331 | } // FECOMPOSITEsvgtag | ||
332 | |||
333 | /** | ||
334 | * <feConvolveMatrix> SVG tag | ||
335 | * @link http://www.w3.org/TR/SVG/filters.html#feConvolveMatrixElement | ||
336 | jonen | 1.2 | * @package phpHtmlLib |
337 | jonen | 1.1 | */ |
338 | class FECONVOLVEMATRIXsvgtag extends SVGTagClass { | ||
339 | var $_tag = "feConvolveMatrix"; | ||
340 | } // FECONVOLVEMATRIXsvgtag | ||
341 | |||
342 | /** | ||
343 | * <feDiffuseLighting> SVG tag | ||
344 | * @link http://www.w3.org/TR/SVG/filters.html#feDiffuseLightingElement | ||
345 | jonen | 1.2 | * @package phpHtmlLib |
346 | jonen | 1.1 | */ |
347 | class FEDIFFUSELIGHTINGsvgtag extends SVGTagClass { | ||
348 | var $_tag = "feDiffuseLighting"; | ||
349 | } // FEDIFFUSELIGHTINGsvgtag | ||
350 | |||
351 | /** | ||
352 | * <feDisplacementMap> SVG tag | ||
353 | * @link http://www.w3.org/TR/SVG/filters.html#feDisplacementMapElement | ||
354 | jonen | 1.2 | * @package phpHtmlLib |
355 | jonen | 1.1 | */ |
356 | class FEDISPLACEMENTMAPsvgtag extends SVGTagClass { | ||
357 | var $_tag = "feDisplacementMap"; | ||
358 | } // FEDISPLACEMENTMAPsvgtag | ||
359 | |||
360 | /** | ||
361 | * <feDistantLight> SVG tag | ||
362 | * @link http://www.w3.org/TR/SVG/filters.html#feDistantLightElement | ||
363 | jonen | 1.2 | * @package phpHtmlLib |
364 | jonen | 1.1 | */ |
365 | class FEDISTANTLIGHTsvgtag extends SVGTagClass { | ||
366 | var $_tag = "feDistantLight"; | ||
367 | } // FEDISTANTLIGHTsvgtag | ||
368 | |||
369 | /** | ||
370 | * <feFlood> SVG tag | ||
371 | * @link http://www.w3.org/TR/SVG/filters.html#feFloodElement | ||
372 | jonen | 1.2 | * @package phpHtmlLib |
373 | jonen | 1.1 | */ |
374 | class FEFLOODsvgtag extends SVGTagClass { | ||
375 | var $_tag = "feFlood"; | ||
376 | } // FEFLOODsvgtag | ||
377 | |||
378 | /** | ||
379 | * <feFuncA> SVG tag | ||
380 | * @link http://www.w3.org/TR/SVG/filters.html#feFuncAElement | ||
381 | jonen | 1.2 | * @package phpHtmlLib |
382 | jonen | 1.1 | */ |
383 | class FEFUNCAsvgtag extends SVGTagClass { | ||
384 | var $_tag = "feFuncA"; | ||
385 | } // FEFUNCAsvgtag | ||
386 | |||
387 | /** | ||
388 | * <feFuncB> SVG tag | ||
389 | * @link http://www.w3.org/TR/SVG/filters.html#feFuncBElement | ||
390 | jonen | 1.2 | * @package phpHtmlLib |
391 | jonen | 1.1 | */ |
392 | class FEFUNCBsvgtag extends SVGTagClass { | ||
393 | var $_tag = "feFuncB"; | ||
394 | } // FEFUNCBsvgtag | ||
395 | |||
396 | /** | ||
397 | * <feFuncG> SVG tag | ||
398 | * @link http://www.w3.org/TR/SVG/filters.html#feFuncGElement | ||
399 | jonen | 1.2 | * @package phpHtmlLib |
400 | jonen | 1.1 | */ |
401 | class FEFUNCGsvgtag extends SVGTagClass { | ||
402 | var $_tag = "feFuncG"; | ||
403 | } // FEFUNCGsvgtag | ||
404 | |||
405 | /** | ||
406 | * <feFuncR> SVG tag | ||
407 | * @link http://www.w3.org/TR/SVG/filters.html#feFuncRElement | ||
408 | jonen | 1.2 | * @package phpHtmlLib |
409 | jonen | 1.1 | */ |
410 | class FEFUNCRsvgtag extends SVGTagClass { | ||
411 | var $_tag = "feFuncR"; | ||
412 | } // FEFUNCRsvgtag | ||
413 | |||
414 | /** | ||
415 | * <feGaussianBlur> SVG tag | ||
416 | * @link http://www.w3.org/TR/SVG/filters.html#feGaussianBlurElement | ||
417 | jonen | 1.2 | * @package phpHtmlLib |
418 | jonen | 1.1 | */ |
419 | class FEGAUSSIANBLURsvgtag extends SVGTagClass { | ||
420 | var $_tag = "feGaussianBlur"; | ||
421 | } // FEGAUSSIANBLURsvgtag | ||
422 | |||
423 | /** | ||
424 | * <feImage> SVG tag | ||
425 | * @link http://www.w3.org/TR/SVG/filters.html#feImageElement | ||
426 | jonen | 1.2 | * @package phpHtmlLib |
427 | jonen | 1.1 | */ |
428 | class FEIMAGEsvgtag extends SVGTagClass { | ||
429 | var $_tag = "feImage"; | ||
430 | } // FEIMAGEsvgtag | ||
431 | |||
432 | /** | ||
433 | * <feMerge> SVG tag | ||
434 | * @link http://www.w3.org/TR/SVG/filters.html#feMergeElement | ||
435 | jonen | 1.2 | * @package phpHtmlLib |
436 | jonen | 1.1 | */ |
437 | class FEMERGEsvgtag extends SVGTagClass { | ||
438 | var $_tag = "feMerge"; | ||
439 | } // FEMERGEsvgtag | ||
440 | |||
441 | /** | ||
442 | * <feMergeNode> SVG tag | ||
443 | * @link http://www.w3.org/TR/SVG/filters.html#feMergeNodeElement | ||
444 | jonen | 1.2 | * @package phpHtmlLib |
445 | jonen | 1.1 | */ |
446 | class FEMERGENODEsvgtag extends SVGTagClass { | ||
447 | var $_tag = "feMergeNode"; | ||
448 | } // FEMERGENODEsvgtag | ||
449 | |||
450 | /** | ||
451 | * <feMorphology> SVG tag | ||
452 | * @link http://www.w3.org/TR/SVG/filters.html#feMorphologyElement | ||
453 | jonen | 1.2 | * @package phpHtmlLib |
454 | jonen | 1.1 | */ |
455 | class FEMORPHOLOGYsvgtag extends SVGTagClass { | ||
456 | var $_tag = "feMorphology"; | ||
457 | } // FEMORPHOLOGYsvgtag | ||
458 | |||
459 | /** | ||
460 | * <feOffset> SVG svgtag | ||
461 | * @link http://www.w3.org/TR/SVG/filters.html#feOffsetElement | ||
462 | jonen | 1.2 | * @package phpHtmlLib |
463 | jonen | 1.1 | */ |
464 | class FEOFFSETsvgtag extends SVGTagClass { | ||
465 | var $_tag = "feOffset"; | ||
466 | } // FEOFFSETsvgtag | ||
467 | |||
468 | /** | ||
469 | * <fePointLight> SVG tag | ||
470 | * @link http://www.w3.org/TR/SVG/filters.html#fePointLightElement | ||
471 | jonen | 1.2 | * @package phpHtmlLib |
472 | jonen | 1.1 | */ |
473 | class FEPOINTLIGHTsvgtag extends SVGTagClass { | ||
474 | var $_tag = "fePointLight"; | ||
475 | } // FEPOINTLIGHTsvgtag | ||
476 | |||
477 | /** | ||
478 | * <feSpecularLighting> SVG tag | ||
479 | * @link http://www.w3.org/TR/SVG/filters.html#feSpecularLightingElement | ||
480 | jonen | 1.2 | * @package phpHtmlLib |
481 | jonen | 1.1 | */ |
482 | class FESPECTACULARLIGHTINGsvgtag extends SVGTagClass { | ||
483 | var $_tag = "feSpecularLighting"; | ||
484 | } // FESPECTACULARLIGHTINGsvgtag | ||
485 | |||
486 | /** | ||
487 | * <feSpotLight> SVG tag | ||
488 | * @link http://www.w3.org/TR/SVG/filters.html#feSpotLightElement | ||
489 | jonen | 1.2 | * @package phpHtmlLib |
490 | jonen | 1.1 | */ |
491 | class FESPOTLIGHTsvgtag extends SVGTagClass { | ||
492 | var $_tag = "feSpotLight"; | ||
493 | } // FESPOTLIGHTsvgtag | ||
494 | |||
495 | /** | ||
496 | * <feTile> SVG tag | ||
497 | * @link http://www.w3.org/TR/SVG/filters.html#feTileElement | ||
498 | jonen | 1.2 | * @package phpHtmlLib |
499 | jonen | 1.1 | */ |
500 | class FETILEsvgtag extends SVGTagClass { | ||
501 | var $_tag = "feTile"; | ||
502 | } // FETILEsvgtag | ||
503 | |||
504 | /** | ||
505 | * <feTurbulence> SVG tag | ||
506 | * @link http://www.w3.org/TR/SVG/filters.html#feTurbulenceElement | ||
507 | jonen | 1.2 | * @package phpHtmlLib |
508 | jonen | 1.1 | */ |
509 | class FETURBULENCEsvgtag extends SVGTagClass { | ||
510 | var $_tag = "feTurbulence"; | ||
511 | } // FETURBULENCEsvgtag | ||
512 | |||
513 | /** | ||
514 | * <filter> SVG tag | ||
515 | * @link http://www.w3.org/TR/SVG/filters.html#FilterElement | ||
516 | jonen | 1.2 | * @package phpHtmlLib |
517 | jonen | 1.1 | */ |
518 | class FILTERsvgtag extends SVGTagClass { | ||
519 | var $_tag = "filter"; | ||
520 | } // FILTERsvgtag | ||
521 | |||
522 | /** | ||
523 | * <font> SVG tag | ||
524 | * @link http://www.w3.org/TR/SVG/fonts.html#FontElement | ||
525 | jonen | 1.2 | * @package phpHtmlLib |
526 | jonen | 1.1 | */ |
527 | class FONTsvgtag extends SVGTagClass { | ||
528 | var $_tag = "font"; | ||
529 | } // FONTsvgtag | ||
530 | |||
531 | /** | ||
532 | * <font-face> SVG tag | ||
533 | * @link http://www.w3.org/TR/SVG/fonts.html#FontFaceElement | ||
534 | jonen | 1.2 | * @package phpHtmlLib |
535 | jonen | 1.1 | */ |
536 | class FONTFACEsvgtag extends SVGTagClass { | ||
537 | var $_tag = "font-face"; | ||
538 | } // FONTFACEsvgtag | ||
539 | |||
540 | /** | ||
541 | * <font-face-format> SVG tag | ||
542 | * @link http://www.w3.org/TR/SVG/fonts.html#FontFaceNameElement | ||
543 | jonen | 1.2 | * @package phpHtmlLib |
544 | jonen | 1.1 | */ |
545 | class FONTFACEFORMATsvgtag extends SVGTagClass { | ||
546 | var $_tag = "font-face-format"; | ||
547 | jonen | 1.2 | function _set_flags() { |
548 | parent::_set_flags(); | ||
549 | $this->_flags &= ~(_CONTENTREQUIRED | _CLOSETAGREQUIRED); | ||
550 | } | ||
551 | jonen | 1.1 | } // FONTFACEFORMATsvgtag |
552 | |||
553 | /** | ||
554 | * <font-face-name> SVG tag | ||
555 | * @link http://www.w3.org/TR/SVG/fonts.html#FontFaceNameElement | ||
556 | jonen | 1.2 | * @package phpHtmlLib |
557 | jonen | 1.1 | */ |
558 | class FONTFACENAMEsvgtag extends SVGTagClass { | ||
559 | var $_tag = "font-face-name"; | ||
560 | jonen | 1.2 | function _set_flags() { |
561 | parent::_set_flags(); | ||
562 | $this->_flags &= ~(_CONTENTREQUIRED | _CLOSETAGREQUIRED); | ||
563 | } | ||
564 | jonen | 1.1 | } // FONTFACEFORMATsvgtag |
565 | |||
566 | /** | ||
567 | * <font-face-src> SVG tag | ||
568 | * @link http://www.w3.org/TR/SVG/fonts.html#FontFaceSrcElement | ||
569 | jonen | 1.2 | * @package phpHtmlLib |
570 | jonen | 1.1 | */ |
571 | class FONTFACESRCsvgtag extends SVGTagClass { | ||
572 | var $_tag = "font-face-src"; | ||
573 | } // FONTFACESRCsvgtag | ||
574 | |||
575 | /** | ||
576 | * <font-face-uri> SVG tag | ||
577 | * @link http://www.w3.org/TR/SVG/fonts.html#FontFaceNameElement | ||
578 | jonen | 1.2 | * @package phpHtmlLib |
579 | jonen | 1.1 | */ |
580 | class FONTFACEURIsvgtag extends SVGTagClass { | ||
581 | var $_tag = "font-face-uri"; | ||
582 | } // FONTFACEURIsvgtag | ||
583 | |||
584 | /** | ||
585 | * <foreignObject> SVG tag | ||
586 | * @link http://www.w3.org/TR/SVG/extend.html#ForeignObjectElement | ||
587 | jonen | 1.2 | * @package phpHtmlLib |
588 | jonen | 1.1 | */ |
589 | class FOREIGNOBJECTsvgtag extends SVGTagClass { | ||
590 | var $_tag = "foreignObject"; | ||
591 | } // FOREIGNOBJECTsvgtag | ||
592 | |||
593 | /** | ||
594 | * <g> SVG tag | ||
595 | * @link http://www.w3.org/TR/SVG/struct.html#GElement | ||
596 | jonen | 1.2 | * @package phpHtmlLib |
597 | jonen | 1.1 | */ |
598 | class Gsvgtag extends SVGTagClass { | ||
599 | var $_tag = "g"; | ||
600 | } // Gsvgtag | ||
601 | |||
602 | /** | ||
603 | * <glyph> SVG tag | ||
604 | * @link http://www.w3.org/TR/SVG/fonts.html#GlyphElement | ||
605 | jonen | 1.2 | * @package phpHtmlLib |
606 | jonen | 1.1 | */ |
607 | class GLYPHsvgtag extends SVGTagClass { | ||
608 | var $_tag = "glyph"; | ||
609 | } // GLYPHsvgtag | ||
610 | |||
611 | /** | ||
612 | * <glyphRef> SVG tag | ||
613 | * @link http://www.w3.org/TR/SVG/text.html#AlternateGlyphs | ||
614 | jonen | 1.2 | * @package phpHtmlLib |
615 | jonen | 1.1 | */ |
616 | class GLYPHREFsvgtag extends SVGTagClass { | ||
617 | var $_tag = "glyphRef"; | ||
618 | } // GLYPHREFsvgtag | ||
619 | |||
620 | /** | ||
621 | * <hkern> SVG tag | ||
622 | * @link http://www.w3.org/TR/SVG/fonts.html#HKernElement | ||
623 | jonen | 1.2 | * @package phpHtmlLib |
624 | jonen | 1.1 | */ |
625 | class HKERNsvgtag extends SVGTagClass { | ||
626 | var $_tag = "hkern"; | ||
627 | jonen | 1.2 | function _set_flags() { |
628 | parent::_set_flags(); | ||
629 | $this->_flags &= ~(_CONTENTREQUIRED | _CLOSETAGREQUIRED); | ||
630 | } | ||
631 | jonen | 1.1 | } // HKERNsvgtag |
632 | |||
633 | /** | ||
634 | * <image> SVG tag | ||
635 | * @link http://www.w3.org/TR/SVG/struct.html#ImageElement | ||
636 | jonen | 1.2 | * @package phpHtmlLib |
637 | jonen | 1.1 | */ |
638 | class IMAGEsvgtag extends SVGTagClass { | ||
639 | var $_tag = "image"; | ||
640 | } // IMAGEsvgtag | ||
641 | |||
642 | /** | ||
643 | * <line> SVG tag | ||
644 | * @link http://www.w3.org/TR/SVG/shapes.html | ||
645 | jonen | 1.2 | * @package phpHtmlLib |
646 | jonen | 1.1 | */ |
647 | class LINEsvgtag extends SVGTagClass { | ||
648 | var $_tag = "line"; | ||
649 | } // LINEsvgtag | ||
650 | |||
651 | /** | ||
652 | * <linearGradient> SVG tag | ||
653 | * @link http://www.w3.org/TR/SVG/pservers.html#LinearGradientElement | ||
654 | jonen | 1.2 | * @package phpHtmlLib |
655 | jonen | 1.1 | */ |
656 | class LINEARGRADIENTsvgtag extends SVGTagClass { | ||
657 | var $_tag = "linearGradient"; | ||
658 | } // LINEARGRADIENTsvgtag | ||
659 | |||
660 | /** | ||
661 | * <maker> SVG tag | ||
662 | * @link http://www.w3.org/TR/SVG/painting.html#MarkerElement | ||
663 | jonen | 1.2 | * @package phpHtmlLib |
664 | jonen | 1.1 | */ |
665 | class MARKERsvgtag extends SVGTagClass { | ||
666 | var $_tag = "marker"; | ||
667 | } // MARKERsvgtag | ||
668 | |||
669 | /** | ||
670 | * <mask> SVG tag | ||
671 | * @link http://www.w3.org/TR/SVG/masking.html#MaskElement | ||
672 | jonen | 1.2 | * @package phpHtmlLib |
673 | jonen | 1.1 | */ |
674 | class MASKsvgtag extends SVGTagClass { | ||
675 | var $_tag = "mask"; | ||
676 | } // MASKsvgtag | ||
677 | |||
678 | /** | ||
679 | * <metadata> SVG tag | ||
680 | * @link http://www.w3.org/TR/SVG/metadata.html#MetadataElement | ||
681 | jonen | 1.2 | * @package phpHtmlLib |
682 | jonen | 1.1 | */ |
683 | class METADATAsvgtag extends SVGTagClass { | ||
684 | var $_tag = "metadata"; | ||
685 | } // METADATAsvgtag | ||
686 | |||
687 | /** | ||
688 | * <missing-glyph> SVG tag | ||
689 | * @link http://www.w3.org/TR/SVG/fonts.html#MissingGlyphElement | ||
690 | jonen | 1.2 | * @package phpHtmlLib |
691 | jonen | 1.1 | */ |
692 | class MISSINGGLYPHsvgtag extends SVGTagClass { | ||
693 | var $_tag = "missing-glyph"; | ||
694 | } // MISSINGGLYPHsvgtag | ||
695 | |||
696 | /** | ||
697 | * <mpath> SVG tag | ||
698 | * @link http://www.w3.org/TR/SVG/animate.html#mpathElement | ||
699 | jonen | 1.2 | * @package phpHtmlLib |
700 | jonen | 1.1 | */ |
701 | class MPATHsvgtag extends SVGTagClass { | ||
702 | var $_tag = "mpath"; | ||
703 | } // MPATHsvgtag | ||
704 | |||
705 | /** | ||
706 | * <path> SVG tag | ||
707 | * @link http://www.w3.org/TR/SVG/paths.html#PathElement | ||
708 | jonen | 1.2 | * @package phpHtmlLib |
709 | jonen | 1.1 | */ |
710 | class PATHsvgtag extends SVGTagClass { | ||
711 | var $_tag = "path"; | ||
712 | } // PATHsvgtag | ||
713 | |||
714 | /** | ||
715 | * <pattern> SVG tag | ||
716 | * @link http://www.w3.org/TR/SVG/pservers.html#PatternElement | ||
717 | jonen | 1.2 | * @package phpHtmlLib |
718 | jonen | 1.1 | */ |
719 | class PATTERNsvgtag extends SVGTagClass { | ||
720 | var $_tag = "pattern"; | ||
721 | } // PATTERNsvgtag | ||
722 | |||
723 | /** | ||
724 | * <polygon> SVG tag | ||
725 | * @link http://www.w3.org/TR/SVG/shapes.html#PolygonElement | ||
726 | jonen | 1.2 | * @package phpHtmlLib |
727 | jonen | 1.1 | */ |
728 | class POLYGONsvgtag extends SVGTagClass { | ||
729 | var $_tag = "polygon"; | ||
730 | } // POLYGONsvgtag | ||
731 | |||
732 | /** | ||
733 | * <polyline> SVG tag | ||
734 | * @link http://www.w3.org/TR/SVG/shapes.html#PolylineElement | ||
735 | jonen | 1.2 | * @package phpHtmlLib |
736 | jonen | 1.1 | */ |
737 | class POLYLINEsvgtag extends SVGTagClass { | ||
738 | var $_tag = "polyline"; | ||
739 | } // POLYLINEsvgtag | ||
740 | |||
741 | /** | ||
742 | * <radialGradient> SVG tag | ||
743 | * @link http://www.w3.org/TR/SVG/pservers.html#RadialGradientElement | ||
744 | jonen | 1.2 | * @package phpHtmlLib |
745 | jonen | 1.1 | */ |
746 | class RADIALGRADIENTsvgtag extends SVGTagClass { | ||
747 | var $_tag = "radialGradient"; | ||
748 | } // RADIALGRADIENTsvgtag | ||
749 | |||
750 | /** | ||
751 | * <rect> SVG tag | ||
752 | * @link http://www.w3.org/TR/SVG/shapes.html#RectElement | ||
753 | jonen | 1.2 | * @package phpHtmlLib |
754 | jonen | 1.1 | */ |
755 | class RECTsvgtag extends SVGTagClass { | ||
756 | var $_tag = "rect"; | ||
757 | } // RECTsvgtag | ||
758 | |||
759 | /** | ||
760 | * <script> SVG tag | ||
761 | * @link http://www.w3.org/TR/SVG/script.html#ScriptElement | ||
762 | jonen | 1.2 | * @package phpHtmlLib |
763 | jonen | 1.1 | */ |
764 | class SCRIPTsvgtag extends SVGTagClass { | ||
765 | var $_tag = "script"; | ||
766 | jonen | 1.2 | function _set_flags() { |
767 | HTMLTagClass::_set_flags(); | ||
768 | $this->_flags |= _CDATACONTENTWRAP; | ||
769 | } | ||
770 | jonen | 1.1 | } // SCRIPTsvgtag |
771 | |||
772 | /** | ||
773 | * <set> SVG tag | ||
774 | * @link http://www.w3.org/TR/SVG/animate.html#SetElement | ||
775 | jonen | 1.2 | * @package phpHtmlLib |
776 | jonen | 1.1 | */ |
777 | class SETsvgtag extends SVGTagClass { | ||
778 | var $_tag = "set"; | ||
779 | } // SETsvgtag | ||
780 | |||
781 | /** | ||
782 | * <stop> SVG tag | ||
783 | * @link http://www.w3.org/TR/SVG/pservers.html#StopElement | ||
784 | jonen | 1.2 | * @package phpHtmlLib |
785 | jonen | 1.1 | */ |
786 | class STOPsvgtag extends SVGTagClass { | ||
787 | var $_tag = "stop"; | ||
788 | } // STOPsvgtag | ||
789 | |||
790 | /** | ||
791 | * <style> SVG tag | ||
792 | * @link http://www.w3.org/TR/SVG/styling.html#StyleElement | ||
793 | jonen | 1.2 | * @package phpHtmlLib |
794 | jonen | 1.1 | */ |
795 | class STYLEsvgtag extends SVGTagClass { | ||
796 | var $_tag = "style"; | ||
797 | jonen | 1.2 | function _set_flags() { |
798 | HTMLTagClass::_set_flags(); | ||
799 | $this->_flags |= _CDATACONTENTWRAP; | ||
800 | } | ||
801 | jonen | 1.1 | } // STYLEsvgtag |
802 | |||
803 | /** | ||
804 | * <svg> SVG tag | ||
805 | * @link http://www.w3.org/TR/SVG/struct.html#SVGElement | ||
806 | jonen | 1.2 | * @package phpHtmlLib |
807 | jonen | 1.1 | */ |
808 | class SVGsvgtag extends SVGTagClass { | ||
809 | var $_tag = "svg"; | ||
810 | } // SVGsvgtag | ||
811 | |||
812 | /** | ||
813 | * <switch> SVG tag | ||
814 | * @link http://www.w3.org/TR/SVG/struct.html#SwitchElement | ||
815 | jonen | 1.2 | * @package phpHtmlLib |
816 | jonen | 1.1 | */ |
817 | class SWITCHsvgtag extends SVGTagClass { | ||
818 | var $_tag = "switch"; | ||
819 | } // SWITCHsvgtag | ||
820 | |||
821 | /** | ||
822 | * <symbol> SVG tag | ||
823 | * @link http://www.w3.org/TR/SVG/struct.html#SymbolElement | ||
824 | jonen | 1.2 | * @package phpHtmlLib |
825 | jonen | 1.1 | */ |
826 | class SYMBOLsvgtag extends SVGTagClass { | ||
827 | var $_tag = "symbol"; | ||
828 | } // SYMBOLsvgtag | ||
829 | |||
830 | /** | ||
831 | * <text> SVG tag | ||
832 | * @link http://www.w3.org/TR/SVG/text.html | ||
833 | jonen | 1.2 | * @package phpHtmlLib |
834 | jonen | 1.1 | */ |
835 | class TEXTsvgtag extends SVGTagClass { | ||
836 | var $_tag = "text"; | ||
837 | } // TEXTsvgtag | ||
838 | |||
839 | /** | ||
840 | * <textpath> SVG tag | ||
841 | * @link http://www.w3.org/TR/SVG/text.html#TextPathElement | ||
842 | jonen | 1.2 | * @package phpHtmlLib |
843 | jonen | 1.1 | */ |
844 | class TEXTPATHsvgtag extends SVGTagClass { | ||
845 | var $_tag = "text"; | ||
846 | } // TEXTsvgtag | ||
847 | |||
848 | /** | ||
849 | * <title> SVG tag | ||
850 | * @link http://www.w3.org/TR/SVG/struct.html#TitleElement | ||
851 | jonen | 1.2 | * @package phpHtmlLib |
852 | jonen | 1.1 | */ |
853 | class TITLEsvgtag extends SVGTagClass { | ||
854 | var $_tag = "title"; | ||
855 | } // TITLEsvgtag | ||
856 | |||
857 | /** | ||
858 | * <tref> SVG tag | ||
859 | * @link http://www.w3.org/TR/SVG/text.html | ||
860 | jonen | 1.2 | * @package phpHtmlLib |
861 | jonen | 1.1 | */ |
862 | class TREFsvgtag extends SVGTagClass { | ||
863 | var $_tag = "tref"; | ||
864 | } // TEXTsvgtag | ||
865 | |||
866 | /** | ||
867 | * <tspan> SVG tag | ||
868 | * @link http://www.w3.org/TR/SVG/text.html | ||
869 | jonen | 1.2 | * @package phpHtmlLib |
870 | jonen | 1.1 | */ |
871 | class TSPANsvgtag extends SVGTagClass { | ||
872 | var $_tag = "tspan"; | ||
873 | } // TEXTsvgtag | ||
874 | |||
875 | /** | ||
876 | * <use> SVG tag | ||
877 | * @link http://www.w3.org/TR/SVG/struct.html#UseElement | ||
878 | jonen | 1.2 | * @package phpHtmlLib |
879 | jonen | 1.1 | */ |
880 | class USEsvgtag extends SVGTagClass { | ||
881 | var $_tag = "use"; | ||
882 | } // USEsvgtag | ||
883 | |||
884 | /** | ||
885 | * <view> SVG tag | ||
886 | * @link http://www.w3.org/TR/SVG/linking.html#ViewElement | ||
887 | jonen | 1.2 | * @package phpHtmlLib |
888 | jonen | 1.1 | */ |
889 | class VIEWsvgtag extends SVGTagClass { | ||
890 | var $_tag = "view"; | ||
891 | } // VIEWsvgtag | ||
892 | |||
893 | /** | ||
894 | * <vkern> SVG tag | ||
895 | * @link | ||
896 | jonen | 1.2 | * @package phpHtmlLib |
897 | jonen | 1.1 | */ |
898 | class VKERNsvgtag extends SVGTagClass { | ||
899 | var $_tag = "vkern"; | ||
900 | jonen | 1.2 | function _set_flags() { |
901 | parent::_set_flags(); | ||
902 | $this->_flags &= ~(_CONTENTREQUIRED | _CLOSETAGREQUIRED); | ||
903 | } | ||
904 | jonen | 1.1 | } // VKERNsvgtag |
905 | ?> |
MailToCvsAdmin">MailToCvsAdmin | ViewVC Help |
Powered by ViewVC 1.1.26 | ![]() |