ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f87
ASS_AnswerMultipleResponseImage Class Reference

ASS_AnswerBinaryStateImage is a class for answers with a binary state indicator (checked/unchecked, set/unset) and an image file. More...

+ Inheritance diagram for ASS_AnswerMultipleResponseImage:
+ Collaboration diagram for ASS_AnswerMultipleResponseImage:

Public Member Functions

 __construct ( $answertext="", $points_checked=0.0, $order=0, $points_unchecked=0, $a_image="", $id=-1)
 ASS_AnswerMultipleResponse constructor. More...
 
 getImage ()
 Gets the image filename. More...
 
 setImage ($a_image=0)
 Sets the image filename. More...
 
- Public Member Functions inherited from ASS_AnswerMultipleResponse
 __construct ( $answertext="", $points_checked=0.0, $order=0, $points_unchecked=0, $id=-1)
 ASS_AnswerMultipleResponse constructor. More...
 
 getPointsUnchecked ()
 Returns the points for an unchecked answer. More...
 
 setPointsUnchecked ($points_unchecked=0.0)
 Sets the points for an unchecked answer. More...
 
 setPointsChecked ($points_checked)
 
 getPointsChecked ()
 
- Public Member Functions inherited from ASS_AnswerSimple
 __construct ( $answertext="", $points=0.0, $order=0, $id=-1)
 ASS_AnswerSimple constructor. More...
 
 getId ()
 Gets the answer id. More...
 
 getAnswertext ()
 Gets the answer text. More...
 
 getPoints ()
 Gets the points. More...
 
 checkPoints ($a_points)
 Checks, if the point value is numeric. More...
 
 getOrder ()
 Gets the sort/display order. More...
 
 setOrder ($order=0)
 Sets the order. More...
 
 setId ($id=-1)
 Sets the answer id. More...
 
 setAnswertext ($answertext="")
 Sets the answer text. More...
 
 setPoints ($points=0.0)
 Sets the points. More...
 

Data Fields

 $image
 
- Data Fields inherited from ASS_AnswerMultipleResponse
 $points_unchecked
 

Additional Inherited Members

- Protected Attributes inherited from ASS_AnswerSimple
 $answertext
 
 $points
 
 $order
 
 $id
 

Detailed Description

ASS_AnswerBinaryStateImage is a class for answers with a binary state indicator (checked/unchecked, set/unset) and an image file.

ASS_AnswerBinaryStateImage is a class for answers with a binary state indicator (checked/unchecked, set/unset) and an image file

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$
See also
ASS_AnswerSimple

Definition at line 19 of file class.assAnswerMultipleResponseImage.php.

Constructor & Destructor Documentation

◆ __construct()

ASS_AnswerMultipleResponseImage::__construct (   $answertext = "",
  $points_checked = 0.0,
  $order = 0,
  $points_unchecked = 0,
  $a_image = "",
  $id = -1 
)

ASS_AnswerMultipleResponse constructor.

The constructor takes possible arguments an creates an instance of the ASS_AnswerMultipleResponse 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
double$points_uncheckedThe points when the answer is not checked
string$a_imageThe image filename public

Definition at line 41 of file class.assAnswerMultipleResponseImage.php.

References ASS_AnswerSimple\$answertext, ASS_AnswerSimple\$id, ASS_AnswerSimple\$order, and ASS_AnswerMultipleResponse\$points_unchecked.

49  {
50  parent::__construct($answertext, $points_checked, $order, $points_unchecked, $id);
51  $this->image = $a_image;
52  }

Member Function Documentation

◆ getImage()

ASS_AnswerMultipleResponseImage::getImage ( )

Gets the image filename.

Returns the image filename

Returns
string The image filename public
See also
$image

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

References $image.

◆ setImage()

ASS_AnswerMultipleResponseImage::setImage (   $a_image = 0)

Sets the image filename.

Sets the image filename

Parameters
string$a_imageThe image filename public
See also
$image

Definition at line 78 of file class.assAnswerMultipleResponseImage.php.

79  {
80  $this->image = $a_image;
81  }

Field Documentation

◆ $image

ASS_AnswerMultipleResponseImage::$image

Definition at line 27 of file class.assAnswerMultipleResponseImage.php.

Referenced by getImage().


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