ILIAS
Release_4_0_x_branch Revision 61816
|
Class for ordering question answers. More...
Public Member Functions | |
ASS_AnswerOrdering ($answertext="", $random_id=0) | |
ASS_AnswerOrdering constructor. | |
getRandomID () | |
Returns the random ID of the answer. | |
setRandomID ($random_id=0) | |
Sets the random ID of the answer. | |
Public Member Functions inherited from ASS_AnswerSimple | |
ASS_AnswerSimple ($answertext="", $points=0.0, $order=0, $id=-1) | |
ASS_AnswerSimple constructor. | |
getId () | |
Gets the answer id. | |
getAnswertext () | |
Gets the answer text. | |
getPoints () | |
Gets the points. | |
checkPoints ($a_points) | |
Checks, if the point value is numeric. | |
getOrder () | |
Gets the sort/display order. | |
setOrder ($order=0) | |
Sets the order. | |
setId ($id=-1) | |
Sets the answer id. | |
setAnswertext ($answertext="") | |
Sets the answer text. | |
setPoints ($points=0.0) | |
Sets the points. |
Protected Attributes | |
$random_id |
Additional Inherited Members | |
Data Fields inherited from ASS_AnswerSimple | |
$answertext | |
$points | |
$order | |
$id |
Class for ordering question answers.
ASS_AnswerOrdering is a class for ordering question answers used in ordering questions.
Definition at line 37 of file class.assAnswerOrdering.php.
ASS_AnswerOrdering::ASS_AnswerOrdering | ( | $answertext = "" , |
|
$random_id = 0 |
|||
) |
ASS_AnswerOrdering constructor.
The constructor takes possible arguments an creates an instance of the ASS_AnswerOrdering object.
string | $answertext | A string defining the answer text |
integer | $random_id | A random ID public |
Definition at line 54 of file class.assAnswerOrdering.php.
References ASS_AnswerSimple\$answertext, $random_id, ASS_AnswerSimple\ASS_AnswerSimple(), and setRandomID().
ASS_AnswerOrdering::getRandomID | ( | ) |
Returns the random ID of the answer.
Definition at line 70 of file class.assAnswerOrdering.php.
References $random_id.
ASS_AnswerOrdering::setRandomID | ( | $random_id = 0 | ) |
Sets the random ID of the answer.
integer | $random_id | A random integer value |
Definition at line 81 of file class.assAnswerOrdering.php.
References $random_id.
Referenced by ASS_AnswerOrdering().
|
protected |
Definition at line 43 of file class.assAnswerOrdering.php.
Referenced by ASS_AnswerOrdering(), getRandomID(), and setRandomID().