--- nfo/php/libs/com.newsblob.phphtmllib/tag_classes/SVGTAGS.inc 2003/01/30 03:29:41 1.1
+++ nfo/php/libs/com.newsblob.phphtmllib/tag_classes/SVGTAGS.inc 2003/02/22 21:08:00 1.2
@@ -3,7 +3,7 @@
* This file contains all of the default
* support svg tags by phpHtmlLib.
*
- * $Id: SVGTAGS.inc,v 1.1 2003/01/30 03:29:41 jonen Exp $
+ * $Id: SVGTAGS.inc,v 1.2 2003/02/22 21:08:00 jonen Exp $
*
* @author Walter A. Boring IV
* @package phpHtmlLib
@@ -36,6 +36,7 @@
for ($i=1;$i<$num_args;$i++) {
$this->add(func_get_arg($i));
}
+ $this->_set_flags();
}
/**
@@ -136,8 +137,7 @@
*/
function _prepare_flags() {
if ($this->count_content() == 0) {
- $this->_content_required = FALSE;
- $this->_close_tag_required = FALSE;
+ $this->_flags &= ~(_CONTENTREQUIRED | _CLOSETAGREQUIRED);
}
}
}
@@ -145,6 +145,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/linking.html#AElement
+ * @package phpHtmlLib
*/
class Asvgtag extends SVGTagClass {
var $_tag = "a";
@@ -153,6 +154,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/text.html#AlternateGlyphs
+ * @package phpHtmlLib
*/
class ALTGLYGHsvgtag extends SVGTagClass {
var $_tag = "altGlyph";
@@ -161,6 +163,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/text.html#AlternateGlyphs
+ * @package phpHtmlLib
*/
class ALTGLYGHDEFsvgtag extends SVGTagClass {
var $_tag = "altGlyphDef";
@@ -169,6 +172,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/text.html#AltGlyphItemElement
+ * @package phpHtmlLib
*/
class ALTGLYGHITEMsvgtag extends SVGTagClass {
var $_tag = "altGlyphItem";
@@ -177,6 +181,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/animate.html#AnimateElement
+ * @package phpHtmlLib
*/
class ANIMATEsvgtag extends SVGTagClass {
var $_tag = "animate";
@@ -185,6 +190,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/animate.html#AnimateColorElement
+ * @package phpHtmlLib
*/
class ANIMATECOLORsvgtag extends SVGTagClass {
var $_tag = "animateColor";
@@ -193,6 +199,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/animate.html#AnimateMotionElement
+ * @package phpHtmlLib
*/
class ANIMATEMOTIONsvgtag extends SVGTagClass {
var $_tag = "animateMotion";
@@ -201,6 +208,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/animate.html#AnimateTransformElement
+ * @package phpHtmlLib
*/
class ANIMATETTRANSFORMsvgtag extends SVGTagClass {
var $_tag = "animateTransform";
@@ -209,6 +217,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/shapes.html
+ * @package phpHtmlLib
*/
class CIRCLEsvgtag extends SVGTagClass {
var $_tag = "circle";
@@ -217,6 +226,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/masking.html#ClipPathElement
+ * @package phpHtmlLib
*/
class CLIPPATHsvgtag extends SVGTagClass {
var $_tag = "clipPath";
@@ -225,6 +235,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/color.html#ColorProfileElement
+ * @package phpHtmlLib
*/
class COLORPROFILEsvgtag extends SVGTagClass {
var $_tag = "color-profile";
@@ -233,6 +244,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/interact.html#CursorElement
+ * @package phpHtmlLib
*/
class CURSORsvgtag extends SVGTagClass {
var $_tag = "cursor";
@@ -241,6 +253,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/struct.html#DefsElement
+ * @package phpHtmlLib
*/
class DEFSsvgtag extends SVGTagClass {
var $_tag = "defs";
@@ -249,6 +262,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/struct.html#DefsElement
+ * @package phpHtmlLib
*/
class DESCsvgtag extends SVGTagClass {
var $_tag = "desc";
@@ -257,26 +271,33 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/fonts.html#DefinitionSrcElement
+ * @package phpHtmlLib
*/
class DEFINITIONSRCsvgtag extends SVGTagClass {
var $_tag = "definition-src";
- var $_close_tag_required = FALSE;
- var $_content_required = FALSE;
+ function _set_flags() {
+ parent::_set_flags();
+ $this->_flags &= ~(_CONTENTREQUIRED | _CLOSETAGREQUIRED);
+ }
} // DEFINITIONSRCsvgtag
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/shapes.html
+ * @package phpHtmlLib
*/
class ELLIPSEsvgtag extends SVGTagClass {
var $_tag = "ellipse";
- var $_close_tag_required = FALSE;
- var $_content_required = FALSE;
+ function _set_flags() {
+ parent::_set_flags();
+ $this->_flags &= ~(_CONTENTREQUIRED | _CLOSETAGREQUIRED);
+ }
} // ELLIPSEsvgtag
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feBlendElement
+ * @package phpHtmlLib
*/
class FEBLENDsvgtag extends SVGTagClass {
var $_tag = "feBlend";
@@ -285,6 +306,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feColorMatrixElement
+ * @package phpHtmlLib
*/
class FECOLORMATRIXsvgtag extends SVGTagClass {
var $_tag = "feColorMatrix";
@@ -293,6 +315,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feComponentTransferElement
+ * @package phpHtmlLib
*/
class FECOMPONENTTANSFERsvgtag extends SVGTagClass {
var $_tag = "feComponentTransfer";
@@ -301,6 +324,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feCompositeElement
+ * @package phpHtmlLib
*/
class FECOMPOSITEsvgtag extends SVGTagClass {
var $_tag = "feComposite";
@@ -309,6 +333,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feConvolveMatrixElement
+ * @package phpHtmlLib
*/
class FECONVOLVEMATRIXsvgtag extends SVGTagClass {
var $_tag = "feConvolveMatrix";
@@ -317,6 +342,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feDiffuseLightingElement
+ * @package phpHtmlLib
*/
class FEDIFFUSELIGHTINGsvgtag extends SVGTagClass {
var $_tag = "feDiffuseLighting";
@@ -325,6 +351,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feDisplacementMapElement
+ * @package phpHtmlLib
*/
class FEDISPLACEMENTMAPsvgtag extends SVGTagClass {
var $_tag = "feDisplacementMap";
@@ -333,6 +360,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feDistantLightElement
+ * @package phpHtmlLib
*/
class FEDISTANTLIGHTsvgtag extends SVGTagClass {
var $_tag = "feDistantLight";
@@ -341,6 +369,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feFloodElement
+ * @package phpHtmlLib
*/
class FEFLOODsvgtag extends SVGTagClass {
var $_tag = "feFlood";
@@ -349,6 +378,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feFuncAElement
+ * @package phpHtmlLib
*/
class FEFUNCAsvgtag extends SVGTagClass {
var $_tag = "feFuncA";
@@ -357,6 +387,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feFuncBElement
+ * @package phpHtmlLib
*/
class FEFUNCBsvgtag extends SVGTagClass {
var $_tag = "feFuncB";
@@ -365,6 +396,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feFuncGElement
+ * @package phpHtmlLib
*/
class FEFUNCGsvgtag extends SVGTagClass {
var $_tag = "feFuncG";
@@ -373,6 +405,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feFuncRElement
+ * @package phpHtmlLib
*/
class FEFUNCRsvgtag extends SVGTagClass {
var $_tag = "feFuncR";
@@ -381,6 +414,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feGaussianBlurElement
+ * @package phpHtmlLib
*/
class FEGAUSSIANBLURsvgtag extends SVGTagClass {
var $_tag = "feGaussianBlur";
@@ -389,6 +423,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feImageElement
+ * @package phpHtmlLib
*/
class FEIMAGEsvgtag extends SVGTagClass {
var $_tag = "feImage";
@@ -397,6 +432,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feMergeElement
+ * @package phpHtmlLib
*/
class FEMERGEsvgtag extends SVGTagClass {
var $_tag = "feMerge";
@@ -405,6 +441,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feMergeNodeElement
+ * @package phpHtmlLib
*/
class FEMERGENODEsvgtag extends SVGTagClass {
var $_tag = "feMergeNode";
@@ -413,6 +450,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feMorphologyElement
+ * @package phpHtmlLib
*/
class FEMORPHOLOGYsvgtag extends SVGTagClass {
var $_tag = "feMorphology";
@@ -421,6 +459,7 @@
/**
* SVG svgtag
* @link http://www.w3.org/TR/SVG/filters.html#feOffsetElement
+ * @package phpHtmlLib
*/
class FEOFFSETsvgtag extends SVGTagClass {
var $_tag = "feOffset";
@@ -429,6 +468,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#fePointLightElement
+ * @package phpHtmlLib
*/
class FEPOINTLIGHTsvgtag extends SVGTagClass {
var $_tag = "fePointLight";
@@ -437,6 +477,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feSpecularLightingElement
+ * @package phpHtmlLib
*/
class FESPECTACULARLIGHTINGsvgtag extends SVGTagClass {
var $_tag = "feSpecularLighting";
@@ -445,6 +486,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feSpotLightElement
+ * @package phpHtmlLib
*/
class FESPOTLIGHTsvgtag extends SVGTagClass {
var $_tag = "feSpotLight";
@@ -453,6 +495,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feTileElement
+ * @package phpHtmlLib
*/
class FETILEsvgtag extends SVGTagClass {
var $_tag = "feTile";
@@ -461,6 +504,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#feTurbulenceElement
+ * @package phpHtmlLib
*/
class FETURBULENCEsvgtag extends SVGTagClass {
var $_tag = "feTurbulence";
@@ -469,6 +513,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/filters.html#FilterElement
+ * @package phpHtmlLib
*/
class FILTERsvgtag extends SVGTagClass {
var $_tag = "filter";
@@ -477,6 +522,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/fonts.html#FontElement
+ * @package phpHtmlLib
*/
class FONTsvgtag extends SVGTagClass {
var $_tag = "font";
@@ -485,6 +531,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/fonts.html#FontFaceElement
+ * @package phpHtmlLib
*/
class FONTFACEsvgtag extends SVGTagClass {
var $_tag = "font-face";
@@ -493,26 +540,33 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/fonts.html#FontFaceNameElement
+ * @package phpHtmlLib
*/
class FONTFACEFORMATsvgtag extends SVGTagClass {
var $_tag = "font-face-format";
- var $_close_tag_required = FALSE;
- var $_content_required = FALSE;
+ function _set_flags() {
+ parent::_set_flags();
+ $this->_flags &= ~(_CONTENTREQUIRED | _CLOSETAGREQUIRED);
+ }
} // FONTFACEFORMATsvgtag
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/fonts.html#FontFaceNameElement
+ * @package phpHtmlLib
*/
class FONTFACENAMEsvgtag extends SVGTagClass {
var $_tag = "font-face-name";
- var $_close_tag_required = FALSE;
- var $_content_required = FALSE;
+ function _set_flags() {
+ parent::_set_flags();
+ $this->_flags &= ~(_CONTENTREQUIRED | _CLOSETAGREQUIRED);
+ }
} // FONTFACEFORMATsvgtag
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/fonts.html#FontFaceSrcElement
+ * @package phpHtmlLib
*/
class FONTFACESRCsvgtag extends SVGTagClass {
var $_tag = "font-face-src";
@@ -521,6 +575,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/fonts.html#FontFaceNameElement
+ * @package phpHtmlLib
*/
class FONTFACEURIsvgtag extends SVGTagClass {
var $_tag = "font-face-uri";
@@ -529,6 +584,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/extend.html#ForeignObjectElement
+ * @package phpHtmlLib
*/
class FOREIGNOBJECTsvgtag extends SVGTagClass {
var $_tag = "foreignObject";
@@ -537,6 +593,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/struct.html#GElement
+ * @package phpHtmlLib
*/
class Gsvgtag extends SVGTagClass {
var $_tag = "g";
@@ -545,6 +602,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/fonts.html#GlyphElement
+ * @package phpHtmlLib
*/
class GLYPHsvgtag extends SVGTagClass {
var $_tag = "glyph";
@@ -553,6 +611,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/text.html#AlternateGlyphs
+ * @package phpHtmlLib
*/
class GLYPHREFsvgtag extends SVGTagClass {
var $_tag = "glyphRef";
@@ -561,16 +620,20 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/fonts.html#HKernElement
+ * @package phpHtmlLib
*/
class HKERNsvgtag extends SVGTagClass {
var $_tag = "hkern";
- var $_close_tag_required = FALSE;
- var $_content_required = FALSE;
+ function _set_flags() {
+ parent::_set_flags();
+ $this->_flags &= ~(_CONTENTREQUIRED | _CLOSETAGREQUIRED);
+ }
} // HKERNsvgtag
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/struct.html#ImageElement
+ * @package phpHtmlLib
*/
class IMAGEsvgtag extends SVGTagClass {
var $_tag = "image";
@@ -579,6 +642,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/shapes.html
+ * @package phpHtmlLib
*/
class LINEsvgtag extends SVGTagClass {
var $_tag = "line";
@@ -587,6 +651,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/pservers.html#LinearGradientElement
+ * @package phpHtmlLib
*/
class LINEARGRADIENTsvgtag extends SVGTagClass {
var $_tag = "linearGradient";
@@ -595,6 +660,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/painting.html#MarkerElement
+ * @package phpHtmlLib
*/
class MARKERsvgtag extends SVGTagClass {
var $_tag = "marker";
@@ -603,6 +669,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/masking.html#MaskElement
+ * @package phpHtmlLib
*/
class MASKsvgtag extends SVGTagClass {
var $_tag = "mask";
@@ -611,6 +678,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/metadata.html#MetadataElement
+ * @package phpHtmlLib
*/
class METADATAsvgtag extends SVGTagClass {
var $_tag = "metadata";
@@ -619,6 +687,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/fonts.html#MissingGlyphElement
+ * @package phpHtmlLib
*/
class MISSINGGLYPHsvgtag extends SVGTagClass {
var $_tag = "missing-glyph";
@@ -627,6 +696,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/animate.html#mpathElement
+ * @package phpHtmlLib
*/
class MPATHsvgtag extends SVGTagClass {
var $_tag = "mpath";
@@ -635,6 +705,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/paths.html#PathElement
+ * @package phpHtmlLib
*/
class PATHsvgtag extends SVGTagClass {
var $_tag = "path";
@@ -643,6 +714,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/pservers.html#PatternElement
+ * @package phpHtmlLib
*/
class PATTERNsvgtag extends SVGTagClass {
var $_tag = "pattern";
@@ -651,6 +723,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/shapes.html#PolygonElement
+ * @package phpHtmlLib
*/
class POLYGONsvgtag extends SVGTagClass {
var $_tag = "polygon";
@@ -659,6 +732,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/shapes.html#PolylineElement
+ * @package phpHtmlLib
*/
class POLYLINEsvgtag extends SVGTagClass {
var $_tag = "polyline";
@@ -667,6 +741,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/pservers.html#RadialGradientElement
+ * @package phpHtmlLib
*/
class RADIALGRADIENTsvgtag extends SVGTagClass {
var $_tag = "radialGradient";
@@ -675,6 +750,7 @@
/**
* SVG tag
* @link http://www.w3.org/TR/SVG/shapes.html#RectElement
+ * @package phpHtmlLib
*/
class RECTsvgtag extends SVGTagClass {
var $_tag = "rect";
@@ -683,15 +759,20 @@
/**
*