Class for true/false or yes/no answers. More...
Public Member Functions | |
ASS_AnswerImagemap ($answertext="", $points=0.0, $order=0, $coords="", $area="") | |
ASS_AnswerImagemap constructor. | |
getCoords () | |
Gets the coordinates of an image map. | |
setCoords ($coords="") | |
Sets the coordinates of an image map. | |
getArea () | |
Gets the area of an image map. | |
setArea ($area="") | |
Sets the area of an image map. | |
Data Fields | |
$coords | |
$area |
Class for true/false or yes/no answers.
ASS_AnswerImagemap is a class for true/false or yes/no answers used for example in multiple choice tests.
class.assAnswerImagemap.php Assessment
Definition at line 39 of file class.assAnswerImagemap.php.
ASS_AnswerImagemap::ASS_AnswerImagemap | ( | $ | answertext = "" , |
|
$ | points = 0.0 , |
|||
$ | order = 0 , |
|||
$ | coords = "" , |
|||
$ | area = "" | |||
) |
ASS_AnswerImagemap constructor.
The constructor takes possible arguments an creates an instance of the ASS_AnswerImagemap object.
string | $answertext A string defining the answer text | |
double | $points The number of points given for the selected answer | |
boolean | $correctness A boolean value indicating the correctness of the answer | |
integer | $order A nonnegative value representing a possible display or sort order public |
Definition at line 69 of file class.assAnswerImagemap.php.
References ASS_AnswerSimple::$answertext, $area, $coords, ASS_AnswerSimple::$order, ASS_AnswerSimple::$points, and ASS_AnswerBinaryState::ASS_AnswerBinaryState().
{ $this->ASS_AnswerBinaryState($answertext, $points, $order, 1); $this->coords = $coords; $this->area = $area; }
ASS_AnswerImagemap::getArea | ( | ) |
Gets the area of an image map.
Gets the area of an image map
Definition at line 121 of file class.assAnswerImagemap.php.
{
return $this->area;
}
ASS_AnswerImagemap::getCoords | ( | ) |
Gets the coordinates of an image map.
Gets the coordinates of an image map
Definition at line 92 of file class.assAnswerImagemap.php.
{ $this->coords = preg_replace("/\s/", "", $this->coords); return $this->coords; }
ASS_AnswerImagemap::setArea | ( | $ | area = "" |
) |
Sets the area of an image map.
Sets the area of an image map
string | $area public |
Definition at line 135 of file class.assAnswerImagemap.php.
References $area.
{ $this->area=$area; }
ASS_AnswerImagemap::setCoords | ( | $ | coords = "" |
) |
ASS_AnswerImagemap::$area |
Definition at line 56 of file class.assAnswerImagemap.php.
Referenced by ASS_AnswerImagemap(), and setArea().
ASS_AnswerImagemap::$coords |
Definition at line 47 of file class.assAnswerImagemap.php.
Referenced by ASS_AnswerImagemap(), and setCoords().