ILIAS  Release_4_4_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 44245 2013-08-17 11:15:45Z mbecker

Definition at line 11 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 22 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 34 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 52 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 13 of file class.assAnswerMatchingPair.php.


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