|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
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, $coords="", $area="", $id=-1, $points_unchecked=0) | |
| ASS_AnswerImagemap constructor. More... | |
| getCoords () | |
| Gets the coordinates of an image map. More... | |
| setCoords ($coords="") | |
| Sets the coordinates of an image map. More... | |
| getArea () | |
| Gets the area of an image map. More... | |
| setArea ($area="") | |
| Sets the area of an image map. More... | |
| getPointsUnchecked () | |
| Returns the points for an unchecked answer Returns the points for an unchecked answer. More... | |
| setPointsUnchecked ($points_unchecked) | |
| Sets the points for an unchecked answer. More... | |
Public Member Functions inherited from ASS_AnswerBinaryState | |
| __construct ( $answertext="", $points=0.0, $order=0, $state=0, $id=-1) | |
| ASS_AnswerBinaryState constructor. More... | |
| getState () | |
| Gets the state. More... | |
| isStateChecked () | |
| Gets the state. More... | |
| isStateSet () | |
| Gets the state. More... | |
| isStateUnset () | |
| Gets the state. More... | |
| isStateUnchecked () | |
| Gets the state. More... | |
| setState ($state=0) | |
| Sets the state. More... | |
| setChecked () | |
| Sets the answer as a checked answer. More... | |
| setSet () | |
| Sets the answer as a set answer. More... | |
| setUnset () | |
| Sets the answer as a unset answer. More... | |
| setUnchecked () | |
| Sets the answer as a unchecked answer. More... | |
Public Member Functions inherited from ASS_AnswerSimple | |
| __construct ( $answertext="", $points=0.0, $order=0, $id=-1) | |
| ASS_AnswerSimple constructor. More... | |
| getId () | |
| Gets the answer id. More... | |
| getAnswertext () | |
| Gets the answer text. More... | |
| getPoints () | |
| Gets the points. More... | |
| checkPoints ($a_points) | |
| Checks, if the point value is numeric. More... | |
| getOrder () | |
| Gets the sort/display order. More... | |
| setOrder ($order=0) | |
| Sets the order. More... | |
| setId ($id=-1) | |
| Sets the answer id. More... | |
| setAnswertext ($answertext="") | |
| Sets the answer text. More... | |
| setPoints ($points=0.0) | |
| Sets the points. More... | |
Data Fields | |
| $coords | |
| $area | |
Protected Attributes | |
| $points_unchecked = 0.0 | |
Protected Attributes inherited from ASS_AnswerBinaryState | |
| $state | |
Protected Attributes inherited from ASS_AnswerSimple | |
| $answertext | |
| $points | |
| $order | |
| $id | |
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.
Definition at line 18 of file class.assAnswerImagemap.php.
| ASS_AnswerImagemap::ASS_AnswerImagemap | ( | $answertext = "", |
|
$points = 0.0, |
|||
$order = 0, |
|||
$coords = "", |
|||
$area = "", |
|||
$id = -1, |
|||
$points_unchecked = 0 |
|||
| ) |
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 @access public |
Definition at line 57 of file class.assAnswerImagemap.php.
References ASS_AnswerSimple\$answertext, $area, $coords, ASS_AnswerSimple\$id, ASS_AnswerSimple\$points, and $points_unchecked.
| ASS_AnswerImagemap::getArea | ( | ) |
Gets the area of an image map.
Definition at line 106 of file class.assAnswerImagemap.php.
References $area.
| ASS_AnswerImagemap::getCoords | ( | ) |
Gets the coordinates of an image map.
Definition at line 81 of file class.assAnswerImagemap.php.
References $coords.
| ASS_AnswerImagemap::getPointsUnchecked | ( | ) |
Returns the points for an unchecked answer Returns the points for an unchecked answer.
Definition at line 129 of file class.assAnswerImagemap.php.
References $points_unchecked.
| ASS_AnswerImagemap::setArea | ( | $area = "" | ) |
Sets the area of an image map.
| string | $area | @access public |
Definition at line 118 of file class.assAnswerImagemap.php.
References $area.
| ASS_AnswerImagemap::setCoords | ( | $coords = "" | ) |
| ASS_AnswerImagemap::setPointsUnchecked | ( | $points_unchecked | ) |
Sets the points for an unchecked answer.
| double | $points_unchecked | The points for an unchecked answer |
@TODO Analyze usage and see if we can get rid of "magic nullification" here.
Definition at line 142 of file class.assAnswerImagemap.php.
References $points_unchecked, and ASS_AnswerSimple\checkPoints().
Here is the call graph for this function:| ASS_AnswerImagemap::$area |
Definition at line 35 of file class.assAnswerImagemap.php.
Referenced by ASS_AnswerImagemap(), getArea(), and setArea().
| ASS_AnswerImagemap::$coords |
Definition at line 26 of file class.assAnswerImagemap.php.
Referenced by ASS_AnswerImagemap(), getCoords(), and setCoords().
|
protected |
Definition at line 44 of file class.assAnswerImagemap.php.
Referenced by ASS_AnswerImagemap(), getPointsUnchecked(), and setPointsUnchecked().