ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.assAnswerErrorText.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
require_once
'./Modules/Test/classes/inc.AssessmentConstants.php'
;
5
18
class
assAnswerErrorText
19
{
26
protected
$arrData
;
27
37
public
function
__construct
($text_wrong =
""
, $text_correct =
""
, $points = 0.0)
38
{
39
$this->arrData = array(
40
'text_wrong'
=> $text_wrong,
41
'text_correct'
=> $text_correct,
42
'points'
=> $points
43
);
44
}
45
49
public
function
__get
($value)
50
{
51
switch
($value) {
52
case
"text_wrong"
:
53
case
"text_correct"
:
54
case
"points"
:
55
return
$this->arrData[$value];
56
break
;
57
default
:
58
return
null;
59
break
;
60
}
61
}
62
66
public
function
__set
(
$key
, $value)
67
{
68
switch
(
$key
) {
69
case
"text_wrong"
:
70
case
"text_correct"
:
71
case
"points"
:
72
$this->arrData[
$key
] = $value;
73
break
;
74
default
:
75
break
;
76
}
77
}
78
}
assAnswerErrorText\__get
__get($value)
Object getter.
Definition:
class.assAnswerErrorText.php:49
assAnswerErrorText
Class for error text answers.
Definition:
class.assAnswerErrorText.php:18
assAnswerErrorText\__set
__set($key, $value)
Object setter.
Definition:
class.assAnswerErrorText.php:66
php
assAnswerErrorText\$arrData
$arrData
Definition:
class.assAnswerErrorText.php:26
assAnswerErrorText\__construct
__construct($text_wrong="", $text_correct="", $points=0.0)
assAnswerErrorText constructor
Definition:
class.assAnswerErrorText.php:37
$key
$key
Definition:
croninfo.php:18
Modules
TestQuestionPool
classes
class.assAnswerErrorText.php
Generated on Thu Jan 16 2025 19:02:11 for ILIAS by
1.8.13 (using
Doxyfile
)