ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilChartDataLines Class Reference

Chart data lines series. More...

+ Inheritance diagram for ilChartDataLines:
+ Collaboration diagram for ilChartDataLines:

Public Member Functions

 setLineWidth ($a_value)
 Set line width. More...
 
 getLineWidth ()
 Get line width. More...
 
 setLineSteps ($a_value)
 Set line steps. More...
 
 getLineSteps ()
 Get line steps. More...
 
- Public Member Functions inherited from ilChartData
 setHidden ($a_value)
 Set hidden. More...
 
 isHidden ()
 Is hidden? More...
 
 setLabel ($a_value)
 Set label. More...
 
 getLabel ()
 Get label. More...
 
 addPoint ($a_x, $a_y=null)
 Set data. More...
 
 getData ()
 Get data. More...
 
 setFill ($a_value, $a_color=null)
 Set fill. More...
 
 getFill ()
 Get fill. More...
 
 parseData (array &$a_data)
 Convert data to flot config. More...
 
 parseGlobalOptions (stdClass $a_options, ilChart $a_chart)
 Convert (global) properties to flot config. More...
 

Protected Member Functions

 getTypeString ()
 
 parseDataOptions (array &$a_options)
 
- Protected Member Functions inherited from ilChartData
 getTypeString ()
 Get series type. More...
 
 parseDataOptions (array &$a_options)
 Convert data options to flot config. More...
 

Protected Attributes

 $line_width
 
 $steps
 
- Protected Attributes inherited from ilChartData
 $type
 
 $label
 
 $data
 
 $fill
 
 $fill_color
 
 $hidden
 

Detailed Description

Chart data lines series.

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 13 of file class.ilChartDataLines.php.

Member Function Documentation

◆ getLineSteps()

ilChartDataLines::getLineSteps ( )

Get line steps.

Returns
bool

Definition at line 58 of file class.ilChartDataLines.php.

References $steps.

Referenced by parseDataOptions().

59  {
60  return $this->steps;
61  }
+ Here is the caller graph for this function:

◆ getLineWidth()

ilChartDataLines::getLineWidth ( )

Get line width.

Returns
int

Definition at line 38 of file class.ilChartDataLines.php.

References $line_width.

Referenced by parseDataOptions().

39  {
40  return $this->line_width;
41  }
+ Here is the caller graph for this function:

◆ getTypeString()

ilChartDataLines::getTypeString ( )
protected

Definition at line 18 of file class.ilChartDataLines.php.

19  {
20  return "lines";
21  }

◆ parseDataOptions()

ilChartDataLines::parseDataOptions ( array $a_options)
protected

Definition at line 63 of file class.ilChartDataLines.php.

References getLineSteps(), and getLineWidth().

64  {
65  $width = $this->getLineWidth();
66  if ($width !== null) {
67  $a_options["lineWidth"] = $width;
68  }
69 
70  if ($this->getLineSteps()) {
71  $a_options["steps"] = true;
72  }
73  }
getLineSteps()
Get line steps.
getLineWidth()
Get line width.
+ Here is the call graph for this function:

◆ setLineSteps()

ilChartDataLines::setLineSteps (   $a_value)

Set line steps.

Parameters
bool$a_value

Definition at line 48 of file class.ilChartDataLines.php.

49  {
50  $this->steps = (bool) $a_value;
51  }

◆ setLineWidth()

ilChartDataLines::setLineWidth (   $a_value)

Set line width.

Parameters
int$a_value

Definition at line 28 of file class.ilChartDataLines.php.

29  {
30  $this->line_width = (int) $a_value;
31  }

Field Documentation

◆ $line_width

ilChartDataLines::$line_width
protected

Definition at line 15 of file class.ilChartDataLines.php.

Referenced by getLineWidth().

◆ $steps

ilChartDataLines::$steps
protected

Definition at line 16 of file class.ilChartDataLines.php.

Referenced by getLineSteps().


The documentation for this class was generated from the following file: