ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilChartDataLines.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once "Services/Chart/classes/class.ilChartData.php";
5 
14 {
15  protected $line_width; // [int]
16  protected $steps; // [bool] lines
17 
18  protected function getTypeString()
19  {
20  return "lines";
21  }
22 
28  public function setLineWidth($a_value)
29  {
30  $this->line_width = (int)$a_value;
31  }
32 
38  public function getLineWidth()
39  {
40  return $this->line_width;
41  }
42 
48  public function setLineSteps($a_value)
49  {
50  $this->steps = (bool)$a_value;
51  }
52 
58  public function getLineSteps()
59  {
60  return $this->steps;
61  }
62 
63  protected function parseDataOptions(array &$a_options)
64  {
65  $width = $this->getLineWidth();
66  if($width !== null)
67  {
68  $a_options["lineWidth"] = $width;
69  }
70 
71  if($this->getLineSteps())
72  {
73  $a_options["steps"] = true;
74  }
75  }
76 }
77 
78 ?>
parseDataOptions(array &$a_options)
setLineWidth($a_value)
Set line width.
getLineSteps()
Get line steps.
Create styles array
The data for the language used.
Chart data lines series.
setLineSteps($a_value)
Set line steps.
Abstract chart data series base class.
getLineWidth()
Get line width.