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

Definition at line 11 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 22 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 39 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 66 of file class.assAnswerMatchingTerm.php.

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

Field Documentation

assAnswerMatchingTerm::$arrData
protected

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


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