ILIAS  release_8 Revision v8.23
ilQTIRenderFib Class Reference
+ Collaboration diagram for ilQTIRenderFib:

Public Member Functions

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

Data Fields

const PROMPT_BOX = "1"
 
const PROMPT_DASHLINE = "2"
 
const PROMPT_ASTERISK = "3"
 
const PROMPT_UNDERLINE = "4"
 
const FIBTYPE_STRING = "1"
 
const FIBTYPE_INTEGER = "2"
 
const FIBTYPE_DECIMAL = "3"
 
const FIBTYPE_SCIENTIFIC = "4"
 
string $minnumber = null
 
string $maxnumber = null
 
array $response_labels = []
 
array $material = []
 
string $prompt = null
 
string $encoding = "UTF-8"
 
string $fibtype = null
 
string $rows = null
 
string $maxchars = null
 
string $columns = null
 
string $charset = null
 

Detailed Description

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

Member Function Documentation

◆ addMaterial()

ilQTIRenderFib::addMaterial ( ilQTIMaterial  $a_material)

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

135  : void
136  {
137  $this->material[] = $a_material;
138  }

◆ addResponseLabel()

ilQTIRenderFib::addResponseLabel ( ilQTIResponseLabel  $a_response_label)

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

130  : void
131  {
132  $this->response_labels[] = $a_response_label;
133  }

◆ getCharset()

ilQTIRenderFib::getCharset ( )

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

References $charset.

185  : ?string
186  {
187  return $this->charset;
188  }

◆ getColumns()

ilQTIRenderFib::getColumns ( )

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

References $columns.

175  : ?string
176  {
177  return $this->columns;
178  }

◆ getEncoding()

ilQTIRenderFib::getEncoding ( )

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

References $encoding.

145  : string
146  {
147  return $this->encoding;
148  }

◆ getFibtype()

ilQTIRenderFib::getFibtype ( )

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

References $fibtype.

105  : ?string
106  {
107  return $this->fibtype;
108  }

◆ getMaxchars()

ilQTIRenderFib::getMaxchars ( )

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

References $maxchars.

165  : ?string
166  {
167  return $this->maxchars;
168  }

◆ getMaxnumber()

ilQTIRenderFib::getMaxnumber ( )

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

References $maxnumber.

125  : ?string
126  {
127  return $this->maxnumber;
128  }

◆ getMinnumber()

ilQTIRenderFib::getMinnumber ( )

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

References $minnumber.

115  : ?string
116  {
117  return $this->minnumber;
118  }

◆ getPrompt()

ilQTIRenderFib::getPrompt ( )

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

References $prompt.

78  : ?string
79  {
80  return $this->prompt;
81  }

◆ getRows()

ilQTIRenderFib::getRows ( )

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

References $rows.

155  : ?string
156  {
157  return $this->rows;
158  }

◆ setCharset()

ilQTIRenderFib::setCharset ( string  $a_charset)

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

180  : void
181  {
182  $this->charset = $a_charset;
183  }

◆ setColumns()

ilQTIRenderFib::setColumns ( string  $a_columns)

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

170  : void
171  {
172  $this->columns = $a_columns;
173  }

◆ setEncoding()

ilQTIRenderFib::setEncoding ( string  $a_encoding)

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

140  : void
141  {
142  $this->encoding = $a_encoding;
143  }

◆ setFibtype()

ilQTIRenderFib::setFibtype ( string  $a_fibtype)

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

83  : void
84  {
85  switch (strtolower($a_fibtype)) {
86  case "1":
87  case "string":
88  $this->fibtype = self::FIBTYPE_STRING;
89  break;
90  case "2":
91  case "integer":
92  $this->fibtype = self::FIBTYPE_INTEGER;
93  break;
94  case "3":
95  case "decimal":
96  $this->fibtype = self::FIBTYPE_DECIMAL;
97  break;
98  case "4":
99  case "scientific":
100  $this->fibtype = self::FIBTYPE_SCIENTIFIC;
101  break;
102  }
103  }

◆ setMaxchars()

ilQTIRenderFib::setMaxchars ( string  $a_maxchars)

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

160  : void
161  {
162  $this->maxchars = $a_maxchars;
163  }

◆ setMaxnumber()

ilQTIRenderFib::setMaxnumber ( string  $a_maxnumber)

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

120  : void
121  {
122  $this->maxnumber = $a_maxnumber;
123  }

◆ setMinnumber()

ilQTIRenderFib::setMinnumber ( string  $a_minnumber)

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

110  : void
111  {
112  $this->minnumber = $a_minnumber;
113  }

◆ setPrompt()

ilQTIRenderFib::setPrompt ( string  $a_prompt)

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

56  : void
57  {
58  switch (strtolower($a_prompt)) {
59  case "1":
60  case "box":
61  $this->prompt = self::PROMPT_BOX;
62  break;
63  case "2":
64  case "dashline":
65  $this->prompt = self::PROMPT_DASHLINE;
66  break;
67  case "3":
68  case "asterisk":
69  $this->prompt = self::PROMPT_ASTERISK;
70  break;
71  case "4":
72  case "underline":
73  $this->prompt = self::PROMPT_UNDERLINE;
74  break;
75  }
76  }

◆ setRows()

ilQTIRenderFib::setRows ( string  $a_rows)

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

150  : void
151  {
152  $this->rows = $a_rows;
153  }

Field Documentation

◆ $charset

string ilQTIRenderFib::$charset = null

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

Referenced by getCharset().

◆ $columns

string ilQTIRenderFib::$columns = null

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

Referenced by getColumns().

◆ $encoding

string ilQTIRenderFib::$encoding = "UTF-8"

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

Referenced by getEncoding().

◆ $fibtype

string ilQTIRenderFib::$fibtype = null

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

Referenced by getFibtype().

◆ $material

array ilQTIRenderFib::$material = []

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

◆ $maxchars

string ilQTIRenderFib::$maxchars = null

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

Referenced by getMaxchars().

◆ $maxnumber

string ilQTIRenderFib::$maxnumber = null

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

Referenced by getMaxnumber().

◆ $minnumber

string ilQTIRenderFib::$minnumber = null

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

Referenced by getMinnumber().

◆ $prompt

string ilQTIRenderFib::$prompt = null

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

Referenced by getPrompt().

◆ $response_labels

array ilQTIRenderFib::$response_labels = []

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

◆ $rows

string ilQTIRenderFib::$rows = null

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

Referenced by getRows().

◆ FIBTYPE_DECIMAL

const ilQTIRenderFib::FIBTYPE_DECIMAL = "3"

◆ FIBTYPE_INTEGER

const ilQTIRenderFib::FIBTYPE_INTEGER = "2"

◆ FIBTYPE_SCIENTIFIC

const ilQTIRenderFib::FIBTYPE_SCIENTIFIC = "4"

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

Referenced by ilQTIRenderFibTest\fibtypes().

◆ FIBTYPE_STRING

const ilQTIRenderFib::FIBTYPE_STRING = "1"

◆ PROMPT_ASTERISK

const ilQTIRenderFib::PROMPT_ASTERISK = "3"

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

Referenced by ilQTIRenderFibTest\prompts().

◆ PROMPT_BOX

const ilQTIRenderFib::PROMPT_BOX = "1"

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

Referenced by ilQTIRenderFibTest\prompts().

◆ PROMPT_DASHLINE

const ilQTIRenderFib::PROMPT_DASHLINE = "2"

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

Referenced by ilQTIRenderFibTest\prompts().

◆ PROMPT_UNDERLINE

const ilQTIRenderFib::PROMPT_UNDERLINE = "4"

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

Referenced by ilQTIRenderFibTest\prompts().


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