summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/datasets/average.php4
-rw-r--r--src/datasets/base.php2
-rw-r--r--src/exceptions/no_such_dataset.php21
-rw-r--r--src/graph.php2
-rw-r--r--src/graph_autoload.php4
5 files changed, 30 insertions, 3 deletions
diff --git a/src/datasets/average.php b/src/datasets/average.php
index 24705c6..6c44876 100644
--- a/src/datasets/average.php
+++ b/src/datasets/average.php
@@ -1,6 +1,6 @@
<?php
/**
- * File containing the abstract ezcDatasetAverage class
+ * File containing the abstract ezcGraphDatasetAverage class
*
* @package Graph
* @version $id$
@@ -12,7 +12,7 @@
*
* @package Graph
*/
-class ezcDatasetAverage extends ezcDataset
+class ezcGraphDatasetAverage extends ezcDataset
{
}
diff --git a/src/datasets/base.php b/src/datasets/base.php
index 5af66f8..03d53eb 100644
--- a/src/datasets/base.php
+++ b/src/datasets/base.php
@@ -12,7 +12,7 @@
*
* @package Graph
*/
-class eczGraphDataset extends ezcBaseConfig
+class eczGraphDataset
{
/**
diff --git a/src/exceptions/no_such_dataset.php b/src/exceptions/no_such_dataset.php
new file mode 100644
index 0000000..f417445
--- /dev/null
+++ b/src/exceptions/no_such_dataset.php
@@ -0,0 +1,21 @@
+<?php
+/**
+ * File containing the ezcGraphNoSuchDatasetException class
+ *
+ * @package Graph
+ * @version //autogen//
+ * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved.
+ * @license http://ez.no/licenses/new_bsd New BSD License
+ */
+/**
+ * ezcGraphUnknownChartTypeException is the exception which is thrown when the
+ * factory method tries to return an instance of an unknown chart type
+ *
+ * @package Graph
+ * @version //autogen//
+ */
+class ezcGraphNoSuchDatasetException extends ezcBaseException
+{
+}
+
+?>
diff --git a/src/graph.php b/src/graph.php
index d3c2bf9..af4db6c 100644
--- a/src/graph.php
+++ b/src/graph.php
@@ -15,6 +15,8 @@
class ezcGraph
{
+ const DIAMOND = 1;
+
static protected $chartTypes = array(
'pie' => 'ezcGraphPieChart',
'line' => 'ezcGraphLineChart',
diff --git a/src/graph_autoload.php b/src/graph_autoload.php
index ed6e438..6d46924 100644
--- a/src/graph_autoload.php
+++ b/src/graph_autoload.php
@@ -31,6 +31,10 @@ return array(
'ezcGraphGDDriver' => 'Graph/driver/gd.php',
'ezcGraphSVGDriver' => 'Graph/driver/svg.php',
'ezcGraphInvalidDriverException' => 'Graph/exceptions/invalid_driver.php',
+
+ 'ezcGraphDataset' => 'Graph/datasets/base.php',
+ 'ezcGraphDatasetAverage' => 'Graph/datasets/average.php',
+ 'ezcGraphNoSuchDatasetException' => 'Graph/exceptions/no_such_dataset.php',
);
?>
OpenPOWER on IntegriCloud