ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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 29 of file class.ilQTIResponseLabel.php.

Member Function Documentation

◆ addFlow_mat()

ilQTIResponseLabel::addFlow_mat ( ilQTIFlowMat  $a_flow_mat)

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

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

◆ addMaterial()

ilQTIResponseLabel::addMaterial ( ilQTIMaterial  $a_material)

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

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

◆ getContent()

ilQTIResponseLabel::getContent ( )

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

References $content.

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

◆ getIdent()

ilQTIResponseLabel::getIdent ( )

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

References $ident.

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

◆ getLabelrefid()

ilQTIResponseLabel::getLabelrefid ( )

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

References $labelrefid.

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

◆ getMatchGroup()

ilQTIResponseLabel::getMatchGroup ( )

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

References $match_group.

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

◆ getMatchMax()

ilQTIResponseLabel::getMatchMax ( )

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

References $match_max.

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

◆ getRarea()

ilQTIResponseLabel::getRarea ( )

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

References $rarea.

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

◆ getRrange()

ilQTIResponseLabel::getRrange ( )

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

References $rrange.

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

◆ getRshuffle()

ilQTIResponseLabel::getRshuffle ( )

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

References $rshuffle.

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

◆ setContent()

ilQTIResponseLabel::setContent ( string  $a_content)

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

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

◆ setIdent()

ilQTIResponseLabel::setIdent ( string  $a_ident)

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

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

◆ setLabelrefid()

ilQTIResponseLabel::setLabelrefid ( string  $a_labelrefid)

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

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

◆ setMatchGroup()

ilQTIResponseLabel::setMatchGroup ( string  $a_match_group)

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

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

◆ setMatchMax()

ilQTIResponseLabel::setMatchMax ( string  $a_match_max)

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

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

◆ setRarea()

ilQTIResponseLabel::setRarea ( string  $a_rarea)

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

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

◆ setRrange()

ilQTIResponseLabel::setRrange ( string  $a_rrange)

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

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

◆ setRshuffle()

ilQTIResponseLabel::setRshuffle ( string  $a_rshuffle)

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

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

Field Documentation

◆ $content

string ilQTIResponseLabel::$content = null

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

Referenced by getContent().

◆ $flow_mat

array ilQTIResponseLabel::$flow_mat = []

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

◆ $ident

string ilQTIResponseLabel::$ident = null

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

Referenced by getIdent().

◆ $labelrefid

string ilQTIResponseLabel::$labelrefid = null

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

Referenced by getLabelrefid().

◆ $match_group

string ilQTIResponseLabel::$match_group = null

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

Referenced by getMatchGroup().

◆ $match_max

string ilQTIResponseLabel::$match_max = null

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

Referenced by getMatchMax().

◆ $material

array ilQTIResponseLabel::$material = []

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

◆ $rarea

string ilQTIResponseLabel::$rarea = null

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

Referenced by getRarea().

◆ $rrange

string ilQTIResponseLabel::$rrange = null

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

Referenced by getRrange().

◆ $rshuffle

string ilQTIResponseLabel::$rshuffle = null

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

Referenced by getRshuffle().

◆ RAREA_BOUNDED

const ilQTIResponseLabel::RAREA_BOUNDED = "3"

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

Referenced by ilQTIResponseLabelTest\areas().

◆ RAREA_ELLIPSE

const ilQTIResponseLabel::RAREA_ELLIPSE = "1"

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

Referenced by ilQTIResponseLabelTest\areas().

◆ RAREA_RECTANGLE

const ilQTIResponseLabel::RAREA_RECTANGLE = "2"

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

Referenced by ilQTIResponseLabelTest\areas().

◆ RRANGE_EXACT

const ilQTIResponseLabel::RRANGE_EXACT = "1"

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

Referenced by ilQTIResponseLabelTest\rranges().

◆ RRANGE_RANGE

const ilQTIResponseLabel::RRANGE_RANGE = "2"

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

Referenced by ilQTIResponseLabelTest\rranges().

◆ RSHUFFLE_NO

const ilQTIResponseLabel::RSHUFFLE_NO = "1"

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

Referenced by ilQTIResponseLabelTest\rshuffles().

◆ RSHUFFLE_YES

const ilQTIResponseLabel::RSHUFFLE_YES = "2"

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

Referenced by ilQTIResponseLabelTest\rshuffles().


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