Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/general/libchart/classes/model/XYDataSet.php
Show All 26 Lines | |||||
*/ | */ | ||||
class LibchartXYDataSet extends LibchartDataSet { | class LibchartXYDataSet extends LibchartDataSet { | ||||
private $pointList; | private $pointList; | ||||
/** | /** | ||||
* Constructor of XYDataSet. | * Constructor of XYDataSet. | ||||
* | * | ||||
*/ | */ | ||||
public function LibchartXYDataSet() { | public function __construct() { | ||||
$this->pointList = array(); | $this->pointList = array(); | ||||
} | } | ||||
/** | /** | ||||
* Add a new point to the dataset. | * Add a new point to the dataset. | ||||
* | * | ||||
* @param Point Point to add to the dataset | * @param Point Point to add to the dataset | ||||
*/ | */ | ||||
public function addPoint($point) { | public function addPoint($point) { | ||||
array_push($this->pointList, $point); | array_push($this->pointList, $point); | ||||
} | } | ||||
/** | /** | ||||
* Getter of pointList. | * Getter of pointList. | ||||
* | * | ||||
* @return List of points. | * @return List of points. | ||||
*/ | */ | ||||
public function getPointList() { | public function getPointList() { | ||||
return $this->pointList; | return $this->pointList; | ||||
} | } | ||||
} | } | ||||
No newline at end of file |