Public Member Functions | Data Fields

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.

Data Fields

 $solution_order

Detailed Description

Class for ordering question answers.

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

Author:
Helmut Schottmüller <helmut.schottmueller@mac.com>
Version:
Id:
class.assAnswerOrdering.php 10512 2006-04-11 16:08:35Z hschottm

class.assAnswerOrdering.php Assessment

See also:
ASS_AnswerSimple

Definition at line 38 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 $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
integer $solution_order An integer value representing the correct order of that answer in the solution of a question public

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

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

  {
    $this->ASS_AnswerSimple($answertext, $points, $order);
    $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 82 of file class.assAnswerOrdering.php.

                              {
    return $this->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_order An integer value representing the correct order of that answer in the solution of a question public
See also:
$solution_order

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

References $solution_order.

                                                 {
    $this->solution_order = $solution_order;
  }


Field Documentation

ASS_AnswerOrdering::$solution_order

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

Referenced by ASS_AnswerOrdering(), and setSolutionOrder().


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