diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-03-08 12:01:24 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-03-08 12:01:24 +0000 |
commit | b08ae56b53938333b051b91b0a1f912428864950 (patch) | |
tree | 68f089c05feab87cbaf0c3cfcd36407b3cce755f /src/structs | |
parent | eff7a30681180181dc22b9500e6db45a7a916183 (diff) | |
download | zetacomponents-graph-b08ae56b53938333b051b91b0a1f912428864950.zip zetacomponents-graph-b08ae56b53938333b051b91b0a1f912428864950.tar.gz |
- Added feature #9511: Added helper functions to create image maps an link SVG
images in ezcGraphTools
Diffstat (limited to 'src/structs')
-rw-r--r-- | src/structs/context.php | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/structs/context.php b/src/structs/context.php index 8fe881a..cdef482 100644 --- a/src/structs/context.php +++ b/src/structs/context.php @@ -29,6 +29,13 @@ class ezcGraphContext extends ezcBaseStruct public $datapoint = false; /** + * Associated URL for datapoint + * + * @var string + */ + public $url; + + /** * Simple constructor * * @param string $dataset Name of dataset @@ -36,10 +43,11 @@ class ezcGraphContext extends ezcBaseStruct * @return void * @ignore */ - public function __construct( $dataset = false, $datapoint = false ) + public function __construct( $dataset = false, $datapoint = false, $url = null ) { $this->dataset = $dataset; $this->datapoint = $datapoint; + $this->url = $url; } /** @@ -53,6 +61,13 @@ class ezcGraphContext extends ezcBaseStruct { $this->dataset = (string) $properties['dataset']; $this->datapoint = (string) $properties['datapoint']; + + // Check to keep BC + // @TODO: Remvove unnesecary check on next major version + if ( array_key_exists( 'url', $properties ) ) + { + $this->url = (string) $properties['url']; + } } } |