ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 167 of file class.ilQTIResponseLabel.php.

168  {
169  array_push($this->flow_mat, $a_flow_mat);
170  }

◆ addMaterial()

ilQTIResponseLabel::addMaterial (   $a_material)

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

163  {
164  array_push($this->material, $a_material);
165  }

◆ getContent()

ilQTIResponseLabel::getContent ( )

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

References $content.

178  {
179  return $this->content;
180  }

◆ getIdent()

ilQTIResponseLabel::getIdent ( )

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

References $ident.

138  {
139  return $this->ident;
140  }

◆ getLabelrefid()

ilQTIResponseLabel::getLabelrefid ( )

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

References $labelrefid.

128  {
129  return $this->labelrefid;
130  }

◆ getMatchGroup()

ilQTIResponseLabel::getMatchGroup ( )

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

References $match_group.

148  {
149  return $this->match_group;
150  }

◆ getMatchMax()

ilQTIResponseLabel::getMatchMax ( )

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

References $match_max.

158  {
159  return $this->match_max;
160  }

◆ getRarea()

ilQTIResponseLabel::getRarea ( )

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

References $rarea.

99  {
100  return $this->rarea;
101  }

◆ getRrange()

ilQTIResponseLabel::getRrange ( )

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

References $rrange.

118  {
119  return $this->rrange;
120  }

◆ getRshuffle()

ilQTIResponseLabel::getRshuffle ( )

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

References $rshuffle.

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

◆ setContent()

ilQTIResponseLabel::setContent (   $a_content)

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

References $a_content.

173  {
174  $this->content = $a_content;
175  }
$a_content
Definition: workflow.php:93

◆ setIdent()

ilQTIResponseLabel::setIdent (   $a_ident)

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

133  {
134  $this->ident = $a_ident;
135  }

◆ setLabelrefid()

ilQTIResponseLabel::setLabelrefid (   $a_labelrefid)

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

123  {
124  $this->labelrefid = $a_labelrefid;
125  }

◆ setMatchGroup()

ilQTIResponseLabel::setMatchGroup (   $a_match_group)

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

143  {
144  $this->match_group = $a_match_group;
145  }

◆ setMatchMax()

ilQTIResponseLabel::setMatchMax (   $a_match_max)

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

153  {
154  $this->match_max = $a_match_max;
155  }

◆ setRarea()

ilQTIResponseLabel::setRarea (   $a_rarea)

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

References RAREA_BOUNDED, RAREA_ELLIPSE, and RAREA_RECTANGLE.

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

◆ setRrange()

ilQTIResponseLabel::setRrange (   $a_rrange)

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

References RRANGE_EXACT, and RRANGE_RANGE.

104  {
105  switch (strtolower($a_rrange)) {
106  case "1":
107  case "excact":
108  $this->rshuffle = RRANGE_EXACT;
109  break;
110  case "2":
111  case "range":
112  $this->rshuffle = RRANGE_RANGE;
113  break;
114  }
115  }
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  case "1":
65  case "no":
66  $this->rshuffle = RSHUFFLE_NO;
67  break;
68  case "2":
69  case "yes":
70  $this->rshuffle = RSHUFFLE_YES;
71  break;
72  }
73  }
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: