ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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 29 of file class.ilQTIRenderHotspot.php.

Member Function Documentation

◆ addMaterial()

ilQTIRenderHotspot::addMaterial ( ilQTIMaterial  $a_material)

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

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

◆ addResponseLabel()

ilQTIRenderHotspot::addResponseLabel ( ilQTIResponseLabel  $a_response_label)

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

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

◆ getMaxnumber()

ilQTIRenderHotspot::getMaxnumber ( )

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

References $maxnumber.

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

◆ getMinnumber()

ilQTIRenderHotspot::getMinnumber ( )

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

References $minnumber.

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

◆ getShowdraw()

ilQTIRenderHotspot::getShowdraw ( )

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

References $showdraw.

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

◆ setMaxnumber()

ilQTIRenderHotspot::setMaxnumber ( string  $a_maxnumber)

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

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

◆ setMinnumber()

ilQTIRenderHotspot::setMinnumber ( string  $a_minnumber)

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

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

◆ setShowdraw()

ilQTIRenderHotspot::setShowdraw ( string  $a_showdraw)

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

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

Field Documentation

◆ $material

array ilQTIRenderHotspot::$material = []

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

◆ $maxnumber

string ilQTIRenderHotspot::$maxnumber = null

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

Referenced by getMaxnumber().

◆ $minnumber

string ilQTIRenderHotspot::$minnumber = null

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

Referenced by getMinnumber().

◆ $response_labels

array ilQTIRenderHotspot::$response_labels = []

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

◆ $showdraw

string ilQTIRenderHotspot::$showdraw = self::SHOWDRAW_NO

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

Referenced by getShowdraw().

◆ SHOWDRAW_NO

const ilQTIRenderHotspot::SHOWDRAW_NO = "1"

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

◆ SHOWDRAW_YES

const ilQTIRenderHotspot::SHOWDRAW_YES = "2"

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


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