Public Member Functions | Data Fields

assAnswerCloze Class Reference
[Modules/TestQuestionPool]

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

Detailed Description

Class for cloze question numeric answers.

assAnswerCloze is a class for cloze questions numeric answers.

Author:
Helmut Schottmüller <helmut.schottmueller@mac.com>
Version:
Id:
class.assAnswerCloze.php 13281 2007-02-19 09:58:49Z hschottm
See also:
ASS_AnswerBinaryState

Definition at line 37 of file class.assAnswerCloze.php.


Member Function Documentation

assAnswerCloze::assAnswerCloze ( answertext = "",
points = 0.0,
order = 0 
)

assAnswerCloze constructor

The constructor takes possible arguments an creates an instance of the assAnswerCloze object.

Parameters:
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;
        }


Field Documentation

assAnswerCloze::$lowerBound

Definition at line 47 of file class.assAnswerCloze.php.

assAnswerCloze::$upperBound

Definition at line 57 of file class.assAnswerCloze.php.


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