ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilQTIRenderHotspot.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
30{
31 public const SHOWDRAW_NO = "1";
32 public const SHOWDRAW_YES = "2";
33
35 public ?string $minnumber = null;
36 public ?string $maxnumber = null;
38 public array $response_labels = [];
40 public array $material = [];
41
42 public function setShowdraw(string $a_showdraw): void
43 {
44 switch (strtolower($a_showdraw)) {
45 case "1":
46 case "no":
47 $this->showdraw = self::SHOWDRAW_NO;
48 break;
49 case "2":
50 case "yes":
51 $this->showdraw = self::SHOWDRAW_YES;
52 break;
53 }
54 }
55
56 public function getShowdraw(): string
57 {
58 return $this->showdraw;
59 }
60
61 public function setMinnumber(string $a_minnumber): void
62 {
63 $this->minnumber = $a_minnumber;
64 }
65
66 public function getMinnumber(): ?string
67 {
68 return $this->minnumber;
69 }
70
71 public function setMaxnumber(string $a_maxnumber): void
72 {
73 $this->maxnumber = $a_maxnumber;
74 }
75
76 public function getMaxnumber(): ?string
77 {
78 return $this->maxnumber;
79 }
80
81 public function addResponseLabel(ilQTIResponseLabel $a_response_label): void
82 {
83 $this->response_labels[] = $a_response_label;
84 }
85
86 public function addMaterial(ilQTIMaterial $a_material): void
87 {
88 $this->material[] = $a_material;
89 }
90}
addMaterial(ilQTIMaterial $a_material)
setMinnumber(string $a_minnumber)
setShowdraw(string $a_showdraw)
addResponseLabel(ilQTIResponseLabel $a_response_label)
setMaxnumber(string $a_maxnumber)