ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilChartDataLines Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

 setLineWidth (int $a_value)
 
 getLineWidth ()
 
 setLineSteps (bool $a_value)
 
 getLineSteps ()
 
- Public Member Functions inherited from ilChartData
 setHidden (bool $a_value)
 
 isHidden ()
 
 setLabel (string $a_value)
 
 getLabel ()
 
 addPoint (float $a_x, ?float $a_y=null)
 Set data. More...
 
 getData ()
 Get data. More...
 
 setFill (float $a_value, string $a_color="")
 
 getFill ()
 
 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 ()
 
 parseDataOptions (array &$a_options)
 Convert data options to flot config. More...
 

Protected Attributes

int $line_width = null
 
bool $steps = false
 
- Protected Attributes inherited from ilChartData
string $type = ""
 
string $label = ""
 
array $data = []
 
float $fill = 0
 
string $fill_color = ""
 
bool $hidden = false
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too. If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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

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

Member Function Documentation

◆ getLineSteps()

ilChartDataLines::getLineSteps ( )

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

References $steps.

Referenced by parseDataOptions().

46  : bool
47  {
48  return $this->steps;
49  }
+ Here is the caller graph for this function:

◆ getLineWidth()

ilChartDataLines::getLineWidth ( )

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

References $line_width.

Referenced by parseDataOptions().

36  : ?int
37  {
38  return $this->line_width;
39  }
+ Here is the caller graph for this function:

◆ getTypeString()

ilChartDataLines::getTypeString ( )
protected

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

26  : string
27  {
28  return "lines";
29  }

◆ parseDataOptions()

ilChartDataLines::parseDataOptions ( array &  $a_options)
protected

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

References getLineSteps(), and getLineWidth().

51  : void
52  {
53  $width = $this->getLineWidth();
54  if ($width !== null) {
55  $a_options["lineWidth"] = $width;
56  }
57 
58  if ($this->getLineSteps()) {
59  $a_options["steps"] = true;
60  }
61  }
+ Here is the call graph for this function:

◆ setLineSteps()

ilChartDataLines::setLineSteps ( bool  $a_value)

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

41  : void
42  {
43  $this->steps = $a_value;
44  }

◆ setLineWidth()

ilChartDataLines::setLineWidth ( int  $a_value)

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

31  : void
32  {
33  $this->line_width = $a_value;
34  }

Field Documentation

◆ $line_width

int ilChartDataLines::$line_width = null
protected

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

Referenced by getLineWidth().

◆ $steps

bool ilChartDataLines::$steps = false
protected

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

Referenced by getLineSteps().


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