Public Member Functions | Data Fields

ASS_AnswerBinaryStateImage Class Reference

Class for answers with a binary state indicator. More...

Inheritance diagram for ASS_AnswerBinaryStateImage:
Collaboration diagram for ASS_AnswerBinaryStateImage:

Public Member Functions

 ASS_AnswerBinaryStateImage ($answertext="", $points=0.0, $order=0, $state=0, $a_image="", $id=-1)
 ASS_AnswerBinaryStateImage constructor.
 getImage ()
 Gets the image filename.
 setImage ($a_image=0)
 Sets the image filename.

Data Fields

 $image

Detailed Description

Class for answers with a binary state indicator.

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

Author:
Helmut Schottmüller <helmut.schottmueller@mac.com>
Version:
Id:
class.assAnswerBinaryStateImage.php 10662 2006-04-20 21:21:38Z hschottm

class.assAnswerBinaryStateImage.php Assessment

See also:
ASS_AnswerSimple

Definition at line 38 of file class.assAnswerBinaryStateImage.php.


Member Function Documentation

ASS_AnswerBinaryStateImage::ASS_AnswerBinaryStateImage ( answertext = "",
points = 0.0,
order = 0,
state = 0,
a_image = "",
id = -1 
)

ASS_AnswerBinaryStateImage constructor.

The constructor takes possible arguments an creates an instance of the ASS_AnswerBinaryStateImage object.

Parameters:
string $answertext A string defining the answer text
double $points The number of points given for the selected answer
integer $state A integer value indicating the state of the answer
integer $order A nonnegative value representing a possible display or sort order
string $a_image The image filename public

Definition at line 60 of file class.assAnswerBinaryStateImage.php.

References ASS_AnswerSimple::$answertext, ASS_AnswerSimple::$id, ASS_AnswerSimple::$order, ASS_AnswerSimple::$points, ASS_AnswerBinaryState::$state, and ASS_AnswerBinaryState::ASS_AnswerBinaryState().

  {
    $this->ASS_AnswerBinaryState($answertext, $points, $order, $state, $id);
    $this->image = $a_image;
  }

Here is the call graph for this function:

ASS_AnswerBinaryStateImage::getImage (  ) 

Gets the image filename.

Returns the image filename

Returns:
string The image filename public
See also:
$image

Definition at line 83 of file class.assAnswerBinaryStateImage.php.

        {
    return $this->image;
  }

ASS_AnswerBinaryStateImage::setImage ( a_image = 0  ) 

Sets the image filename.

Sets the image filename

Parameters:
string $a_image The image filename public
See also:
$image

Definition at line 97 of file class.assAnswerBinaryStateImage.php.

  {
    $this->image = $a_image;
  }


Field Documentation

ASS_AnswerBinaryStateImage::$image

Definition at line 46 of file class.assAnswerBinaryStateImage.php.


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