ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ 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
{
53
case
"text_wrong"
:
54
case
"text_correct"
:
55
case
"points"
:
56
return
$this->arrData[$value];
57
break
;
58
default
:
59
return
null;
60
break
;
61
}
62
}
63
67
public
function
__set
($key, $value)
68
{
69
switch
($key)
70
{
71
case
"text_wrong"
:
72
case
"text_correct"
:
73
case
"points"
:
74
$this->arrData[$key] = $value;
75
break
;
76
default
:
77
break
;
78
}
79
}
80
}
assAnswerErrorText\__construct
__construct( $text_wrong="", $text_correct="", $points=0.0)
assAnswerErrorText constructor
Definition:
class.assAnswerErrorText.php:37
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:67
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
php
assAnswerErrorText\$arrData
$arrData
Definition:
class.assAnswerErrorText.php:26
Modules
TestQuestionPool
classes
class.assAnswerErrorText.php
Generated on Fri Jan 17 2025 19:01:04 for ILIAS by
1.8.13 (using
Doxyfile
)