/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/widgets/SVGDocumentClass.inc
ViewVC logotype

Contents of /nfo/php/libs/com.newsblob.phphtmllib/widgets/SVGDocumentClass.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Sat Feb 22 21:08:23 2003 UTC (21 years, 4 months ago) by jonen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
+ updated whole lib to version 2.2.1 (new FormProcessing since 2.2.0!)

1 <?php
2
3 /**
4 * This contains the SVGDocumentClass
5 *
6 * $Id: SVGDocumentClass.inc,v 1.2 2002/11/07 01:28:35 hemna Exp $
7 *
8 * @author Walter A. Boring IV <waboring@buildabetterweb.com>
9 * @package phpHtmlLib
10 *
11 */
12
13
14 /**
15 *
16 * This class lets you build a complete
17 * SVG document.
18 *
19 * SVG = Scalable Vector Graphics
20 *
21 * @author Walter A. Boring IV <waboring@buildabetterweb.com>
22 * @package phpHtmlLib
23 */
24 class SVGDocumentClass extends XMLDocumentClass {
25
26 /**
27 * The constructor to building a SVG document.
28 *
29 * @param string - the svg tag's width attribute
30 * @param string - the svg tag's height attribute
31 */
32 function SVGDocumentClass($width="100%", $height="100%") {
33 $this->set_doctype_source("PUBLIC");
34 XMLDocumentClass::XMLDocumentClass("svg",
35 "-//W3C//DTD SVG 1.0//EN");
36 $this->set_doctype_link("http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd");
37
38 $this->set_root_attributes(
39 array("width" => $width, "height" => $height,
40 "xmlns" => "http://www.w3.org/2000/svg",
41 "xmlns:xlink" => "http://www.w3.org/1999/xlink"));
42
43 //turn off the character encoding
44 //$this->show_character_encoding( FALSE );
45
46 //by default we want to output the
47 //http Content-type header
48 $this->show_http_header(TRUE);
49
50 //set the correct content-type
51 $this->set_http_content_type( "image/svg+xml" );
52 }
53 }
54 ?>

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed