summaryrefslogtreecommitdiffstats
path: root/src/structs
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-03-08 12:01:24 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-03-08 12:01:24 +0000
commitb08ae56b53938333b051b91b0a1f912428864950 (patch)
tree68f089c05feab87cbaf0c3cfcd36407b3cce755f /src/structs
parenteff7a30681180181dc22b9500e6db45a7a916183 (diff)
downloadzetacomponents-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.php17
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'];
+ }
}
}
OpenPOWER on IntegriCloud