ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
assAnswerMatchingTerm Class Reference

Class for matching question terms. More...

+ Inheritance diagram for assAnswerMatchingTerm:
+ Collaboration diagram for assAnswerMatchingTerm:

Public Member Functions

 __construct ($text="", $picture="", $identifier="")
 assAnswerMatchingTerm constructor
 __get ($value)
 Object getter.
 __set ($key, $value)
 Object setter.

Protected Attributes

 $arrData

Detailed Description

Class for matching question terms.

Author
Helmut Schottmüller helmu.nosp@m.t.sc.nosp@m.hottm.nosp@m.uell.nosp@m.er@ma.nosp@m.c.co.nosp@m.m
Version
Id:
class.assAnswerMatchingTerm.php 21761 2009-09-21 07:57:59Z hschottm

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

Constructor & Destructor Documentation

assAnswerMatchingTerm::__construct (   $text = "",
  $picture = "",
  $identifier = "" 
)

assAnswerMatchingTerm constructor

Parameters
string$textDefinition text
string$pictureDefinition picture
integer$identifierRandom number identifier

Definition at line 42 of file class.assAnswerMatchingTerm.php.

{
if (strlen($identifier) == 0)
{
mt_srand((double)microtime()*1000000);
$identifier = mt_rand(1, 100000);
}
$this->arrData = array(
'text' => $text,
'picture' => $picture,
'identifier' => $identifier
);
}

Member Function Documentation

assAnswerMatchingTerm::__get (   $value)

Object getter.

Definition at line 59 of file class.assAnswerMatchingTerm.php.

{
switch ($value)
{
case "text":
case "picture":
if (strlen($this->arrData[$value]))
{
return $this->arrData[$value];
}
else
{
return null;
}
break;
case "identifier":
return $this->arrData[$value];
break;
default:
return null;
break;
}
}
assAnswerMatchingTerm::__set (   $key,
  $value 
)

Object setter.

Definition at line 86 of file class.assAnswerMatchingTerm.php.

References $key.

{
switch ($key)
{
case "text":
case "picture":
case "identifier":
$this->arrData[$key] = $value;
break;
default:
break;
}
}

Field Documentation

assAnswerMatchingTerm::$arrData
protected

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


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