ILIAS  release_8 Revision v8.23
ilQTIRenderHotspot Class Reference
+ Collaboration diagram for ilQTIRenderHotspot:

Public Member Functions

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

Data Fields

const SHOWDRAW_NO = "1"
 
const SHOWDRAW_YES = "2"
 
string $showdraw = self::SHOWDRAW_NO
 
string $minnumber = null
 
string $maxnumber = null
 
array $response_labels = []
 
array $material = []
 

Detailed Description

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

Member Function Documentation

◆ addMaterial()

ilQTIRenderHotspot::addMaterial ( ilQTIMaterial  $a_material)

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

87  : void
88  {
89  $this->material[] = $a_material;
90  }

◆ addResponseLabel()

ilQTIRenderHotspot::addResponseLabel ( ilQTIResponseLabel  $a_response_label)

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

82  : void
83  {
84  $this->response_labels[] = $a_response_label;
85  }

◆ getMaxnumber()

ilQTIRenderHotspot::getMaxnumber ( )

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

References $maxnumber.

77  : ?string
78  {
79  return $this->maxnumber;
80  }

◆ getMinnumber()

ilQTIRenderHotspot::getMinnumber ( )

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

References $minnumber.

67  : ?string
68  {
69  return $this->minnumber;
70  }

◆ getShowdraw()

ilQTIRenderHotspot::getShowdraw ( )

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

References $showdraw.

57  : string
58  {
59  return $this->showdraw;
60  }

◆ setMaxnumber()

ilQTIRenderHotspot::setMaxnumber ( string  $a_maxnumber)

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

72  : void
73  {
74  $this->maxnumber = $a_maxnumber;
75  }

◆ setMinnumber()

ilQTIRenderHotspot::setMinnumber ( string  $a_minnumber)

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

62  : void
63  {
64  $this->minnumber = $a_minnumber;
65  }

◆ setShowdraw()

ilQTIRenderHotspot::setShowdraw ( string  $a_showdraw)

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

43  : void
44  {
45  switch (strtolower($a_showdraw)) {
46  case "1":
47  case "no":
48  $this->showdraw = self::SHOWDRAW_NO;
49  break;
50  case "2":
51  case "yes":
52  $this->showdraw = self::SHOWDRAW_YES;
53  break;
54  }
55  }

Field Documentation

◆ $material

array ilQTIRenderHotspot::$material = []

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

◆ $maxnumber

string ilQTIRenderHotspot::$maxnumber = null

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

Referenced by getMaxnumber().

◆ $minnumber

string ilQTIRenderHotspot::$minnumber = null

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

Referenced by getMinnumber().

◆ $response_labels

array ilQTIRenderHotspot::$response_labels = []

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

◆ $showdraw

string ilQTIRenderHotspot::$showdraw = self::SHOWDRAW_NO

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

Referenced by getShowdraw().

◆ SHOWDRAW_NO

const ilQTIRenderHotspot::SHOWDRAW_NO = "1"

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

◆ SHOWDRAW_YES

const ilQTIRenderHotspot::SHOWDRAW_YES = "2"

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


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