Class for true/false or yes/no answers. More...
Inheritance diagram for ASS_AnswerImagemap:
Collaboration diagram for ASS_AnswerImagemap:Public Member Functions | |
| ASS_AnswerImagemap ($answertext="", $points=0.0, $order=0, $state=0, $coords="", $area="") | |
| ASS_AnswerImagemap constructor. | |
| get_coords () | |
| Gets the coordinates of an image map. | |
| set_coords ($coords="") | |
| Sets the coordinates of an image map. | |
| get_area () | |
| Gets the area of an image map. | |
| set_area ($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 38 of file class.assAnswerImagemap.php.
| ASS_AnswerImagemap::ASS_AnswerImagemap | ( | $ | answertext = "", |
|
| $ | points = 0.0, |
|||
| $ | order = 0, |
|||
| $ | state = 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 68 of file class.assAnswerImagemap.php.
References ASS_AnswerSimple::$answertext, $area, $coords, ASS_AnswerSimple::$order, ASS_AnswerSimple::$points, ASS_AnswerBinaryState::$state, and ASS_AnswerBinaryState::ASS_AnswerBinaryState().
{
$this->ASS_AnswerBinaryState($answertext, $points, $order, $state);
$this->coords = $coords;
$this->area = $area;
}
Here is the call graph for this function:| ASS_AnswerImagemap::get_area | ( | ) |
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::get_coords | ( | ) |
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::set_area | ( | $ | 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::set_coords | ( | $ | coords = "" |
) |
| ASS_AnswerImagemap::$area |
Definition at line 55 of file class.assAnswerImagemap.php.
Referenced by ASS_AnswerImagemap(), and set_area().
| ASS_AnswerImagemap::$coords |
Definition at line 46 of file class.assAnswerImagemap.php.
Referenced by ASS_AnswerImagemap(), and set_coords().
1.7.1