ILIAS  release_4-3 Revision
 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$

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.

{
$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.

{
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: