summaryrefslogtreecommitdiffstats
path: root/src/driver/svg.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2008-05-03 18:29:35 +0000
committerKore Nordmann <github@kore-nordmann.de>2008-05-03 18:29:35 +0000
commit639d72f8b822bf105d9c8be01a4fa27452b7beee (patch)
tree3ab33bc6c147ed2eee3e23d08d03ebe4a0f6c534 /src/driver/svg.php
parentcce8cbce35d5b21fcc2a9ccb7a62d398e7501594 (diff)
downloadzetacomponents-graph-639d72f8b822bf105d9c8be01a4fa27452b7beee.zip
zetacomponents-graph-639d72f8b822bf105d9c8be01a4fa27452b7beee.tar.gz
- Implemented feature #10829: Get resource from driver
Diffstat (limited to 'src/driver/svg.php')
-rw-r--r--src/driver/svg.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/driver/svg.php b/src/driver/svg.php
index 9a814f1..84fe267 100644
--- a/src/driver/svg.php
+++ b/src/driver/svg.php
@@ -1202,7 +1202,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver
* @param string $file Destination filename
* @return void
*/
- public function render ( $file )
+ public function render( $file )
{
$this->createDocument();
$this->drawAllTexts();
@@ -1211,6 +1211,20 @@ class ezcGraphSvgDriver extends ezcGraphDriver
$this->font->addFontToDocument( $this->dom );
$this->dom->save( $file );
}
+
+ /**
+ * Get resource of rendered result
+ *
+ * Return the resource of the rendered result. You should not use this
+ * method before you called either renderToOutput() or render(), as the
+ * image may not be completely rendered until then.
+ *
+ * @return DOMDocument
+ */
+ public function getResource()
+ {
+ return $this->dom;
+ }
}
?>
OpenPOWER on IntegriCloud