summaryrefslogtreecommitdiffstats
path: root/src/driver
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-01-04 10:15:48 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-01-04 10:15:48 +0000
commitf1983871f351d2195102760db3141ed70f8772a9 (patch)
treed4afeca7e424fed39ca1b92e6ddda39d62385cff /src/driver
parent65cfcdc9adc89cdb7888dc6d826159a517e60108 (diff)
downloadzetacomponents-graph-f1983871f351d2195102760db3141ed70f8772a9.zip
zetacomponents-graph-f1983871f351d2195102760db3141ed70f8772a9.tar.gz
- Rosolved task #9889: Throw meaningful exception if extension needed for
driver is not available. # Actually using ezcBase::checkDependency() which calls die() instead of # throwing an exception
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/flash.php1
-rw-r--r--src/driver/gd.php1
-rw-r--r--src/driver/svg.php1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/driver/flash.php b/src/driver/flash.php
index 93ace00..c17c483 100644
--- a/src/driver/flash.php
+++ b/src/driver/flash.php
@@ -45,6 +45,7 @@ class ezcGraphFlashDriver extends ezcGraphDriver
*/
public function __construct( array $options = array() )
{
+ ezcBase::checkDependency( 'Graph', ezcBase::DEP_PHP_EXTENSION, 'ming' );
$this->options = new ezcGraphFlashDriverOptions( $options );
}
diff --git a/src/driver/gd.php b/src/driver/gd.php
index 19fa85d..c385b90 100644
--- a/src/driver/gd.php
+++ b/src/driver/gd.php
@@ -66,6 +66,7 @@ class ezcGraphGdDriver extends ezcGraphDriver
*/
public function __construct( array $options = array() )
{
+ ezcBase::checkDependency( 'Graph', ezcBase::DEP_PHP_EXTENSION, 'gd' );
$this->options = new ezcGraphGdDriverOptions( $options );
}
diff --git a/src/driver/svg.php b/src/driver/svg.php
index a30c15d..0c2c374 100644
--- a/src/driver/svg.php
+++ b/src/driver/svg.php
@@ -71,6 +71,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver
*/
public function __construct( array $options = array() )
{
+ ezcBase::checkDependency( 'Graph', ezcBase::DEP_PHP_EXTENSION, 'dom' );
$this->options = new ezcGraphSvgDriverOptions( $options );
}
OpenPOWER on IntegriCloud