ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 More...
 
 __get ($value)
 Object getter. More...
 
 __set ($key, $value)
 Object setter. More...
 

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 11 of file class.assAnswerMatchingPair.php.

Constructor & Destructor Documentation

◆ __construct()

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.

23 {
24 $this->arrData = array(
25 'term' => $term,
26 'definition' => $definition,
27 'points' => $points
28 );
29 }

Member Function Documentation

◆ __get()

assAnswerMatchingPair::__get (   $value)

Object getter.

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

35 {
36 switch ($value)
37 {
38 case "term":
39 case "definition":
40 case "points":
41 return $this->arrData[$value];
42 break;
43 default:
44 return null;
45 break;
46 }
47 }

◆ __set()

assAnswerMatchingPair::__set (   $key,
  $value 
)

Object setter.

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

53 {
54 switch ($key)
55 {
56 case "term":
57 case "definition":
58 case "points":
59 $this->arrData[$key] = $value;
60 break;
61 default:
62 break;
63 }
64 }

Field Documentation

◆ $arrData

assAnswerMatchingPair::$arrData
protected

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


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