ILIAS
Release_3_10_x_branch Revision 61812
|
Class for matching question answers. More...
Public Member Functions | |
ASS_AnswerMatching ($term="", $points=0.0, $term_id=0, $picture_or_definition="", $picture_or_definition_id=0) | |
ASS_AnswerMatching constructor. | |
getTerm () | |
Gets the term. | |
getPoints () | |
Gets the points. | |
getTermId () | |
Gets the term id. | |
getPicture () | |
Gets the picture. | |
getDefinition () | |
Gets the definition. | |
getPictureId () | |
Gets the picture identifier. | |
getDefinitionId () | |
Gets the definition identifier. | |
setTermId ($term_id=0) | |
Sets the term id. | |
setPictureId ($picture_id=0) | |
Sets the picture id. | |
setDefinitionId ($definition_id=0) | |
Sets the definition id. | |
setTerm ($term="") | |
Sets the term. | |
setPicture ($picture="") | |
Sets the picture. | |
setDefinition ($definition="") | |
Sets the definition. | |
setPoints ($points=0.0) | |
Sets the points. |
Data Fields | |
$term | |
$points | |
$picture_or_definition | |
$term_id | |
$picture_or_definition_id |
Class for matching question answers.
ASS_AnswerSimple is a class for matching question answers
Definition at line 35 of file class.assAnswerMatching.php.
ASS_AnswerMatching::ASS_AnswerMatching | ( | $term = "" , |
|
$points = 0.0 , |
|||
$term_id = 0 , |
|||
$picture_or_definition = "" , |
|||
$picture_or_definition_id = 0 |
|||
) |
ASS_AnswerMatching constructor.
The constructor takes possible arguments an creates an instance of the ASS_AnswerMatching object.
string | $answertext | A string defining the answer text |
double | $points | The number of points given for the selected answer |
integer | $order | A nonnegative value representing a possible display or sort order |
string | $matchingtext | A string defining the matching text for the answer text public |
Definition at line 93 of file class.assAnswerMatching.php.
References $picture_or_definition, $picture_or_definition_id, $points, $term, and $term_id.
ASS_AnswerMatching::getDefinition | ( | ) |
Gets the definition.
Returns the definition
Definition at line 167 of file class.assAnswerMatching.php.
References $picture_or_definition.
ASS_AnswerMatching::getDefinitionId | ( | ) |
Gets the definition identifier.
Returns the definition identifier
Definition at line 191 of file class.assAnswerMatching.php.
References $picture_or_definition_id.
ASS_AnswerMatching::getPicture | ( | ) |
Gets the picture.
Returns the picture
Definition at line 155 of file class.assAnswerMatching.php.
References $picture_or_definition.
ASS_AnswerMatching::getPictureId | ( | ) |
Gets the picture identifier.
Returns the picture identifier
Definition at line 179 of file class.assAnswerMatching.php.
References $picture_or_definition_id.
ASS_AnswerMatching::getPoints | ( | ) |
Gets the points.
Returns the points
Definition at line 129 of file class.assAnswerMatching.php.
References $points.
ASS_AnswerMatching::getTerm | ( | ) |
Gets the term.
Returns the term
Definition at line 116 of file class.assAnswerMatching.php.
References $term.
ASS_AnswerMatching::getTermId | ( | ) |
Gets the term id.
Returns a nonnegative identifier for the term
Definition at line 142 of file class.assAnswerMatching.php.
References $term_id.
ASS_AnswerMatching::setDefinition | ( | $definition = "" | ) |
Sets the definition.
Sets the definition
string | $definition | Definition public |
Definition at line 283 of file class.assAnswerMatching.php.
ASS_AnswerMatching::setDefinitionId | ( | $definition_id = 0 | ) |
Sets the definition id.
Sets the nonnegative definition identifier which can be used for sorting or displaying matching pairs
integer | $definition_id | A nonnegative integer public |
Definition at line 238 of file class.assAnswerMatching.php.
ASS_AnswerMatching::setPicture | ( | $picture = "" | ) |
Sets the picture.
Sets the picture
string | $picture | Picture public |
Definition at line 269 of file class.assAnswerMatching.php.
ASS_AnswerMatching::setPictureId | ( | $picture_id = 0 | ) |
Sets the picture id.
Sets the nonnegative picture identifier which can be used for sorting or displaying matching pairs
integer | $picture_id | A nonnegative integer public |
Definition at line 221 of file class.assAnswerMatching.php.
ASS_AnswerMatching::setPoints | ( | $points = 0.0 | ) |
Sets the points.
Sets the points given for selecting the answer.
double | $points | The points given for the answer public |
Definition at line 298 of file class.assAnswerMatching.php.
References $points.
ASS_AnswerMatching::setTerm | ( | $term = "" | ) |
Sets the term.
Sets the term
string | $term | Term public |
Definition at line 255 of file class.assAnswerMatching.php.
References $term.
ASS_AnswerMatching::setTermId | ( | $term_id = 0 | ) |
Sets the term id.
Sets the nonnegative term identifier which can be used for sorting or displaying matching pairs
integer | $term_id | A nonnegative integer public |
Definition at line 204 of file class.assAnswerMatching.php.
References $term_id.
ASS_AnswerMatching::$picture_or_definition |
Definition at line 62 of file class.assAnswerMatching.php.
Referenced by ASS_AnswerMatching(), getDefinition(), and getPicture().
ASS_AnswerMatching::$picture_or_definition_id |
Definition at line 80 of file class.assAnswerMatching.php.
Referenced by ASS_AnswerMatching(), getDefinitionId(), and getPictureId().
ASS_AnswerMatching::$points |
Definition at line 53 of file class.assAnswerMatching.php.
Referenced by ASS_AnswerMatching(), getPoints(), and setPoints().
ASS_AnswerMatching::$term |
Definition at line 44 of file class.assAnswerMatching.php.
Referenced by ASS_AnswerMatching(), getTerm(), and setTerm().
ASS_AnswerMatching::$term_id |
Definition at line 71 of file class.assAnswerMatching.php.
Referenced by ASS_AnswerMatching(), getTermId(), and setTermId().