Public Member Functions | Data Fields

ASS_AnswerMatching Class Reference

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

Detailed Description

Class for matching question answers.

ASS_AnswerSimple is a class for matching question answers

Author:
Helmut Schottmüller <hschottm@tzi.de>
Version:
Id:
class.assAnswerMatching.php 4949 2004-09-14 19:13:58Z hschottm

class.assAnswerMatching.php Assessment

Definition at line 34 of file class.assAnswerMatching.php.


Member Function Documentation

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.

Parameters:
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 92 of file class.assAnswerMatching.php.

References $picture_or_definition, $picture_or_definition_id, $points, $term, and $term_id.

  {
    $this->term = $term;
    $this->term_id = $term_id;
                $this->picture_or_definition = $picture_or_definition;
                $this->picture_or_definition_id = $picture_or_definition_id;
                $this->points = $points;
        }

ASS_AnswerMatching::getDefinition (  ) 

Gets the definition.

Returns the definition

Returns:
string definition public
See also:
$picture_or_definition

Definition at line 171 of file class.assAnswerMatching.php.

                           {
    return $this->picture_or_definition;
  }

ASS_AnswerMatching::getDefinitionId (  ) 

Gets the definition identifier.

Returns the definition identifier

Returns:
integer definition identifier public
See also:
$picture_or_definition_id

Definition at line 197 of file class.assAnswerMatching.php.

                             {
    return $this->picture_or_definition_id;
  }

ASS_AnswerMatching::getPicture (  ) 

Gets the picture.

Returns the picture

Returns:
string picture public
See also:
$picture_or_definition

Definition at line 158 of file class.assAnswerMatching.php.

                        {
    return $this->picture_or_definition;
  }

ASS_AnswerMatching::getPictureId (  ) 

Gets the picture identifier.

Returns the picture identifier

Returns:
integer picture identifier public
See also:
$picture_or_definition_id

Definition at line 184 of file class.assAnswerMatching.php.

                          {
    return $this->picture_or_definition_id;
  }

ASS_AnswerMatching::getPoints (  ) 

Gets the points.

Returns the points

Returns:
double points public
See also:
$points

Definition at line 130 of file class.assAnswerMatching.php.

        {
                return $this->points;
        }

ASS_AnswerMatching::getTerm (  ) 

Gets the term.

Returns the term

Returns:
string term public
See also:
$term

Definition at line 116 of file class.assAnswerMatching.php.

        {
                return $this->term;
        }

ASS_AnswerMatching::getTermId (  ) 

Gets the term id.

Returns a nonnegative identifier for the term

Returns:
integer order public
See also:
$term_id

Definition at line 144 of file class.assAnswerMatching.php.

        {
                return $this->term_id;
        }

ASS_AnswerMatching::setDefinition ( definition = ""  ) 

Sets the definition.

Sets the definition

Parameters:
string $definition Definition public
See also:
$picture_or_definition

Definition at line 289 of file class.assAnswerMatching.php.

        {
                $this->picture_or_definition = $definition;
        }

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

Parameters:
integer $definition_id A nonnegative integer public
See also:
$picture_or_definition_id

Definition at line 244 of file class.assAnswerMatching.php.

        {
                if ($definition_id >= 0)
                {
                        $this->picture_or_definition_id = $definition_id;
                }
        }

ASS_AnswerMatching::setPicture ( picture = ""  ) 

Sets the picture.

Sets the picture

Parameters:
string $picture Picture public
See also:
$picture_or_definition

Definition at line 275 of file class.assAnswerMatching.php.

        {
                $this->picture_or_definition = $picture;
        }

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

Parameters:
integer $picture_id A nonnegative integer public
See also:
$picture_or_definition_id

Definition at line 227 of file class.assAnswerMatching.php.

        {
                if ($picture_id >= 0)
                {
                        $this->picture_or_definition_id = $picture_id;
                }
        }

ASS_AnswerMatching::setPoints ( points = 0.0  ) 

Sets the points.

Sets the points given for selecting the answer.

Parameters:
double $points The points given for the answer public
See also:
$points

Definition at line 304 of file class.assAnswerMatching.php.

References $points.

        {
                $this->points = $points;
        }

ASS_AnswerMatching::setTerm ( term = ""  ) 

Sets the term.

Sets the term

Parameters:
string $term Term public
See also:
$term

Definition at line 261 of file class.assAnswerMatching.php.

References $term.

        {
                $this->term = $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

Parameters:
integer $term_id A nonnegative integer public
See also:
$term_id

Definition at line 210 of file class.assAnswerMatching.php.

References $term_id.

        {
                if ($term_id >= 0)
                {
                        $this->term_id = $term_id;
                }
        }


Field Documentation

ASS_AnswerMatching::$picture_or_definition

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

Referenced by ASS_AnswerMatching().

ASS_AnswerMatching::$picture_or_definition_id

Definition at line 79 of file class.assAnswerMatching.php.

Referenced by ASS_AnswerMatching().

ASS_AnswerMatching::$points

Definition at line 52 of file class.assAnswerMatching.php.

Referenced by ASS_AnswerMatching(), and setPoints().

ASS_AnswerMatching::$term

Definition at line 43 of file class.assAnswerMatching.php.

Referenced by ASS_AnswerMatching(), and setTerm().

ASS_AnswerMatching::$term_id

Definition at line 70 of file class.assAnswerMatching.php.

Referenced by ASS_AnswerMatching(), and setTermId().


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