ILIAS  Release_4_4_x_branch Revision 61816
 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 44245 2013-08-17 11:15:45Z mbecker

Definition at line 11 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 21 of file class.ilRandomTestData.php.

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

Member Function Documentation

ilRandomTestData::__get (   $property)

Definition at line 26 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 43 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 13 of file class.ilRandomTestData.php.


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