ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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 24 of file class.ilChartDataLines.php.

Member Function Documentation

◆ getLineSteps()

ilChartDataLines::getLineSteps ( )

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

References $steps.

Referenced by parseDataOptions().

49  : bool
50  {
51  return $this->steps;
52  }
+ Here is the caller graph for this function:

◆ getLineWidth()

ilChartDataLines::getLineWidth ( )

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

References $line_width.

Referenced by parseDataOptions().

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

◆ getTypeString()

ilChartDataLines::getTypeString ( )
protected

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

29  : string
30  {
31  return "lines";
32  }

◆ parseDataOptions()

ilChartDataLines::parseDataOptions ( array &  $a_options)
protected

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

References getLineSteps(), getLineWidth(), and null.

54  : void
55  {
56  $width = $this->getLineWidth();
57  if ($width !== null) {
58  $a_options["lineWidth"] = $width;
59  }
60 
61  if ($this->getLineSteps()) {
62  $a_options["steps"] = true;
63  }
64  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:

◆ setLineSteps()

ilChartDataLines::setLineSteps ( bool  $a_value)

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

44  : void
45  {
46  $this->steps = $a_value;
47  }

◆ setLineWidth()

ilChartDataLines::setLineWidth ( int  $a_value)

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

34  : void
35  {
36  $this->line_width = $a_value;
37  }

Field Documentation

◆ $line_width

int ilChartDataLines::$line_width = null
protected

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

Referenced by getLineWidth().

◆ $steps

bool ilChartDataLines::$steps = false
protected

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

Referenced by getLineSteps().


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