ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilRandomTestData Class Reference

This class represents a random test input property in a property form. More...

+ Collaboration diagram for ilRandomTestData:

Public Member Functions

 __construct ($a_count="", $a_qpl="")
 Constructor. More...
 
 __get ($property)
 
 __set ($property, $value)
 

Protected Attributes

 $data = array()
 

Detailed Description

This class represents a random test input property in a property form.

Author
Helmut Schottmüller ilias.nosp@m.@aur.nosp@m.ealis.nosp@m..de
Version
$Id$

Definition at line 11 of file class.ilRandomTestData.php.

Constructor & Destructor Documentation

◆ __construct()

ilRandomTestData::__construct (   $a_count = "",
  $a_qpl = "" 
)

Constructor.

Parameters
string$a_countQuestion count
string$a_qplQuestionpool id

Definition at line 21 of file class.ilRandomTestData.php.

References data.

22  {
23  $this->data = array('count' => $a_count, 'qpl' => $a_qpl);
24  }
$this data['403_header']

Member Function Documentation

◆ __get()

ilRandomTestData::__get (   $property)

Definition at line 26 of file class.ilRandomTestData.php.

References data.

27  {
28  switch ($property) {
29  case 'count':
30  if ((strlen($this->data[$property]) == 0) || (!is_numeric($this->data[$property]))) {
31  return 0;
32  }
33  return $this->data[$property];
34  break;
35  case 'qpl':
36  return $this->data[$property];
37  break;
38  default:
39  return null;
40  break;
41  }
42  }
$this data['403_header']

◆ __set()

ilRandomTestData::__set (   $property,
  $value 
)

Definition at line 44 of file class.ilRandomTestData.php.

References data.

45  {
46  switch ($property) {
47  case 'count':
48  case 'qpl':
49  $this->data[$property] = $value;
50  break;
51  default:
52  break;
53  }
54  }
$this data['403_header']

Field Documentation

◆ $data

ilRandomTestData::$data = array()
protected

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


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