ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 29 of file class.ilQTIRenderFib.php.

Member Function Documentation

◆ addMaterial()

ilQTIRenderFib::addMaterial ( ilQTIMaterial  $a_material)

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

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

◆ addResponseLabel()

ilQTIRenderFib::addResponseLabel ( ilQTIResponseLabel  $a_response_label)

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

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

◆ getCharset()

ilQTIRenderFib::getCharset ( )

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

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

References $charset.

◆ getColumns()

ilQTIRenderFib::getColumns ( )

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

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

References $columns.

◆ getEncoding()

ilQTIRenderFib::getEncoding ( )

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

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

References $encoding.

◆ getFibtype()

ilQTIRenderFib::getFibtype ( )

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

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

References $fibtype.

◆ getMaxchars()

ilQTIRenderFib::getMaxchars ( )

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

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

References $maxchars.

◆ getMaxnumber()

ilQTIRenderFib::getMaxnumber ( )

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

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

References $maxnumber.

◆ getMinnumber()

ilQTIRenderFib::getMinnumber ( )

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

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

References $minnumber.

◆ getPrompt()

ilQTIRenderFib::getPrompt ( )

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

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

References $prompt.

◆ getRows()

ilQTIRenderFib::getRows ( )

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

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

References $rows.

◆ setCharset()

ilQTIRenderFib::setCharset ( string  $a_charset)

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

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

◆ setColumns()

ilQTIRenderFib::setColumns ( string  $a_columns)

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

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

◆ setEncoding()

ilQTIRenderFib::setEncoding ( string  $a_encoding)

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

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

◆ setFibtype()

ilQTIRenderFib::setFibtype ( string  $a_fibtype)

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

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

References FIBTYPE_DECIMAL, FIBTYPE_INTEGER, FIBTYPE_SCIENTIFIC, and FIBTYPE_STRING.

◆ setMaxchars()

ilQTIRenderFib::setMaxchars ( string  $a_maxchars)

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

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

◆ setMaxnumber()

ilQTIRenderFib::setMaxnumber ( string  $a_maxnumber)

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

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

◆ setMinnumber()

ilQTIRenderFib::setMinnumber ( string  $a_minnumber)

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

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

◆ setPrompt()

ilQTIRenderFib::setPrompt ( string  $a_prompt)

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

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

References PROMPT_ASTERISK, PROMPT_BOX, PROMPT_DASHLINE, and PROMPT_UNDERLINE.

◆ setRows()

ilQTIRenderFib::setRows ( string  $a_rows)

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

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

Field Documentation

◆ $charset

string ilQTIRenderFib::$charset = null

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

Referenced by getCharset().

◆ $columns

string ilQTIRenderFib::$columns = null

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

Referenced by getColumns().

◆ $encoding

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

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

Referenced by getEncoding().

◆ $fibtype

string ilQTIRenderFib::$fibtype = null

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

Referenced by getFibtype().

◆ $material

array ilQTIRenderFib::$material = []

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

◆ $maxchars

string ilQTIRenderFib::$maxchars = null

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

Referenced by getMaxchars().

◆ $maxnumber

string ilQTIRenderFib::$maxnumber = null

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

Referenced by getMaxnumber().

◆ $minnumber

string ilQTIRenderFib::$minnumber = null

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

Referenced by getMinnumber().

◆ $prompt

string ilQTIRenderFib::$prompt = null

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

Referenced by getPrompt().

◆ $response_labels

array ilQTIRenderFib::$response_labels = []

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

◆ $rows

string ilQTIRenderFib::$rows = null

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

Referenced by getRows().

◆ FIBTYPE_DECIMAL

const ilQTIRenderFib::FIBTYPE_DECIMAL = "3"

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

Referenced by ilQTIRenderFibTest\fibtypes(), and setFibtype().

◆ FIBTYPE_INTEGER

const ilQTIRenderFib::FIBTYPE_INTEGER = "2"

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

Referenced by ilQTIRenderFibTest\fibtypes(), and setFibtype().

◆ FIBTYPE_SCIENTIFIC

const ilQTIRenderFib::FIBTYPE_SCIENTIFIC = "4"

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

Referenced by ilQTIRenderFibTest\fibtypes(), and setFibtype().

◆ FIBTYPE_STRING

const ilQTIRenderFib::FIBTYPE_STRING = "1"

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

Referenced by ilQTIRenderFibTest\fibtypes(), and setFibtype().

◆ PROMPT_ASTERISK

const ilQTIRenderFib::PROMPT_ASTERISK = "3"

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

Referenced by ilQTIRenderFibTest\prompts(), and setPrompt().

◆ PROMPT_BOX

const ilQTIRenderFib::PROMPT_BOX = "1"

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

Referenced by ilQTIRenderFibTest\prompts(), and setPrompt().

◆ PROMPT_DASHLINE

const ilQTIRenderFib::PROMPT_DASHLINE = "2"

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

Referenced by ilQTIRenderFibTest\prompts(), and setPrompt().

◆ PROMPT_UNDERLINE

const ilQTIRenderFib::PROMPT_UNDERLINE = "4"

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

Referenced by ilQTIRenderFibTest\prompts(), and setPrompt().


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