Translation update done using Pootle.
[phpmyadmin/ammaryasirr.git] / libraries / svg_plot / pma_svg_data_element.php
blob97f7734572a4539eaabb40999c25a177d455d4c2
1 <?php
2 /**
3 * Base class for the plot data type classes.
5 * @package phpMyAdmin
6 */
7 abstract class PMA_SVG_Data_Element{
9 protected $label = '';
11 protected $dataRow = array();
13 /**
14 * Store user specified label and dataRow
15 * @param string $label users specified label
16 * @param array $dataRow A data row from the query result
18 function __construct($label,$dataRow)
20 $this->label = $label;
21 $this->dataRow = $dataRow;
24 /**
25 * Handles the generation of each Data Row/Element as a SVG element
26 * @return the code related to a row in the GIS dataset
28 public abstract function prepareRowAsSVG($options);
30 public function getLabel()
32 return $this->label;
35 public function setLabel($label)
37 $this->label = $label;
40 public function getDataRow()
42 return $this->dataRow;
45 public function setDataRow($dataRow)
47 $this->dataRow = $dataRow;