ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilRandomTestData.php
Go to the documentation of this file.
1 <?php
2 
27 {
28  protected $data = array();
29 
36  public function __construct($a_count = "", $a_qpl = "")
37  {
38  $this->data = array('count' => $a_count, 'qpl' => $a_qpl);
39  }
40 
41  public function __get($property)
42  {
43  switch ($property) {
44  case 'count':
45  if ((strlen($this->data[$property]) == 0) || (!is_numeric($this->data[$property]))) {
46  return 0;
47  }
48  return $this->data[$property];
49  break;
50  case 'qpl':
51  return $this->data[$property];
52  break;
53  default:
54  return null;
55  break;
56  }
57  }
58 
59  public function __set($property, $value)
60  {
61  switch ($property) {
62  case 'count':
63  case 'qpl':
64  $this->data[$property] = $value;
65  break;
66  default:
67  break;
68  }
69  }
70 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct($a_count="", $a_qpl="")
Constructor.
__set($property, $value)