ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
assAnswerMatchingPair Class Reference

Class for matching question pairs. More...

+ Collaboration diagram for assAnswerMatchingPair:

Public Member Functions

 __construct ($term=null, $definition=null, $points=0.0)
 assAnswerMatchingPair constructor
 __get ($value)
 Object getter.
 __set ($key, $value)
 Object setter.

Protected Attributes

 $arrData

Detailed Description

Class for matching question pairs.

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.assAnswerMatchingPair.php 21761 2009-09-21 07:57:59Z hschottm

Definition at line 31 of file class.assAnswerMatchingPair.php.

Constructor & Destructor Documentation

assAnswerMatchingPair::__construct (   $term = null,
  $definition = null,
  $points = 0.0 
)

assAnswerMatchingPair constructor

Parameters
string$textDefinition text
string$pictureDefinition picture
integer$identifierRandom number identifier

Definition at line 42 of file class.assAnswerMatchingPair.php.

References $points.

{
$this->arrData = array(
'term' => $term,
'definition' => $definition,
'points' => $points
);
}

Member Function Documentation

assAnswerMatchingPair::__get (   $value)

Object getter.

Definition at line 54 of file class.assAnswerMatchingPair.php.

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

Object setter.

Definition at line 72 of file class.assAnswerMatchingPair.php.

References $key.

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

Field Documentation

assAnswerMatchingPair::$arrData
protected

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


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