ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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.

References array, and SHOWDRAW_NO.

44  {
45  $this->showdraw = SHOWDRAW_NO;
46  $this->response_labels = array();
47  $this->material = array();
48  }
const SHOWDRAW_NO
Create styles array
The data for the language used.

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.

86  {
87  return $this->maxnumber;
88  }

◆ getMinnumber()

ilQTIRenderHotspot::getMinnumber ( )

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

References $minnumber.

76  {
77  return $this->minnumber;
78  }

◆ getShowdraw()

ilQTIRenderHotspot::getShowdraw ( )

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

References $showdraw.

66  {
67  return $this->showdraw;
68  }

◆ 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.

References SHOWDRAW_NO, and SHOWDRAW_YES.

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_NO
const 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: