ILIAS  release_8 Revision v8.24
ilChartDataPoints 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 ilChartDataPoints:
+ Collaboration diagram for ilChartDataPoints:

Public Member Functions

 setLineWidth (?int $a_value)
 
 getLineWidth ()
 
 setPointRadius (int $a_value)
 
 getPointRadius ()
 
- 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)
 Convert data options to flot config. More...
 
 getTypeString ()
 
 parseDataOptions (array &$a_options)
 Convert data options to flot config. More...
 

Protected Attributes

int $line_width = null
 
int $radius = null
 
- 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 points 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 20 of file class.ilChartDataPoints.php.

Member Function Documentation

◆ getLineWidth()

ilChartDataPoints::getLineWidth ( )

Definition at line 35 of file class.ilChartDataPoints.php.

35 : ?int
36 {
37 return $this->line_width;
38 }

References $line_width.

Referenced by parseDataOptions().

+ Here is the caller graph for this function:

◆ getPointRadius()

ilChartDataPoints::getPointRadius ( )

Definition at line 45 of file class.ilChartDataPoints.php.

45 : ?int
46 {
47 return $this->radius;
48 }

References $radius.

Referenced by parseDataOptions().

+ Here is the caller graph for this function:

◆ getTypeString()

ilChartDataPoints::getTypeString ( )
protected

Reimplemented from ilChartData.

Definition at line 25 of file class.ilChartDataPoints.php.

25 : string
26 {
27 return "points";
28 }

◆ parseDataOptions()

ilChartDataPoints::parseDataOptions ( array &  $a_options)
protected

Convert data options to flot config.

Reimplemented from ilChartData.

Definition at line 50 of file class.ilChartDataPoints.php.

50 : void
51 {
52 $width = $this->getLineWidth();
53 if ($width !== null) {
54 $a_options["lineWidth"] = $width;
55 }
56
57 $radius = $this->getPointRadius();
58 if ($radius !== null) {
59 $a_options["radius"] = $radius;
60 }
61 }

References $radius, getLineWidth(), and getPointRadius().

+ Here is the call graph for this function:

◆ setLineWidth()

ilChartDataPoints::setLineWidth ( ?int  $a_value)

Definition at line 30 of file class.ilChartDataPoints.php.

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

◆ setPointRadius()

ilChartDataPoints::setPointRadius ( int  $a_value)

Definition at line 40 of file class.ilChartDataPoints.php.

40 : void
41 {
42 $this->radius = $a_value;
43 }

Field Documentation

◆ $line_width

int ilChartDataPoints::$line_width = null
protected

Definition at line 22 of file class.ilChartDataPoints.php.

Referenced by getLineWidth().

◆ $radius

int ilChartDataPoints::$radius = null
protected

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

Referenced by getPointRadius(), and parseDataOptions().


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