ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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.

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

Member Function Documentation

◆ addMaterial()

ilQTIRenderFib::addMaterial (   $a_material)

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

143  {
144  array_push($this->material, $a_material);
145  }

◆ addResponseLabel()

ilQTIRenderFib::addResponseLabel (   $a_response_label)

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

138  {
139  array_push($this->response_labels, $a_response_label);
140  }

◆ getCharset()

ilQTIRenderFib::getCharset ( )

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

References $charset.

193  {
194  return $this->charset;
195  }

◆ getColumns()

ilQTIRenderFib::getColumns ( )

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

References $columns.

183  {
184  return $this->columns;
185  }

◆ getEncoding()

ilQTIRenderFib::getEncoding ( )

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

References $encoding.

153  {
154  return $this->encoding;
155  }

◆ getFibtype()

ilQTIRenderFib::getFibtype ( )

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

References $fibtype.

113  {
114  return $this->fibtype;
115  }

◆ getMaxchars()

ilQTIRenderFib::getMaxchars ( )

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

References $maxchars.

173  {
174  return $this->maxchars;
175  }

◆ getMaxnumber()

ilQTIRenderFib::getMaxnumber ( )

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

References $maxnumber.

133  {
134  return $this->maxnumber;
135  }

◆ getMinnumber()

ilQTIRenderFib::getMinnumber ( )

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

References $minnumber.

123  {
124  return $this->minnumber;
125  }

◆ getPrompt()

ilQTIRenderFib::getPrompt ( )

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

References $prompt.

86  {
87  return $this->prompt;
88  }

◆ getRows()

ilQTIRenderFib::getRows ( )

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

References $rows.

163  {
164  return $this->rows;
165  }

◆ setCharset()

ilQTIRenderFib::setCharset (   $a_charset)

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

188  {
189  $this->charset = $a_charset;
190  }

◆ setColumns()

ilQTIRenderFib::setColumns (   $a_columns)

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

References columns.

178  {
179  $this->columns = $a_columns;
180  }
Play around with inserting and removing rows and columns

◆ setEncoding()

ilQTIRenderFib::setEncoding (   $a_encoding)

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

148  {
149  $this->encoding = $a_encoding;
150  }

◆ setFibtype()

ilQTIRenderFib::setFibtype (   $a_fibtype)

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

References FIBTYPE_DECIMAL, FIBTYPE_INTEGER, FIBTYPE_SCIENTIFIC, and FIBTYPE_STRING.

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

◆ setMaxchars()

ilQTIRenderFib::setMaxchars (   $a_maxchars)

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

168  {
169  $this->maxchars = $a_maxchars;
170  }

◆ setMaxnumber()

ilQTIRenderFib::setMaxnumber (   $a_maxnumber)

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

128  {
129  $this->maxnumber = $a_maxnumber;
130  }

◆ setMinnumber()

ilQTIRenderFib::setMinnumber (   $a_minnumber)

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

118  {
119  $this->minnumber = $a_minnumber;
120  }

◆ setPrompt()

ilQTIRenderFib::setPrompt (   $a_prompt)

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

References PROMPT_ASTERISK, PROMPT_BOX, PROMPT_DASHLINE, and PROMPT_UNDERLINE.

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

◆ setRows()

ilQTIRenderFib::setRows (   $a_rows)

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

References rows.

158  {
159  $this->rows = $a_rows;
160  }
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: