ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilChartDataLines.php
Go to the documentation of this file.
1 <?php
2 
22 {
23  protected ?int $line_width = null;
24  protected bool $steps = false;
25 
26  protected function getTypeString(): string
27  {
28  return "lines";
29  }
30 
31  public function setLineWidth(int $a_value): void
32  {
33  $this->line_width = $a_value;
34  }
35 
36  public function getLineWidth(): ?int
37  {
38  return $this->line_width;
39  }
40 
41  public function setLineSteps(bool $a_value): void
42  {
43  $this->steps = $a_value;
44  }
45 
46  public function getLineSteps(): bool
47  {
48  return $this->steps;
49  }
50 
51  protected function parseDataOptions(array &$a_options): void
52  {
53  $width = $this->getLineWidth();
54  if ($width !== null) {
55  $a_options["lineWidth"] = $width;
56  }
57 
58  if ($this->getLineSteps()) {
59  $a_options["steps"] = true;
60  }
61  }
62 }
setLineSteps(bool $a_value)
parseDataOptions(array &$a_options)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...