ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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

 ASS_AnswerMultipleResponseImage ($answertext="", $points_checked=0.0, $order=0, $points_unchecked=0, $a_image="", $id=-1)
 ASS_AnswerMultipleResponse constructor.
 getImage ()
 Gets the image filename.
 setImage ($a_image=0)
 Sets the image filename.
- Public Member Functions inherited from ASS_AnswerMultipleResponse
 ASS_AnswerMultipleResponse ($answertext="", $points_checked=0.0, $order=0, $points_unchecked=0, $id=-1)
 ASS_AnswerMultipleResponse constructor.
 getPointsUnchecked ()
 Returns the points for an unchecked answer.
 setPointsUnchecked ($points_unchecked=0.0)
 Sets the points for an unchecked answer.
 setPointsChecked ($points_checked)
 getPointsChecked ()
- 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

 $image
- Data Fields inherited from ASS_AnswerMultipleResponse
 $points_unchecked
- Data Fields 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:
class.assAnswerMultipleResponseImage.php 12484 2006-11-09 10:52:16Z hschottm
See Also
ASS_AnswerSimple

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

Member Function Documentation

ASS_AnswerMultipleResponseImage::ASS_AnswerMultipleResponseImage (   $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 61 of file class.assAnswerMultipleResponseImage.php.

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

{
$this->image = $a_image;
}

+ Here is the call graph for this function:

ASS_AnswerMultipleResponseImage::getImage ( )

Gets the image filename.

Returns the image filename

Returns
string The image filename public
See Also
$image

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

References $image.

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

{
$this->image = $a_image;
}

Field Documentation

ASS_AnswerMultipleResponseImage::$image

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

Referenced by getImage().


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