ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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)
 
- Protected Member Functions inherited from ilChartData
 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 23 of file class.ilChartDataPoints.php.

Member Function Documentation

◆ getLineWidth()

ilChartDataPoints::getLineWidth ( )

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

References $line_width.

Referenced by parseDataOptions().

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

◆ getPointRadius()

ilChartDataPoints::getPointRadius ( )

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

References $radius.

Referenced by parseDataOptions().

48  : ?int
49  {
50  return $this->radius;
51  }
+ Here is the caller graph for this function:

◆ getTypeString()

ilChartDataPoints::getTypeString ( )
protected

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

28  : string
29  {
30  return "points";
31  }

◆ parseDataOptions()

ilChartDataPoints::parseDataOptions ( array &  $a_options)
protected

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

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

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

◆ setLineWidth()

ilChartDataPoints::setLineWidth ( ?int  $a_value)

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

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

◆ setPointRadius()

ilChartDataPoints::setPointRadius ( int  $a_value)

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

43  : void
44  {
45  $this->radius = $a_value;
46  }

Field Documentation

◆ $line_width

int ilChartDataPoints::$line_width = null
protected

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

Referenced by getLineWidth().

◆ $radius

int ilChartDataPoints::$radius = null
protected

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

Referenced by getPointRadius(), and parseDataOptions().


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