ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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.

References array.

23  {
24  $this->arrData = array(
25  'term' => $term,
26  'definition' => $definition,
27  'points' => $points
28  );
29  }
Create styles array
The data for the language used.

Member Function Documentation

◆ __get()

assAnswerMatchingPair::__get (   $value)

Object getter.

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

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

◆ __set()

assAnswerMatchingPair::__set (   $key,
  $value 
)

Object setter.

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

References $key.

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

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: