ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
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.
 __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:
class.ilRandomTestData.php 20796 2009-07-30 15:46:10Z hschottm

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

Constructor & Destructor Documentation

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

Constructor.

Parameters
string$a_countQuestion count
string$a_qplQuestionpool id

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

{
$this->data = array('count' => $a_count, 'qpl' => $a_qpl);
}

Member Function Documentation

ilRandomTestData::__get (   $property)

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

{
switch ($property)
{
case 'count':
if ((strlen($this->data[$property]) == 0) || (!is_numeric($this->data[$property]))) return 0;
return $this->data[$property];
break;
case 'qpl':
return $this->data[$property];
break;
default:
return null;
break;
}
}
ilRandomTestData::__set (   $property,
  $value 
)

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

{
switch ($property)
{
case 'count':
case 'qpl':
$this->data[$property] = $value;
break;
default:
break;
}
}

Field Documentation

ilRandomTestData::$data = array()
protected

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


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