ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilChartDataPoints.php
Go to the documentation of this file.
1 <?php
2 
24 {
25  protected ?int $line_width = null;
26  protected ?int $radius = null;
27 
28  protected function getTypeString(): string
29  {
30  return "points";
31  }
32 
33  public function setLineWidth(?int $a_value): void
34  {
35  $this->line_width = $a_value;
36  }
37 
38  public function getLineWidth(): ?int
39  {
40  return $this->line_width;
41  }
42 
43  public function setPointRadius(int $a_value): void
44  {
45  $this->radius = $a_value;
46  }
47 
48  public function getPointRadius(): ?int
49  {
50  return $this->radius;
51  }
52 
53  protected function parseDataOptions(array &$a_options): 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  }
65 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
parseDataOptions(array &$a_options)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...