diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-01-04 10:15:48 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-01-04 10:15:48 +0000 |
commit | f1983871f351d2195102760db3141ed70f8772a9 (patch) | |
tree | d4afeca7e424fed39ca1b92e6ddda39d62385cff /src/driver | |
parent | 65cfcdc9adc89cdb7888dc6d826159a517e60108 (diff) | |
download | zetacomponents-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.php | 1 | ||||
-rw-r--r-- | src/driver/gd.php | 1 | ||||
-rw-r--r-- | src/driver/svg.php | 1 |
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 ); } |