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

Public Member Functions

 __construct ()
 
 setPrompt ($a_prompt)
 
 getPrompt ()
 
 setFibtype ($a_fibtype)
 
 getFibtype ()
 
 setMinnumber ($a_minnumber)
 
 getMinnumber ()
 
 setMaxnumber ($a_maxnumber)
 
 getMaxnumber ()
 
 addResponseLabel ($a_response_label)
 
 addMaterial ($a_material)
 
 setEncoding ($a_encoding)
 
 getEncoding ()
 
 setRows ($a_rows)
 
 getRows ()
 
 setMaxchars ($a_maxchars)
 
 getMaxchars ()
 
 setColumns ($a_columns)
 
 getColumns ()
 
 setCharset ($a_charset)
 
 getCharset ()
 

Data Fields

 $minnumber
 
 $maxnumber
 
 $response_labels
 
 $material
 
 $prompt
 
 $encoding
 
 $fibtype
 
 $rows
 
 $maxchars
 
 $columns
 
 $charset
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilQTIRenderFib::__construct ( )

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

References array, and SHOWDRAW_NO.

57  {
58  $this->showdraw = SHOWDRAW_NO;
59  $this->response_labels = array();
60  $this->material = array();
61  $this->encoding = "UTF-8";
62  }
const SHOWDRAW_NO
Create styles array
The data for the language used.

Member Function Documentation

◆ addMaterial()

ilQTIRenderFib::addMaterial (   $a_material)

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

146  {
147  array_push($this->material, $a_material);
148  }

◆ addResponseLabel()

ilQTIRenderFib::addResponseLabel (   $a_response_label)

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

141  {
142  array_push($this->response_labels, $a_response_label);
143  }

◆ getCharset()

ilQTIRenderFib::getCharset ( )

Definition at line 195 of file class.ilQTIRenderFib.php.

References $charset.

196  {
197  return $this->charset;
198  }

◆ getColumns()

ilQTIRenderFib::getColumns ( )

Definition at line 185 of file class.ilQTIRenderFib.php.

References $columns.

186  {
187  return $this->columns;
188  }

◆ getEncoding()

ilQTIRenderFib::getEncoding ( )

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

References $encoding.

156  {
157  return $this->encoding;
158  }

◆ getFibtype()

ilQTIRenderFib::getFibtype ( )

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

References $fibtype.

116  {
117  return $this->fibtype;
118  }

◆ getMaxchars()

ilQTIRenderFib::getMaxchars ( )

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

References $maxchars.

176  {
177  return $this->maxchars;
178  }

◆ getMaxnumber()

ilQTIRenderFib::getMaxnumber ( )

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

References $maxnumber.

136  {
137  return $this->maxnumber;
138  }

◆ getMinnumber()

ilQTIRenderFib::getMinnumber ( )

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

References $minnumber.

126  {
127  return $this->minnumber;
128  }

◆ getPrompt()

ilQTIRenderFib::getPrompt ( )

Definition at line 87 of file class.ilQTIRenderFib.php.

References $prompt.

88  {
89  return $this->prompt;
90  }

◆ getRows()

ilQTIRenderFib::getRows ( )

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

References $rows.

166  {
167  return $this->rows;
168  }

◆ setCharset()

ilQTIRenderFib::setCharset (   $a_charset)

Definition at line 190 of file class.ilQTIRenderFib.php.

191  {
192  $this->charset = $a_charset;
193  }

◆ setColumns()

ilQTIRenderFib::setColumns (   $a_columns)

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

References columns.

181  {
182  $this->columns = $a_columns;
183  }
Play around with inserting and removing rows and columns

◆ setEncoding()

ilQTIRenderFib::setEncoding (   $a_encoding)

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

151  {
152  $this->encoding = $a_encoding;
153  }

◆ setFibtype()

ilQTIRenderFib::setFibtype (   $a_fibtype)

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

References FIBTYPE_DECIMAL, FIBTYPE_INTEGER, FIBTYPE_SCIENTIFIC, and FIBTYPE_STRING.

93  {
94  switch (strtolower($a_fibtype))
95  {
96  case "1":
97  case "string":
98  $this->fibtype = FIBTYPE_STRING;
99  break;
100  case "2":
101  case "integer":
102  $this->fibtype = FIBTYPE_INTEGER;
103  break;
104  case "3":
105  case "decimal":
106  $this->fibtype = FIBTYPE_DECIMAL;
107  break;
108  case "4":
109  case "scientific":
110  $this->fibtype = FIBTYPE_SCIENTIFIC;
111  break;
112  }
113  }
const FIBTYPE_STRING
const FIBTYPE_INTEGER
const FIBTYPE_DECIMAL
const FIBTYPE_SCIENTIFIC

◆ setMaxchars()

ilQTIRenderFib::setMaxchars (   $a_maxchars)

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

171  {
172  $this->maxchars = $a_maxchars;
173  }

◆ setMaxnumber()

ilQTIRenderFib::setMaxnumber (   $a_maxnumber)

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

131  {
132  $this->maxnumber = $a_maxnumber;
133  }

◆ setMinnumber()

ilQTIRenderFib::setMinnumber (   $a_minnumber)

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

121  {
122  $this->minnumber = $a_minnumber;
123  }

◆ setPrompt()

ilQTIRenderFib::setPrompt (   $a_prompt)

Definition at line 64 of file class.ilQTIRenderFib.php.

References PROMPT_ASTERISK, PROMPT_BOX, PROMPT_DASHLINE, and PROMPT_UNDERLINE.

65  {
66  switch (strtolower($a_prompt))
67  {
68  case "1":
69  case "box":
70  $this->prompt = PROMPT_BOX;
71  break;
72  case "2":
73  case "dashline":
74  $this->prompt = PROMPT_DASHLINE;
75  break;
76  case "3":
77  case "asterisk":
78  $this->prompt = PROMPT_ASTERISK;
79  break;
80  case "4":
81  case "underline":
82  $this->prompt = PROMPT_UNDERLINE;
83  break;
84  }
85  }
const PROMPT_BOX
const PROMPT_ASTERISK
const PROMPT_DASHLINE
const PROMPT_UNDERLINE

◆ setRows()

ilQTIRenderFib::setRows (   $a_rows)

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

References rows.

161  {
162  $this->rows = $a_rows;
163  }
Remove unnecessary rows

Field Documentation

◆ $charset

ilQTIRenderFib::$charset

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

Referenced by getCharset().

◆ $columns

ilQTIRenderFib::$columns

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

Referenced by getColumns().

◆ $encoding

ilQTIRenderFib::$encoding

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

Referenced by getEncoding().

◆ $fibtype

ilQTIRenderFib::$fibtype

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

Referenced by getFibtype().

◆ $material

ilQTIRenderFib::$material

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

◆ $maxchars

ilQTIRenderFib::$maxchars

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

Referenced by getMaxchars().

◆ $maxnumber

ilQTIRenderFib::$maxnumber

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

Referenced by getMaxnumber().

◆ $minnumber

ilQTIRenderFib::$minnumber

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

Referenced by getMinnumber().

◆ $prompt

ilQTIRenderFib::$prompt

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

Referenced by getPrompt().

◆ $response_labels

ilQTIRenderFib::$response_labels

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

◆ $rows

ilQTIRenderFib::$rows

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

Referenced by getRows().


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