ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilChartDataPoints.php
Go to the documentation of this file.
1 <?php
2 
21 {
22  protected ?int $line_width = null;
23  protected ?int $radius = null;
24 
25  protected function getTypeString(): string
26  {
27  return "points";
28  }
29 
30  public function setLineWidth(?int $a_value): void
31  {
32  $this->line_width = $a_value;
33  }
34 
35  public function getLineWidth(): ?int
36  {
37  return $this->line_width;
38  }
39 
40  public function setPointRadius(int $a_value): void
41  {
42  $this->radius = $a_value;
43  }
44 
45  public function getPointRadius(): ?int
46  {
47  return $this->radius;
48  }
49 
50  protected function parseDataOptions(array &$a_options): 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  }
62 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
parseDataOptions(array &$a_options)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...