ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
assAnswerErrorText Class Reference

Class for error text answers. More...

+ Collaboration diagram for assAnswerErrorText:

Public Member Functions

 __construct ($text_wrong="", $text_correct="", $points=0.0)
 assAnswerErrorText constructor
 __get ($value)
 Object getter.
 __set ($key, $value)
 Object setter.

Protected Attributes

 $arrData

Detailed Description

Class for error text answers.

Author
Helmut Schottmüller helmu.nosp@m.t.sc.nosp@m.hottm.nosp@m.uell.nosp@m.er@ma.nosp@m.c.co.nosp@m.m
Version
Id:
class.assAnswerErrorText.php 21761 2009-09-21 07:57:59Z hschottm

Definition at line 33 of file class.assAnswerErrorText.php.

Constructor & Destructor Documentation

assAnswerErrorText::__construct (   $text_wrong = "",
  $text_correct = "",
  $points = 0.0 
)

assAnswerErrorText constructor

Parameters
string$text_wrongWrong text
string$text_correctCorrect text
double$pointsPoints

Definition at line 44 of file class.assAnswerErrorText.php.

{
$this->arrData = array(
'text_wrong' => $text_wrong,
'text_correct' => $text_correct,
'points' => $points
);
}

Member Function Documentation

assAnswerErrorText::__get (   $value)

Object getter.

Definition at line 56 of file class.assAnswerErrorText.php.

{
switch ($value)
{
case "text_wrong":
case "text_correct":
case "points":
return $this->arrData[$value];
break;
default:
return null;
break;
}
}
assAnswerErrorText::__set (   $key,
  $value 
)

Object setter.

Definition at line 74 of file class.assAnswerErrorText.php.

{
switch ($key)
{
case "text_wrong":
case "text_correct":
case "points":
$this->arrData[$key] = $value;
break;
default:
break;
}
}

Field Documentation

assAnswerErrorText::$arrData
protected

Definition at line 35 of file class.assAnswerErrorText.php.


The documentation for this class was generated from the following file: