ILIAS  Release_4_4_x_branch Revision 61816
 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
Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de
Version
Id:
class.assAnswerErrorText.php 44252 2013-08-18 19:01:34Z mbecker

Rework class to use members instead of $arrData + magic methods. (This needs some changes in neighbours.)

Definition at line 18 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
Returns
assAnswerErrorText

Definition at line 37 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 49 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 67 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 26 of file class.assAnswerErrorText.php.


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