3 * Base class for the plot data type classes.
7 abstract class PMA_SVG_Data_Element
{
11 protected $dataRow = array();
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;
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()
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;