ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilQTIResponseLabel Class Reference
+ Collaboration diagram for ilQTIResponseLabel:

Public Member Functions

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

Data Fields

 $rshuffle
 
 $rarea
 
 $rrange
 
 $labelrefid
 
 $ident
 
 $match_group
 
 $match_max
 
 $material
 
 $flow_mat
 
 $content
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilQTIResponseLabel::__construct ( )

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

References array.

56  {
57  $this->material = array();
58  $this->flow_mat = array();
59  }
Create styles array
The data for the language used.

Member Function Documentation

◆ addFlow_mat()

ilQTIResponseLabel::addFlow_mat (   $a_flow_mat)

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

171  {
172  array_push($this->flow_mat, $a_flow_mat);
173  }

◆ addMaterial()

ilQTIResponseLabel::addMaterial (   $a_material)

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

166  {
167  array_push($this->material, $a_material);
168  }

◆ getContent()

ilQTIResponseLabel::getContent ( )

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

References $content.

181  {
182  return $this->content;
183  }

◆ getIdent()

ilQTIResponseLabel::getIdent ( )

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

References $ident.

141  {
142  return $this->ident;
143  }

◆ getLabelrefid()

ilQTIResponseLabel::getLabelrefid ( )

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

References $labelrefid.

131  {
132  return $this->labelrefid;
133  }

◆ getMatchGroup()

ilQTIResponseLabel::getMatchGroup ( )

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

References $match_group.

151  {
152  return $this->match_group;
153  }

◆ getMatchMax()

ilQTIResponseLabel::getMatchMax ( )

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

References $match_max.

161  {
162  return $this->match_max;
163  }

◆ getRarea()

ilQTIResponseLabel::getRarea ( )

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

References $rarea.

101  {
102  return $this->rarea;
103  }

◆ getRrange()

ilQTIResponseLabel::getRrange ( )

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

References $rrange.

121  {
122  return $this->rrange;
123  }

◆ getRshuffle()

ilQTIResponseLabel::getRshuffle ( )

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

References $rshuffle.

77  {
78  return $this->rshuffle;
79  }

◆ setContent()

ilQTIResponseLabel::setContent (   $a_content)

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

References $a_content.

176  {
177  $this->content = $a_content;
178  }
$a_content
Definition: workflow.php:94

◆ setIdent()

ilQTIResponseLabel::setIdent (   $a_ident)

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

136  {
137  $this->ident = $a_ident;
138  }

◆ setLabelrefid()

ilQTIResponseLabel::setLabelrefid (   $a_labelrefid)

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

126  {
127  $this->labelrefid = $a_labelrefid;
128  }

◆ setMatchGroup()

ilQTIResponseLabel::setMatchGroup (   $a_match_group)

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

146  {
147  $this->match_group = $a_match_group;
148  }

◆ setMatchMax()

ilQTIResponseLabel::setMatchMax (   $a_match_max)

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

156  {
157  $this->match_max = $a_match_max;
158  }

◆ setRarea()

ilQTIResponseLabel::setRarea (   $a_rarea)

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

References RAREA_BOUNDED, RAREA_ELLIPSE, and RAREA_RECTANGLE.

82  {
83  switch (strtolower($a_rarea))
84  {
85  case "1":
86  case "ellipse":
87  $this->rarea = RAREA_ELLIPSE;
88  break;
89  case "2":
90  case "rectangle":
91  $this->rarea = RAREA_RECTANGLE;
92  break;
93  case "3":
94  case "bounded":
95  $this->rarea = RAREA_BOUNDED;
96  break;
97  }
98  }
const RAREA_BOUNDED
const RAREA_RECTANGLE
const RAREA_ELLIPSE

◆ setRrange()

ilQTIResponseLabel::setRrange (   $a_rrange)

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

References RRANGE_EXACT, and RRANGE_RANGE.

106  {
107  switch (strtolower($a_rrange))
108  {
109  case "1":
110  case "excact":
111  $this->rshuffle = RRANGE_EXACT;
112  break;
113  case "2":
114  case "range":
115  $this->rshuffle = RRANGE_RANGE;
116  break;
117  }
118  }
const RRANGE_EXACT
const RRANGE_RANGE

◆ setRshuffle()

ilQTIResponseLabel::setRshuffle (   $a_rshuffle)

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

References RSHUFFLE_NO, and RSHUFFLE_YES.

62  {
63  switch (strtolower($a_rshuffle))
64  {
65  case "1":
66  case "no":
67  $this->rshuffle = RSHUFFLE_NO;
68  break;
69  case "2":
70  case "yes":
71  $this->rshuffle = RSHUFFLE_YES;
72  break;
73  }
74  }
const RSHUFFLE_NO
const RSHUFFLE_YES

Field Documentation

◆ $content

ilQTIResponseLabel::$content

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

Referenced by getContent().

◆ $flow_mat

ilQTIResponseLabel::$flow_mat

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

◆ $ident

ilQTIResponseLabel::$ident

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

Referenced by getIdent().

◆ $labelrefid

ilQTIResponseLabel::$labelrefid

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

Referenced by getLabelrefid().

◆ $match_group

ilQTIResponseLabel::$match_group

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

Referenced by getMatchGroup().

◆ $match_max

ilQTIResponseLabel::$match_max

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

Referenced by getMatchMax().

◆ $material

ilQTIResponseLabel::$material

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

◆ $rarea

ilQTIResponseLabel::$rarea

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

Referenced by getRarea().

◆ $rrange

ilQTIResponseLabel::$rrange

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

Referenced by getRrange().

◆ $rshuffle

ilQTIResponseLabel::$rshuffle

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

Referenced by getRshuffle().


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