ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.assAnswerMatching.php
Go to the documentation of this file.
1<?php
2
28{
29 public float $points;
30
39
47 public $term_id;
48
57
69 public function __construct(
70 $points = 0.0,
71 $term_id = 0,
74 ) {
75 $this->term_id = $term_id;
76 $this->picture_or_definition = $picture_or_definition;
77 $this->picture_or_definition_id = $picture_or_definition_id;
78 $this->points = $points;
79 }
80
89 public function getPoints(): float
90 {
91 return $this->points;
92 }
93
102 public function getTermId(): int
103 {
104 return $this->term_id;
105 }
106
115 public function getPicture(): string
116 {
118 }
119
128 public function getDefinition(): string
129 {
131 }
132
141 public function getPictureId(): int
142 {
144 }
145
154 public function getDefinitionId(): int
155 {
157 }
158
168 public function setTermId($term_id = 0): void
169 {
170 if ($term_id >= 0) {
171 $this->term_id = $term_id;
172 }
173 }
174
182 public function setPictureId(int $picture_id = 0): void
183 {
184 if ($picture_id >= 0) {
185 $this->picture_or_definition_id = $picture_id;
186 }
187 }
188
196 public function setDefinitionId(int $definition_id = 0): void
197 {
198 if ($definition_id >= 0) {
199 $this->picture_or_definition_id = $definition_id;
200 }
201 }
202
210 public function setPicture(string $picture = ""): void
211 {
212 $this->picture_or_definition = $picture;
213 }
214
222 public function setDefinition(string $definition = ""): void
223 {
224 $this->picture_or_definition = $definition;
225 }
226
227
235 public function setPoints(float $points = 0.0): void
236 {
237 $this->points = $points;
238 }
239}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct( $points=0.0, $term_id=0, $picture_or_definition="", $picture_or_definition_id=0)
ASS_AnswerMatching constructor.
setDefinition(string $definition="")
Sets the definition Sets the definition.
setPicture(string $picture="")
Sets the picture Sets the picture.
setPictureId(int $picture_id=0)
Sets the picture id Sets the nonnegative picture identifier which can be used for sorting or displayi...
getTermId()
Gets the term id.
setPoints(float $points=0.0)
Sets the points Sets the points given for selecting the answer.
setDefinitionId(int $definition_id=0)
Sets the definition id Sets the nonnegative definition identifier which can be used for sorting or di...
getPictureId()
Gets the picture identifier.
getPicture()
Gets the picture.
getPoints()
Gets the points.
getDefinition()
Gets the definition.
setTermId($term_id=0)
Sets the term id.
getDefinitionId()
Gets the definition identifier.