ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.assAnswerMatching.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once "./Modules/Test/classes/inc.AssessmentConstants.php";
5
16{
25
34
43
52
65 $points = 0.0,
66 $term_id = 0,
69 )
70 {
71 $this->term_id = $term_id;
72 $this->picture_or_definition = $picture_or_definition;
73 $this->picture_or_definition_id = $picture_or_definition_id;
74 $this->points = $points;
75 }
76
85 function getPoints()
86 {
87 return $this->points;
88 }
89
98 function getTermId()
99 {
100 return $this->term_id;
101 }
102
111 function getPicture() {
113 }
114
123 function getDefinition() {
125 }
126
135 function getPictureId() {
137 }
138
147 function getDefinitionId() {
149 }
150
160 function setTermId($term_id = 0)
161 {
162 if ($term_id >= 0)
163 {
164 $this->term_id = $term_id;
165 }
166 }
167
177 function setPictureId($picture_id = 0)
178 {
179 if ($picture_id >= 0)
180 {
181 $this->picture_or_definition_id = $picture_id;
182 }
183 }
184
194 function setDefinitionId($definition_id = 0)
195 {
196 if ($definition_id >= 0)
197 {
198 $this->picture_or_definition_id = $definition_id;
199 }
200 }
201
211 function setPicture($picture = "")
212 {
213 $this->picture_or_definition = $picture;
214 }
215
225 function setDefinition($definition = "")
226 {
227 $this->picture_or_definition = $definition;
228 }
229
230
240 function setPoints($points = 0.0)
241 {
242 $this->points = $points;
243 }
244
245}
246
247?>
Class for matching question answers.
setPoints($points=0.0)
Sets the points.
getTermId()
Gets the term id.
ASS_AnswerMatching( $points=0.0, $term_id=0, $picture_or_definition="", $picture_or_definition_id=0)
ASS_AnswerMatching constructor.
setDefinition($definition="")
Sets the definition.
getPictureId()
Gets the picture identifier.
getPicture()
Gets the picture.
getPoints()
Gets the points.
setPictureId($picture_id=0)
Sets the picture id.
setDefinitionId($definition_id=0)
Sets the definition id.
getDefinition()
Gets the definition.
setTermId($term_id=0)
Sets the term id.
getDefinitionId()
Gets the definition identifier.
setPicture($picture="")
Sets the picture.