ILIAS  release_8 Revision v8.24
class.assAnswerMatching.php
Go to the documentation of this file.
1<?php
2
19include_once "./Modules/Test/classes/inc.AssessmentConstants.php";
20
30{
31 public float $points;
32
41
49 public $term_id;
50
59
71 public function __construct(
72 $points = 0.0,
73 $term_id = 0,
76 ) {
77 $this->term_id = $term_id;
78 $this->picture_or_definition = $picture_or_definition;
79 $this->picture_or_definition_id = $picture_or_definition_id;
80 $this->points = $points;
81 }
82
91 public function getPoints(): float
92 {
93 return $this->points;
94 }
95
104 public function getTermId(): int
105 {
106 return $this->term_id;
107 }
108
117 public function getPicture(): string
118 {
120 }
121
130 public function getDefinition(): string
131 {
133 }
134
143 public function getPictureId(): int
144 {
146 }
147
156 public function getDefinitionId(): int
157 {
159 }
160
170 public function setTermId($term_id = 0): void
171 {
172 if ($term_id >= 0) {
173 $this->term_id = $term_id;
174 }
175 }
176
184 public function setPictureId(int $picture_id = 0): void
185 {
186 if ($picture_id >= 0) {
187 $this->picture_or_definition_id = $picture_id;
188 }
189 }
190
198 public function setDefinitionId(int $definition_id = 0): void
199 {
200 if ($definition_id >= 0) {
201 $this->picture_or_definition_id = $definition_id;
202 }
203 }
204
212 public function setPicture(string $picture = ""): void
213 {
214 $this->picture_or_definition = $picture;
215 }
216
224 public function setDefinition(string $definition = ""): void
225 {
226 $this->picture_or_definition = $definition;
227 }
228
229
237 public function setPoints(float $points = 0.0): void
238 {
239 $this->points = $points;
240 }
241}
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.