ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ASS_AnswerMatching Class Reference

Class for matching question answers. More...

+ Collaboration diagram for ASS_AnswerMatching:

Public Member Functions

 ASS_AnswerMatching ($points=0.0, $term_id=0, $picture_or_definition="", $picture_or_definition_id=0)
 ASS_AnswerMatching constructor.
 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.
 setPicture ($picture="")
 Sets the picture.
 setDefinition ($definition="")
 Sets the definition.
 setPoints ($points=0.0)
 Sets the points.

Data Fields

 $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 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.assAnswerMatching.php 44245 2013-08-17 11:15:45Z mbecker

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

Member Function Documentation

ASS_AnswerMatching::ASS_AnswerMatching (   $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$answertextA string defining the answer text
double$pointsThe number of points given for the selected answer
integer$orderA nonnegative value representing a possible display or sort order
string$matchingtextA string defining the matching text for the answer text public

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

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

{
$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 123 of file class.assAnswerMatching.php.

References $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 147 of file class.assAnswerMatching.php.

References $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 111 of file class.assAnswerMatching.php.

References $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 135 of file class.assAnswerMatching.php.

References $picture_or_definition_id.

ASS_AnswerMatching::getPoints ( )

Gets the points.

Returns the points

Returns
double points public
See Also
$points

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

References $points.

{
return $this->points;
}
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 98 of file class.assAnswerMatching.php.

References $term_id.

{
}
ASS_AnswerMatching::setDefinition (   $definition = "")

Sets the definition.

Sets the definition

Parameters
string$definitionDefinition public
See Also
$picture_or_definition

Definition at line 225 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_idA nonnegative integer public
See Also
$picture_or_definition_id

Definition at line 194 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$picturePicture public
See Also
$picture_or_definition

Definition at line 211 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_idA nonnegative integer public
See Also
$picture_or_definition_id

Definition at line 177 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$pointsThe points given for the answer public
See Also
$points

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

References $points.

{
$this->points = $points;
}
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_idA nonnegative integer public
See Also
$term_id

Definition at line 160 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 33 of file class.assAnswerMatching.php.

Referenced by ASS_AnswerMatching(), getDefinition(), and getPicture().

ASS_AnswerMatching::$picture_or_definition_id

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

Referenced by ASS_AnswerMatching(), getDefinitionId(), and getPictureId().

ASS_AnswerMatching::$points

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

Referenced by ASS_AnswerMatching(), getPoints(), and setPoints().

ASS_AnswerMatching::$term_id

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

Referenced by ASS_AnswerMatching(), getTermId(), and setTermId().


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