ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 public 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 case "term":
38 case "definition":
39 case "points":
40 return $this->arrData[$value];
41 break;
42 default:
43 return null;
44 break;
45 }
46 }
47
51 public function __set($key, $value)
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 }
63}
An exception for terminatinating execution or to throw for unit testing.
Class for matching question pairs.
__construct($term=null, $definition=null, $points=0.0)
assAnswerMatchingPair constructor
__set($key, $value)
Object setter.
$key
Definition: croninfo.php:18