ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.assAnswerMatchingPair.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
12{
13 protected $arrData;
14
22 function __construct($term = null, $definition = null, $points = 0.0)
23 {
24 $this->arrData = array(
25 'term' => $term,
26 'definition' => $definition,
27 'points' => $points
28 );
29 }
30
34 public function __get($value)
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 }
48
52 public function __set($key, $value)
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 }
65}
66
67?>
Class for matching question pairs.
__construct($term=null, $definition=null, $points=0.0)
assAnswerMatchingPair constructor
__set($key, $value)
Object setter.