summaryrefslogtreecommitdiffstats
path: root/src/graph.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-08-07 08:17:12 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-08-07 08:17:12 +0000
commit0c80b0f8ebf6c47237c9c99ea9f54248f1223df6 (patch)
tree54b87304e021327b7d00022a892f5cbcab00546c /src/graph.php
parentb31a0055fe42a14356400ebe6d7a8e5bebb26240 (diff)
downloadzetacomponents-graph-0c80b0f8ebf6c47237c9c99ea9f54248f1223df6.zip
zetacomponents-graph-0c80b0f8ebf6c47237c9c99ea9f54248f1223df6.tar.gz
- Removed factory methods and replaced them with direct class instantiation.
Diffstat (limited to 'src/graph.php')
-rw-r--r--src/graph.php47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/graph.php b/src/graph.php
index a9e97ab..fa4555a 100644
--- a/src/graph.php
+++ b/src/graph.php
@@ -14,7 +14,6 @@
*/
class ezcGraph
{
-
const NO_SYMBOL = 0;
const DIAMOND = 1;
const BULLET = 2;
@@ -30,52 +29,6 @@ class ezcGraph
const RIGHT = 8;
const CENTER = 16;
const MIDDLE = 32;
-
- static protected $chartTypes = array(
- 'pie' => 'ezcGraphPieChart',
- 'line' => 'ezcGraphLineChart',
- );
-
- /**
- * create
- *
- * @param string $type Type of chart to create
- * @param array $options Options to create the chart with
- * @throws ezcGraphUnknownChartTypeException
- * @return ezcGraphChart
- */
- static public function create( $type, $options = array() )
- {
- $type = strtolower( $type );
- if ( isset( self::$chartTypes[$type] ) )
- {
- $className = self::$chartTypes[$type];
- return new $className( $options );
- }
- else
- {
- throw new ezcGraphUnknownChartTypeException($type);
- }
- }
-
- /**
- * Creates a palette from given name
- *
- * @param string $name Name of the palette
- * @return ezcGraphPalette Created palette
- */
- static public function createPalette( $name )
- {
- $className = 'ezcGraphPalette' . $name;
- if ( class_exists( $className ) )
- {
- return new $className();
- }
- else
- {
- throw new ezcGraphUnknownPaletteException( $name );
- }
- }
}
?>
OpenPOWER on IntegriCloud