Author: f1gm3nt Date: 2010-03-23 01:16:46 +0100 (Tue, 23 Mar 2010) New Revision: 28692
Added: plugins/sfSvgPlugin/lib/sfSvgPlugin.class.php Log: added svg class, nothing in file yet Added: plugins/sfSvgPlugin/lib/sfSvgPlugin.class.php =================================================================== --- plugins/sfSvgPlugin/lib/sfSvgPlugin.class.php (rev 0) +++ plugins/sfSvgPlugin/lib/sfSvgPlugin.class.php 2010-03-23 00:16:46 UTC (rev 28692) @@ -0,0 +1,124 @@ +<?php +/** + * sfSvgPlugin + * + * This is the 'base' class that contains all the functions that will be used or + * may be used in other classes. This class is ment to be extended into other classes + * such as histogram, pie, etc + * + * @author Joshua Estes <http://www.ScenicCityLabs.com> + */ +class sfSvgPlugin +{ + + protected $width = '100%'; + protected $height = '100%'; + protected $contentType = 'image/svg+xml'; + protected $x = 0; + protected $y = 0; + + protected $elements = array(); + + /** + * Class constructor + * + */ + function __construct() + { + + } + + /** + * Will set the width of the image + * + * @param <type> $w Width of the image, 100%|100px|100pt + */ + function setWidth($w) + { + $this->width = $w; + } + + /** + * Returns the width of the svg image + * + * @return <type> Width of svg image + */ + function getWidth() + { + return $this->width; + } + + /** + * Sets the height of the svg image + * + * @param <type> $h Height you want the svg image + */ + function setHeight($h) + { + $this->height = $h; + } + + /** + * Returns the height of the svg image + * + * @return <type> Height of the svg image + */ + function getHeight() + { + return $this->height; + } + + /** + * returns the xml of the svg image + * + * @return <type> xml + */ + function render() + { + // convert all the elements to xml + $xml = ''; + return $xml; + } + + /** + * adds a rectangle to the svg image + * + */ + function rect() + { + } + + /** + * Adds a circle to the svg image + * + */ + function circle() + { + } + + /** + * Adds an ellipse to the svg image + * + */ + function ellipse() + { + } + + /** + * adds a line to the svg image + * + */ + function line() + { + } + function polygon() + { + } + function path() + { + } + function text() + { + } +} +?> -- You received this message because you are subscribed to the Google Groups "symfony SVN" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/symfony-svn?hl=en.
