Public Member Functions | Data Fields

ASS_AnswerImagemap Class Reference

Class for true/false or yes/no answers. More...

Inheritance diagram for ASS_AnswerImagemap:
Collaboration diagram for ASS_AnswerImagemap:

Public Member Functions

 ASS_AnswerImagemap ($answertext="", $points=0.0, $order=0, $coords="", $area="")
 ASS_AnswerImagemap constructor.
 getCoords ()
 Gets the coordinates of an image map.
 setCoords ($coords="")
 Sets the coordinates of an image map.
 getArea ()
 Gets the area of an image map.
 setArea ($area="")
 Sets the area of an image map.

Data Fields

 $coords
 $area

Detailed Description

Class for true/false or yes/no answers.

ASS_AnswerImagemap is a class for true/false or yes/no answers used for example in multiple choice tests.

Author:
Helmut Schottmüller <helmut.schottmueller@mac.com>
Version:
Id:
class.assAnswerImagemap.php 10675 2006-04-23 20:22:45Z hschottm

class.assAnswerImagemap.php Assessment

See also:
ASS_AnswerSimple
ASS_AnswerTrueFalse

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


Member Function Documentation

ASS_AnswerImagemap::ASS_AnswerImagemap ( answertext = "",
points = 0.0,
order = 0,
coords = "",
area = "" 
)

ASS_AnswerImagemap constructor.

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

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

Definition at line 69 of file class.assAnswerImagemap.php.

References ASS_AnswerSimple::$answertext, $area, $coords, ASS_AnswerSimple::$order, ASS_AnswerSimple::$points, and ASS_AnswerBinaryState::ASS_AnswerBinaryState().

  {
    $this->ASS_AnswerBinaryState($answertext, $points, $order, 1);
    $this->coords = $coords;
                $this->area = $area;
  }

Here is the call graph for this function:

ASS_AnswerImagemap::getArea (  ) 

Gets the area of an image map.

Gets the area of an image map

Returns:
string area public
See also:
$area

Definition at line 121 of file class.assAnswerImagemap.php.

                     {
    return $this->area;
  }

ASS_AnswerImagemap::getCoords (  ) 

Gets the coordinates of an image map.

Gets the coordinates of an image map

Returns:
string coords public
See also:
$coords

Definition at line 92 of file class.assAnswerImagemap.php.

                       {
                $this->coords = preg_replace("/\s/", "", $this->coords);
    return $this->coords;
  }

ASS_AnswerImagemap::setArea ( area = ""  ) 

Sets the area of an image map.

Sets the area of an image map

Parameters:
string $area public
See also:
$area

Definition at line 135 of file class.assAnswerImagemap.php.

References $area.

                             {
    $this->area=$area;
  }

ASS_AnswerImagemap::setCoords ( coords = ""  ) 

Sets the coordinates of an image map.

Sets the coordinates of an image map

Parameters:
string $coords public
See also:
$coords

Definition at line 107 of file class.assAnswerImagemap.php.

References $coords.

                                 {
                $coords = preg_replace("/\s/", "", $coords);
    $this->coords=$coords;
  }


Field Documentation

ASS_AnswerImagemap::$area

Definition at line 56 of file class.assAnswerImagemap.php.

Referenced by ASS_AnswerImagemap(), and setArea().

ASS_AnswerImagemap::$coords

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

Referenced by ASS_AnswerImagemap(), and setCoords().


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