Class for cloze question numeric answers. More...
Inheritance diagram for assAnswerCloze:
Collaboration diagram for assAnswerCloze:Public Member Functions | |
| assAnswerCloze ($answertext="", $points=0.0, $order=0) | |
| assAnswerCloze constructor | |
| setLowerBound ($bound) | |
| setUpperBound ($bound) | |
| getLowerBound () | |
| getUpperBound () | |
Data Fields | |
| $lowerBound | |
| $upperBound | |
Class for cloze question numeric answers.
assAnswerCloze is a class for cloze questions numeric answers.
Definition at line 37 of file class.assAnswerCloze.php.
| assAnswerCloze::assAnswerCloze | ( | $ | answertext = "", |
|
| $ | points = 0.0, |
|||
| $ | order = 0 | |||
| ) |
assAnswerCloze constructor
The constructor takes possible arguments an creates an instance of the assAnswerCloze object.
| string | $answertext A string defining the answer text | |
| double | $points The number of points given for the selected answer | |
| integer | $order A nonnegative value representing a possible display or sort order public |
Definition at line 69 of file class.assAnswerCloze.php.
References ASS_AnswerSimple::$answertext, ASS_AnswerSimple::$order, ASS_AnswerSimple::$points, and ASS_AnswerSimple::ASS_AnswerSimple().
{
$this->ASS_AnswerSimple($answertext, $points, $order, -1);
$this->lowerBound = NULL;
$this->upperBound = NULL;
}
Here is the call graph for this function:| assAnswerCloze::getLowerBound | ( | ) |
Definition at line 88 of file class.assAnswerCloze.php.
{
return $this->lowerBound;
}
| assAnswerCloze::getUpperBound | ( | ) |
Definition at line 93 of file class.assAnswerCloze.php.
{
return $this->upperBound;
}
| assAnswerCloze::setLowerBound | ( | $ | bound | ) |
Definition at line 76 of file class.assAnswerCloze.php.
{
$bound = str_replace(",", ".", $bound);
$this->lowerBound = is_numeric($bound) ? $bound : NULL;
}
| assAnswerCloze::setUpperBound | ( | $ | bound | ) |
Definition at line 82 of file class.assAnswerCloze.php.
{
$bound = str_replace(",", ".", $bound);
$this->upperBound = is_numeric($bound) ? $bound : NULL;
}
| assAnswerCloze::$lowerBound |
Definition at line 47 of file class.assAnswerCloze.php.
| assAnswerCloze::$upperBound |
Definition at line 57 of file class.assAnswerCloze.php.
1.7.1