ILIAS
Release_4_4_x_branch Revision 61816
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
class.assAnswerMultipleResponse.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
include_once
"./Modules/TestQuestionPool/classes/class.assAnswerSimple.php"
;
5
include_once
"./Modules/Test/classes/inc.AssessmentConstants.php"
;
6
17
class
ASS_AnswerMultipleResponse
extends
ASS_AnswerSimple
{
25
var
$points_unchecked
;
26
38
function
ASS_AnswerMultipleResponse
(
39
$answertext
=
""
,
40
$points_checked = 0.0,
41
$order
= 0,
42
$points_unchecked
= 0,
43
$id
= -1
44
)
45
{
46
parent::__construct
(
$answertext
, $points_checked,
$order
,
$id
);
47
$this->
setPointsUnchecked
(
$points_unchecked
);
48
}
49
50
60
function
getPointsUnchecked
()
61
{
62
return
$this->points_unchecked
;
63
}
64
74
function
setPointsUnchecked
(
$points_unchecked
= 0.0)
75
{
76
$new_points = str_replace(
","
,
"."
,
$points_unchecked
);
77
78
if
($this->
checkPoints
($new_points))
79
{
80
$this->points_unchecked = $new_points;
81
}
82
else
83
{
84
$this->points_unchecked = 0.0;
85
}
86
}
87
88
function
setPointsChecked
($points_checked)
89
{
90
$this->
setPoints
($points_checked);
91
}
92
93
function
getPointsChecked
()
94
{
95
return
$this->
getPoints
();
96
}
97
}
98
99
?>
Modules
TestQuestionPool
classes
class.assAnswerMultipleResponse.php
Generated on Wed Apr 27 2016 20:01:25 for ILIAS by
1.8.1.2 (using
Doxyfile
)