ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class for true/false or yes/no answers. More...
Public Member Functions | |
__construct ( $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::__construct | ( | $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 public |
Definition at line 58 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 108 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 133 of file class.assAnswerImagemap.php.
References $points_unchecked.
ASS_AnswerImagemap::setArea | ( | $area = "" | ) |
Sets the area of an image map.
string | $area | public |
Definition at line 121 of file class.assAnswerImagemap.php.
References $area.
ASS_AnswerImagemap::setCoords | ( | $coords = "" | ) |
Sets the coordinates of an image map.
string | $coords | public |
Definition at line 95 of file class.assAnswerImagemap.php.
References $coords.
ASS_AnswerImagemap::setPointsUnchecked | ( | $points_unchecked | ) |
Sets the points for an unchecked answer.
double | $points_unchecked | The points for an unchecked answer |
Analyze usage and see if we can get rid of "magic nullification" here.
Definition at line 146 of file class.assAnswerImagemap.php.
References $points_unchecked, and ASS_AnswerSimple\checkPoints().
ASS_AnswerImagemap::$area |
Definition at line 36 of file class.assAnswerImagemap.php.
Referenced by __construct(), getArea(), and setArea().
ASS_AnswerImagemap::$coords |
Definition at line 27 of file class.assAnswerImagemap.php.
Referenced by __construct(), getCoords(), and setCoords().
|
protected |
Definition at line 45 of file class.assAnswerImagemap.php.
Referenced by __construct(), getPointsUnchecked(), and setPointsUnchecked().