ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilQTIRenderHotspot Class Reference
+ Collaboration diagram for ilQTIRenderHotspot:

Public Member Functions

 ilQTIRenderHotspot ()
 
 setShowdraw ($a_showdraw)
 
 getShowdraw ()
 
 setMinnumber ($a_minnumber)
 
 getMinnumber ()
 
 setMaxnumber ($a_maxnumber)
 
 getMaxnumber ()
 
 addResponseLabel ($a_response_label)
 
 addMaterial ($a_material)
 

Data Fields

 $showdraw
 
 $minnumber
 
 $maxnumber
 
 $response_labels
 
 $material
 

Detailed Description

Definition at line 35 of file class.ilQTIRenderHotspot.php.

Member Function Documentation

◆ addMaterial()

ilQTIRenderHotspot::addMaterial (   $a_material)

Definition at line 95 of file class.ilQTIRenderHotspot.php.

96 {
97 array_push($this->material, $a_material);
98 }

◆ addResponseLabel()

ilQTIRenderHotspot::addResponseLabel (   $a_response_label)

Definition at line 90 of file class.ilQTIRenderHotspot.php.

91 {
92 array_push($this->response_labels, $a_response_label);
93 }

◆ getMaxnumber()

ilQTIRenderHotspot::getMaxnumber ( )

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

References $maxnumber.

◆ getMinnumber()

ilQTIRenderHotspot::getMinnumber ( )

Definition at line 75 of file class.ilQTIRenderHotspot.php.

References $minnumber.

◆ getShowdraw()

ilQTIRenderHotspot::getShowdraw ( )

Definition at line 65 of file class.ilQTIRenderHotspot.php.

References $showdraw.

◆ ilQTIRenderHotspot()

ilQTIRenderHotspot::ilQTIRenderHotspot ( )

Definition at line 43 of file class.ilQTIRenderHotspot.php.

44 {
45 $this->showdraw = SHOWDRAW_NO;
46 $this->response_labels = array();
47 $this->material = array();
48 }
const SHOWDRAW_NO

References SHOWDRAW_NO.

◆ setMaxnumber()

ilQTIRenderHotspot::setMaxnumber (   $a_maxnumber)

Definition at line 80 of file class.ilQTIRenderHotspot.php.

81 {
82 $this->maxnumber = $a_maxnumber;
83 }

◆ setMinnumber()

ilQTIRenderHotspot::setMinnumber (   $a_minnumber)

Definition at line 70 of file class.ilQTIRenderHotspot.php.

71 {
72 $this->minnumber = $a_minnumber;
73 }

◆ setShowdraw()

ilQTIRenderHotspot::setShowdraw (   $a_showdraw)

Definition at line 50 of file class.ilQTIRenderHotspot.php.

51 {
52 switch (strtolower($a_showdraw))
53 {
54 case "1":
55 case "no":
56 $this->showdraw = SHOWDRAW_NO;
57 break;
58 case "2":
59 case "yes":
60 $this->showdraw = SHOWDRAW_YES;
61 break;
62 }
63 }
const SHOWDRAW_YES

References SHOWDRAW_NO, and SHOWDRAW_YES.

Field Documentation

◆ $material

ilQTIRenderHotspot::$material

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

◆ $maxnumber

ilQTIRenderHotspot::$maxnumber

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

Referenced by getMaxnumber().

◆ $minnumber

ilQTIRenderHotspot::$minnumber

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

Referenced by getMinnumber().

◆ $response_labels

ilQTIRenderHotspot::$response_labels

Definition at line 40 of file class.ilQTIRenderHotspot.php.

◆ $showdraw

ilQTIRenderHotspot::$showdraw

Definition at line 37 of file class.ilQTIRenderHotspot.php.

Referenced by getShowdraw().


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