ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilChartDataLines.php
Go to the documentation of this file.
1<?php
2
25{
26 protected ?int $line_width = null;
27 protected bool $steps = false;
28
29 protected function getTypeString(): string
30 {
31 return "lines";
32 }
33
34 public function setLineWidth(int $a_value): void
35 {
36 $this->line_width = $a_value;
37 }
38
39 public function getLineWidth(): ?int
40 {
41 return $this->line_width;
42 }
43
44 public function setLineSteps(bool $a_value): void
45 {
46 $this->steps = $a_value;
47 }
48
49 public function getLineSteps(): bool
50 {
51 return $this->steps;
52 }
53
54 protected function parseDataOptions(array &$a_options): 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 }
65}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setLineSteps(bool $a_value)
parseDataOptions(array &$a_options)
Convert data options to flot config.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...