ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilQTIResponseLabel Class Reference
+ Collaboration diagram for ilQTIResponseLabel:

Public Member Functions

 setRshuffle (string $a_rshuffle)
 
 getRshuffle ()
 
 setRarea (string $a_rarea)
 
 getRarea ()
 
 setRrange (string $a_rrange)
 
 getRrange ()
 
 setLabelrefid (string $a_labelrefid)
 
 getLabelrefid ()
 
 setIdent (string $a_ident)
 
 getIdent ()
 
 setMatchGroup (string $a_match_group)
 
 getMatchGroup ()
 
 setMatchMax (string $a_match_max)
 
 getMatchMax ()
 
 addMaterial (ilQTIMaterial $a_material)
 
 addFlow_mat (ilQTIFlowMat $a_flow_mat)
 
 setContent (string $a_content)
 
 getContent ()
 

Data Fields

const RSHUFFLE_NO = "1"
 
const RSHUFFLE_YES = "2"
 
const RAREA_ELLIPSE = "1"
 
const RAREA_RECTANGLE = "2"
 
const RAREA_BOUNDED = "3"
 
const RRANGE_EXACT = "1"
 
const RRANGE_RANGE = "2"
 
string $rshuffle = null
 
string $rarea = null
 
string $rrange = null
 
string $labelrefid = null
 
string $ident = null
 
string $match_group = null
 
string $match_max = null
 
array $material = []
 
array $flow_mat = []
 
string $content = null
 

Detailed Description

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

Member Function Documentation

◆ addFlow_mat()

ilQTIResponseLabel::addFlow_mat ( ilQTIFlowMat  $a_flow_mat)

Definition at line 161 of file class.ilQTIResponseLabel.php.

161  : void
162  {
163  $this->flow_mat[] = $a_flow_mat;
164  }

◆ addMaterial()

ilQTIResponseLabel::addMaterial ( ilQTIMaterial  $a_material)

Definition at line 156 of file class.ilQTIResponseLabel.php.

156  : void
157  {
158  $this->material[] = $a_material;
159  }

◆ getContent()

ilQTIResponseLabel::getContent ( )

Definition at line 171 of file class.ilQTIResponseLabel.php.

References $content.

171  : ?string
172  {
173  return $this->content;
174  }

◆ getIdent()

ilQTIResponseLabel::getIdent ( )

Definition at line 131 of file class.ilQTIResponseLabel.php.

References $ident.

131  : ?string
132  {
133  return $this->ident;
134  }

◆ getLabelrefid()

ilQTIResponseLabel::getLabelrefid ( )

Definition at line 121 of file class.ilQTIResponseLabel.php.

References $labelrefid.

121  : ?string
122  {
123  return $this->labelrefid;
124  }

◆ getMatchGroup()

ilQTIResponseLabel::getMatchGroup ( )

Definition at line 141 of file class.ilQTIResponseLabel.php.

References $match_group.

141  : ?string
142  {
143  return $this->match_group;
144  }

◆ getMatchMax()

ilQTIResponseLabel::getMatchMax ( )

Definition at line 151 of file class.ilQTIResponseLabel.php.

References $match_max.

151  : ?string
152  {
153  return $this->match_max;
154  }

◆ getRarea()

ilQTIResponseLabel::getRarea ( )

Definition at line 92 of file class.ilQTIResponseLabel.php.

References $rarea.

92  : ?string
93  {
94  return $this->rarea;
95  }

◆ getRrange()

ilQTIResponseLabel::getRrange ( )

Definition at line 111 of file class.ilQTIResponseLabel.php.

References $rrange.

111  : ?string
112  {
113  return $this->rrange;
114  }

◆ getRshuffle()

ilQTIResponseLabel::getRshuffle ( )

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

References $rshuffle.

69  : ?string
70  {
71  return $this->rshuffle;
72  }

◆ setContent()

ilQTIResponseLabel::setContent ( string  $a_content)

Definition at line 166 of file class.ilQTIResponseLabel.php.

166  : void
167  {
168  $this->content = $a_content;
169  }

◆ setIdent()

ilQTIResponseLabel::setIdent ( string  $a_ident)

Definition at line 126 of file class.ilQTIResponseLabel.php.

126  : void
127  {
128  $this->ident = $a_ident;
129  }

◆ setLabelrefid()

ilQTIResponseLabel::setLabelrefid ( string  $a_labelrefid)

Definition at line 116 of file class.ilQTIResponseLabel.php.

116  : void
117  {
118  $this->labelrefid = $a_labelrefid;
119  }

◆ setMatchGroup()

ilQTIResponseLabel::setMatchGroup ( string  $a_match_group)

Definition at line 136 of file class.ilQTIResponseLabel.php.

136  : void
137  {
138  $this->match_group = $a_match_group;
139  }

◆ setMatchMax()

ilQTIResponseLabel::setMatchMax ( string  $a_match_max)

Definition at line 146 of file class.ilQTIResponseLabel.php.

146  : void
147  {
148  $this->match_max = $a_match_max;
149  }

◆ setRarea()

ilQTIResponseLabel::setRarea ( string  $a_rarea)

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

74  : void
75  {
76  switch (strtolower($a_rarea)) {
77  case "1":
78  case "ellipse":
79  $this->rarea = self::RAREA_ELLIPSE;
80  break;
81  case "2":
82  case "rectangle":
83  $this->rarea = self::RAREA_RECTANGLE;
84  break;
85  case "3":
86  case "bounded":
87  $this->rarea = self::RAREA_BOUNDED;
88  break;
89  }
90  }

◆ setRrange()

ilQTIResponseLabel::setRrange ( string  $a_rrange)

Definition at line 97 of file class.ilQTIResponseLabel.php.

97  : void
98  {
99  switch (strtolower($a_rrange)) {
100  case "1":
101  case "excact":
102  $this->rrange = self::RRANGE_EXACT;
103  break;
104  case "2":
105  case "range":
106  $this->rrange = self::RRANGE_RANGE;
107  break;
108  }
109  }

◆ setRshuffle()

ilQTIResponseLabel::setRshuffle ( string  $a_rshuffle)

Definition at line 55 of file class.ilQTIResponseLabel.php.

55  : void
56  {
57  switch (strtolower($a_rshuffle)) {
58  case "1":
59  case "no":
60  $this->rshuffle = self::RSHUFFLE_NO;
61  break;
62  case "2":
63  case "yes":
64  $this->rshuffle = self::RSHUFFLE_YES;
65  break;
66  }
67  }

Field Documentation

◆ $content

string ilQTIResponseLabel::$content = null

Definition at line 53 of file class.ilQTIResponseLabel.php.

Referenced by getContent().

◆ $flow_mat

array ilQTIResponseLabel::$flow_mat = []

Definition at line 52 of file class.ilQTIResponseLabel.php.

◆ $ident

string ilQTIResponseLabel::$ident = null

Definition at line 46 of file class.ilQTIResponseLabel.php.

Referenced by getIdent().

◆ $labelrefid

string ilQTIResponseLabel::$labelrefid = null

Definition at line 45 of file class.ilQTIResponseLabel.php.

Referenced by getLabelrefid().

◆ $match_group

string ilQTIResponseLabel::$match_group = null

Definition at line 47 of file class.ilQTIResponseLabel.php.

Referenced by getMatchGroup().

◆ $match_max

string ilQTIResponseLabel::$match_max = null

Definition at line 48 of file class.ilQTIResponseLabel.php.

Referenced by getMatchMax().

◆ $material

array ilQTIResponseLabel::$material = []

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

◆ $rarea

string ilQTIResponseLabel::$rarea = null

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

Referenced by getRarea().

◆ $rrange

string ilQTIResponseLabel::$rrange = null

Definition at line 44 of file class.ilQTIResponseLabel.php.

Referenced by getRrange().

◆ $rshuffle

string ilQTIResponseLabel::$rshuffle = null

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

Referenced by getRshuffle().

◆ RAREA_BOUNDED

const ilQTIResponseLabel::RAREA_BOUNDED = "3"

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

Referenced by ilQTIResponseLabelTest\areas().

◆ RAREA_ELLIPSE

const ilQTIResponseLabel::RAREA_ELLIPSE = "1"

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

Referenced by ilQTIResponseLabelTest\areas().

◆ RAREA_RECTANGLE

const ilQTIResponseLabel::RAREA_RECTANGLE = "2"

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

Referenced by ilQTIResponseLabelTest\areas().

◆ RRANGE_EXACT

const ilQTIResponseLabel::RRANGE_EXACT = "1"

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

Referenced by ilQTIResponseLabelTest\rranges().

◆ RRANGE_RANGE

const ilQTIResponseLabel::RRANGE_RANGE = "2"

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

Referenced by ilQTIResponseLabelTest\rranges().

◆ RSHUFFLE_NO

const ilQTIResponseLabel::RSHUFFLE_NO = "1"

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

Referenced by ilQTIResponseLabelTest\rshuffles().

◆ RSHUFFLE_YES

const ilQTIResponseLabel::RSHUFFLE_YES = "2"

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

Referenced by ilQTIResponseLabelTest\rshuffles().


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