ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilQTIRenderHotspot Class Reference
+ Collaboration diagram for ilQTIRenderHotspot:

Public Member Functions

 __construct ()
 
 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.

Constructor & Destructor Documentation

◆ __construct()

ilQTIRenderHotspot::__construct ( )

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.

Member Function Documentation

◆ addMaterial()

ilQTIRenderHotspot::addMaterial (   $a_material)

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

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

◆ addResponseLabel()

ilQTIRenderHotspot::addResponseLabel (   $a_response_label)

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

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

◆ getMaxnumber()

ilQTIRenderHotspot::getMaxnumber ( )

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

References $maxnumber.

◆ getMinnumber()

ilQTIRenderHotspot::getMinnumber ( )

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

References $minnumber.

◆ getShowdraw()

ilQTIRenderHotspot::getShowdraw ( )

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

References $showdraw.

◆ setMaxnumber()

ilQTIRenderHotspot::setMaxnumber (   $a_maxnumber)

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

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

◆ setMinnumber()

ilQTIRenderHotspot::setMinnumber (   $a_minnumber)

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

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

◆ setShowdraw()

ilQTIRenderHotspot::setShowdraw (   $a_showdraw)

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

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