__construct
void
__construct
([mixed $style = NULL])
void
fromString
(string $str)
-
string
$str: Attribut de style SVG.
get a style attribute
string
getAttribute
(string $styleName)
-
string
$styleName: attribute name.
Set a style attribute.
void
setAttribute
(string $styleName, [string $styleValue = NULL])
-
string
$styleName: attribute name
-
string
$styleValue: attribute value
toString
void
toString
()
Allow direct access to get a style attribute
$color = $font->color;
$fontSize = $font->{'font-size'};
void
__get
(mixed $styleName)
-
mixed
$styleName: attribute name
Allow direct acces to set style attributes
$font->color = '#000';
$font->{'font-size'} = 14;
void
__set
(mixed $styleName, [mixed $styleValue = NULL])
-
mixed
$styleName: attribute name
-
mixed
$styleValue: attribute value