ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ASS_AnswerOrdering Class Reference

Class for ordering question answers. More...

+ Inheritance diagram for ASS_AnswerOrdering:
+ Collaboration diagram for ASS_AnswerOrdering:

Public Member Functions

 ASS_AnswerOrdering ($answertext="", $points=0.0, $order=0, $solution_order=0)
 ASS_AnswerOrdering constructor.
 getSolutionOrder ()
 Gets the solution order.
 setSolutionOrder ($solution_order=0)
 Sets the solution order.
- 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.

Data Fields

 $solution_order
- Data Fields inherited from ASS_AnswerSimple
 $answertext
 $points
 $order
 $id

Detailed Description

Class for ordering question answers.

ASS_AnswerOrdering is a class for ordering question answers used in ordering questions.

Author
Helmut Schottmüller helmu.nosp@m.t.sc.nosp@m.hottm.nosp@m.uell.nosp@m.er@ma.nosp@m.c.co.nosp@m.m
Version
Id:
class.assAnswerOrdering.php 12484 2006-11-09 10:52:16Z hschottm
See Also
ASS_AnswerSimple

Definition at line 37 of file class.assAnswerOrdering.php.

Member Function Documentation

ASS_AnswerOrdering::ASS_AnswerOrdering (   $answertext = "",
  $points = 0.0,
  $order = 0,
  $solution_order = 0 
)

ASS_AnswerOrdering constructor.

The constructor takes possible arguments an creates an instance of the ASS_AnswerOrdering object.

Parameters
string$answertextA string defining the answer text
double$pointsThe number of points given for the selected answer
boolean$correctnessA boolean value indicating the correctness of the answer
integer$orderA nonnegative value representing a possible display or sort order
integer$solution_orderAn integer value representing the correct order of that answer in the solution of a question public

Definition at line 60 of file class.assAnswerOrdering.php.

References ASS_AnswerSimple\$answertext, ASS_AnswerSimple\$order, ASS_AnswerSimple\$points, $solution_order, and ASS_AnswerSimple\ASS_AnswerSimple().

{
$this->solution_order = $solution_order;
}

+ Here is the call graph for this function:

ASS_AnswerOrdering::getSolutionOrder ( )

Gets the solution order.

Returns the solution order of the answer

Returns
integer The solution order value public
See Also
$solution_order

Definition at line 81 of file class.assAnswerOrdering.php.

References $solution_order.

{
}
ASS_AnswerOrdering::setSolutionOrder (   $solution_order = 0)

Sets the solution order.

Sets the solution order of the answer using an integer value

Parameters
integer$solution_orderAn integer value representing the correct order of that answer in the solution of a question public
See Also
$solution_order

Definition at line 94 of file class.assAnswerOrdering.php.

References $solution_order.

{
$this->solution_order = $solution_order;
}

Field Documentation

ASS_AnswerOrdering::$solution_order

The documentation for this class was generated from the following file: