ILIAS  release_8 Revision v8.24
class.ilQTIResponseLabel.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
31{
32 public const RSHUFFLE_NO = "1";
33 public const RSHUFFLE_YES = "2";
34
35 public const RAREA_ELLIPSE = "1";
36 public const RAREA_RECTANGLE = "2";
37 public const RAREA_BOUNDED = "3";
38
39 public const RRANGE_EXACT = "1";
40 public const RRANGE_RANGE = "2";
41
42 public ?string $rshuffle = null;
43 public ?string $rarea = null;
44 public ?string $rrange = null;
45 public ?string $labelrefid = null;
46 public ?string $ident = null;
47 public ?string $match_group = null;
48 public ?string $match_max = null;
50 public array $material = [];
52 public array $flow_mat = [];
53 public ?string $content = null;
54
55 public function setRshuffle(string $a_rshuffle): void
56 {
57 switch (strtolower($a_rshuffle)) {
58 case "1":
59 case "no":
60 $this->rshuffle = self::RSHUFFLE_NO;
61 break;
62 case "2":
63 case "yes":
64 $this->rshuffle = self::RSHUFFLE_YES;
65 break;
66 }
67 }
68
69 public function getRshuffle(): ?string
70 {
71 return $this->rshuffle;
72 }
73
74 public function setRarea(string $a_rarea): void
75 {
76 switch (strtolower($a_rarea)) {
77 case "1":
78 case "ellipse":
79 $this->rarea = self::RAREA_ELLIPSE;
80 break;
81 case "2":
82 case "rectangle":
83 $this->rarea = self::RAREA_RECTANGLE;
84 break;
85 case "3":
86 case "bounded":
87 $this->rarea = self::RAREA_BOUNDED;
88 break;
89 }
90 }
91
92 public function getRarea(): ?string
93 {
94 return $this->rarea;
95 }
96
97 public function setRrange(string $a_rrange): void
98 {
99 switch (strtolower($a_rrange)) {
100 case "1":
101 case "excact":
102 $this->rrange = self::RRANGE_EXACT;
103 break;
104 case "2":
105 case "range":
106 $this->rrange = self::RRANGE_RANGE;
107 break;
108 }
109 }
110
111 public function getRrange(): ?string
112 {
113 return $this->rrange;
114 }
115
116 public function setLabelrefid(string $a_labelrefid): void
117 {
118 $this->labelrefid = $a_labelrefid;
119 }
120
121 public function getLabelrefid(): ?string
122 {
123 return $this->labelrefid;
124 }
125
126 public function setIdent(string $a_ident): void
127 {
128 $this->ident = $a_ident;
129 }
130
131 public function getIdent(): ?string
132 {
133 return $this->ident;
134 }
135
136 public function setMatchGroup(string $a_match_group): void
137 {
138 $this->match_group = $a_match_group;
139 }
140
141 public function getMatchGroup(): ?string
142 {
143 return $this->match_group;
144 }
145
146 public function setMatchMax(string $a_match_max): void
147 {
148 $this->match_max = $a_match_max;
149 }
150
151 public function getMatchMax(): ?string
152 {
153 return $this->match_max;
154 }
155
156 public function addMaterial(ilQTIMaterial $a_material): void
157 {
158 $this->material[] = $a_material;
159 }
160
161 public function addFlow_mat(ilQTIFlowMat $a_flow_mat): void
162 {
163 $this->flow_mat[] = $a_flow_mat;
164 }
165
166 public function setContent(string $a_content): void
167 {
168 $this->content = $a_content;
169 }
170
171 public function getContent(): ?string
172 {
173 return $this->content;
174 }
175}
setMatchGroup(string $a_match_group)
setRshuffle(string $a_rshuffle)
addMaterial(ilQTIMaterial $a_material)
setContent(string $a_content)
setMatchMax(string $a_match_max)
addFlow_mat(ilQTIFlowMat $a_flow_mat)
setLabelrefid(string $a_labelrefid)