ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilAnswerWizardInputGUI Class Reference

This class represents a single choice wizard property in a property form. More...

+ Inheritance diagram for ilAnswerWizardInputGUI:
+ Collaboration diagram for ilAnswerWizardInputGUI:

Public Member Functions

 __construct ($a_title="", $a_postvar="")
 Constructor. More...
 
 setValue ($a_value)
 Set Value. More...
 
 setValues ($a_values)
 Set Values. More...
 
 getValues ()
 Get Values. More...
 
 setSingleline ($a_value)
 Set singleline. More...
 
 getSingleline ()
 Get singleline. More...
 
 setQuestionObject ($a_value)
 Set question object. More...
 
 getQuestionObject ()
 Get question object. More...
 
 setAllowMove ($a_allow_move)
 Set allow move. More...
 
 getAllowMove ()
 Get allow move. More...
 
 isAddRemoveAllowed ()
 
 setAllowAddRemove ($allowAddRemove)
 
 setMinvalueShouldBeGreater ($a_bool)
 Set minvalueShouldBeGreater. More...
 
 minvalueShouldBeGreater ()
 Get minvalueShouldBeGreater. More...
 
 setMinValue ($a_minvalue)
 Set Minimum Value. More...
 
 getMinValue ()
 Get Minimum Value. More...
 
 checkInput ()
 Check input, strip slashes etc. More...
 
 insert ($a_tpl)
 Insert property html. More...
 
- Public Member Functions inherited from ilTextInputGUI
 __construct ($a_title="", $a_postvar="")
 Constructor. More...
 
 setValue ($a_value)
 Set Value. More...
 
 getValue ()
 Get Value. More...
 
 setValidationFailureMessage ($a_msg)
 Set message string for validation failure. More...
 
 getValidationFailureMessage ()
 
 setValidationRegexp ($a_value)
 Set validation regexp. More...
 
 getValidationRegexp ()
 Get validation regexp. More...
 
 setMaxLength ($a_maxlength)
 Set Max Length. More...
 
 getMaxLength ()
 Get Max Length. More...
 
 setSize ($a_size)
 Set Size. More...
 
 setInlineStyle ($a_style)
 Set inline style. More...
 
 getInlineStyle ()
 Get inline style. More...
 
 setCssClass ($a_class)
 
 getCssClass ()
 
 setValueByArray ($a_values)
 Set value by array. More...
 
 getSize ()
 Get Size. More...
 
 setSuffix ($a_value)
 Set suffix. More...
 
 getSuffix ()
 Get suffix. More...
 
 setInputType ($a_type)
 set input type More...
 
 getInputType ()
 get input type More...
 
 setSubmitFormOnEnter ($a_val)
 Set submit form on enter. More...
 
 getSubmitFormOnEnter ()
 Get submit form on enter. More...
 
 checkInput ()
 Check input, strip slashes etc. More...
 
 getDataSource ()
 get datasource link for js autocomplete More...
 
 setDataSource ($href, $a_delimiter=null)
 set datasource link for js autocomplete More...
 
 setDataSourceSubmitOnSelection ($a_stat)
 
 getDataSourceSubmitOnSelection ()
 
 setDataSourceSubmitUrl ($a_url)
 
 getDataSourceSubmitUrl ()
 
 setMultiValues (array $a_values)
 Set multi values. More...
 
 insert ($a_tpl)
 Insert property html. More...
 
 getTableFilterHTML ()
 Get HTML for table filter. More...
 
 getToolbarHTML ()
 Get HTML for toolbar. More...
 
 setDisableHtmlAutoComplete ($autocomplete)
 
 isHtmlAutoCompleteDisabled ()
 
- Public Member Functions inherited from ilSubEnabledFormPropertyGUI
 addSubItem ($a_item)
 Add Subitem. More...
 
 getSubItems ()
 Get Subitems. More...
 
 getSubInputItemsRecursive ()
 returns a flat array of possibly existing subitems recursively More...
 
 checkSubItemsInput ()
 Check SubItems. More...
 
 getSubForm ()
 Get sub form html. More...
 
 getItemByPostVar ($a_post_var)
 Get item by post var. More...
 
- Public Member Functions inherited from ilFormPropertyGUI
 __construct ($a_title="", $a_postvar="")
 Constructor. More...
 
 executeCommand ()
 Execute command. More...
 
 getType ()
 Get Type. More...
 
 setTitle ($a_title)
 Set Title. More...
 
 getTitle ()
 Get Title. More...
 
 setPostVar ($a_postvar)
 Set Post Variable. More...
 
 getPostVar ()
 Get Post Variable. More...
 
 getFieldId ()
 Get Post Variable. More...
 
 setInfo ($a_info)
 Set Information Text. More...
 
 getInfo ()
 Get Information Text. More...
 
 setAlert ($a_alert)
 Set Alert Text. More...
 
 getAlert ()
 Get Alert Text. More...
 
 setRequired ($a_required)
 Set Required. More...
 
 getRequired ()
 Get Required. More...
 
 setDisabled ($a_disabled)
 Set Disabled. More...
 
 getDisabled ()
 Get Disabled. More...
 
 checkInput ()
 Check input, strip slashes etc. More...
 
 setParentForm ($a_parentform)
 Set Parent Form. More...
 
 getParentForm ()
 Get Parent Form. More...
 
 setParent ($a_val)
 Set Parent GUI object. More...
 
 getParent ()
 Get Parent GUI object. More...
 
 getSubForm ()
 Get sub form html. More...
 
 hideSubForm ()
 Sub form hidden on init? More...
 
 setHiddenTitle ($a_val)
 Set hidden title (for screenreaders) More...
 
 getHiddenTitle ()
 Get hidden title. More...
 
 getItemByPostVar ($a_post_var)
 Get item by post var. More...
 
 serializeData ()
 serialize data More...
 
 unserializeData ($a_data)
 unserialize data More...
 
 writeToSession ()
 Write to session. More...
 
 clearFromSession ()
 Clear session value. More...
 
 readFromSession ()
 Read from session. More...
 
 getHiddenTag ($a_post_var, $a_value)
 Get hidden tag (used for disabled properties) More...
 
 setMulti ($a_multi, $a_sortable=false, $a_addremove=true)
 Set Multi. More...
 
 getMulti ()
 Get Multi. More...
 
 setMultiValues (array $a_values)
 Set multi values. More...
 
 getMultiValues ()
 Get multi values. More...
 
 getContentOutsideFormTag ()
 Get content that has to reside outside of the parent form tag, e.g. More...
 
 stripSlashesAddSpaceFallback ($a_str)
 Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727. More...
 
 getTableFilterHTML ()
 Get input item HTML to be inserted into table filters. More...
 
 getToolbarHTML ()
 Get input item HTML to be inserted into ilToolbarGUI. More...
 

Protected Member Functions

 getTextInputLabel ($lng)
 
 getPointsInputLabel ($lng)
 
 getTemplate ()
 
 sanitizeSuperGlobalSubmitValue ()
 
- Protected Member Functions inherited from ilFormPropertyGUI
 setType ($a_type)
 Set Type. More...
 
 getMultiIconsHTML ()
 Get HTML for multiple value icons. More...
 

Protected Attributes

 $values = array()
 
 $allowMove = false
 
 $allowAddRemove = true
 
 $singleline = true
 
 $qstObject = null
 
 $minvalue = false
 
 $minvalueShouldBeGreater = false
 
- Protected Attributes inherited from ilTextInputGUI
 $value
 
 $maxlength = 200
 
 $size = 40
 
 $validationRegexp
 
 $validationFailureMessage = ''
 
 $suffix
 
 $style_css
 
 $css_class
 
 $ajax_datasource
 
 $ajax_datasource_delimiter
 
 $ajax_datasource_commit = FALSE
 
 $ajax_datasource_commit_url
 
 $submit_form_on_enter = false
 
 $autocomplete_disabled = false
 
- Protected Attributes inherited from ilSubEnabledFormPropertyGUI
 $sub_items = array()
 
- Protected Attributes inherited from ilFormPropertyGUI
 $type
 
 $title
 
 $postvar
 
 $info
 
 $alert
 
 $required = false
 
 $parentgui
 
 $parentform
 
 $hidden_title = ""
 
 $multi = false
 
 $multi_sortable = false
 
 $multi_addremove = true
 
 $multi_values
 

Additional Inherited Members

- Static Public Member Functions inherited from ilFormPropertyGUI
static removeProhibitedCharacters ($a_text)
 Remove prohibited characters see #19159. More...
 

Detailed Description

This class represents a single choice wizard property in a property form.

Author
Helmut Schottmüller ilias.nosp@m.@aur.nosp@m.ealis.nosp@m..de
Version
$Id$

Definition at line 13 of file class.ilAnswerWizardInputGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilAnswerWizardInputGUI::__construct (   $a_title = "",
  $a_postvar = "" 
)

Constructor.

Parameters
string$a_titleTitle
string$a_postvarPost Variable

Reimplemented from ilTextInputGUI.

Definition at line 29 of file class.ilAnswerWizardInputGUI.php.

30 {
31 parent::__construct($a_title, $a_postvar);
32 $this->setSize('25');
33 $this->validationRegexp = "";
34 }
setSize($a_size)
Set Size.

References ilTextInputGUI\setSize().

+ Here is the call graph for this function:

Member Function Documentation

◆ checkInput()

ilAnswerWizardInputGUI::checkInput ( )

Check input, strip slashes etc.

set alert, if input is not ok.

Returns
boolean Input ok, true/false

Reimplemented from ilTextInputGUI.

Definition at line 197 of file class.ilAnswerWizardInputGUI.php.

198 {
199 global $lng;
201 $foundvalues = $_POST[$this->getPostVar()];
202 if (is_array($foundvalues))
203 {
204 // check answers
205 if (is_array($foundvalues['answer']))
206 {
207 foreach ($foundvalues['answer'] as $aidx => $answervalue)
208 {
209 if ((strlen($answervalue)) == 0)
210 {
211 $this->setAlert($lng->txt("msg_input_is_required"));
212 return FALSE;
213 }
214 }
215 }
216 // check points
217 $max = 0;
218 if (is_array($foundvalues['points']))
219 {
220 foreach ($foundvalues['points'] as $points)
221 {
222 if ($points > $max) $max = $points;
223 if (((strlen($points)) == 0) || (!is_numeric($points)))
224 {
225 $this->setAlert($lng->txt("form_msg_numeric_value_required"));
226 return FALSE;
227 }
228 if ($this->minvalueShouldBeGreater())
229 {
230 if (trim($points) != "" &&
231 $this->getMinValue() !== false &&
232 $points <= $this->getMinValue())
233 {
234 $this->setAlert($lng->txt("form_msg_value_too_low"));
235
236 return false;
237 }
238 }
239 else
240 {
241 if (trim($points) != "" &&
242 $this->getMinValue() !== false &&
243 $points < $this->getMinValue())
244 {
245 $this->setAlert($lng->txt("form_msg_value_too_low"));
246
247 return false;
248
249 }
250 }
251 }
252 }
253 if ($max == 0)
254 {
255 $this->setAlert($lng->txt("enter_enough_positive_points"));
256 return false;
257 }
258 }
259 else
260 {
261 $this->setAlert($lng->txt("msg_input_is_required"));
262 return FALSE;
263 }
264
265 return $this->checkSubItemsInput();
266 }
$_POST["username"]
minvalueShouldBeGreater()
Get minvalueShouldBeGreater.
getPostVar()
Get Post Variable.
setAlert($a_alert)
Set Alert Text.
global $lng
Definition: privfeed.php:17

References $_POST, $lng, ilSubEnabledFormPropertyGUI\checkSubItemsInput(), getMinValue(), ilFormPropertyGUI\getPostVar(), minvalueShouldBeGreater(), sanitizeSuperGlobalSubmitValue(), and ilFormPropertyGUI\setAlert().

+ Here is the call graph for this function:

◆ getAllowMove()

ilAnswerWizardInputGUI::getAllowMove ( )

Get allow move.

Returns
boolean Allow move

Definition at line 133 of file class.ilAnswerWizardInputGUI.php.

References $allowMove.

Referenced by insert().

+ Here is the caller graph for this function:

◆ getMinValue()

ilAnswerWizardInputGUI::getMinValue ( )

Get Minimum Value.

Returns
float Minimum Value

Definition at line 188 of file class.ilAnswerWizardInputGUI.php.

References $minvalue.

Referenced by checkInput().

+ Here is the caller graph for this function:

◆ getPointsInputLabel()

ilAnswerWizardInputGUI::getPointsInputLabel (   $lng)
protected
Parameters
$lng
Returns
mixed

Reimplemented in ilLogicalAnswerComparisonExpressionInputGUI.

Definition at line 381 of file class.ilAnswerWizardInputGUI.php.

382 {
383 return $lng->txt('points');
384 }

References $lng.

Referenced by insert().

+ Here is the caller graph for this function:

◆ getQuestionObject()

ilAnswerWizardInputGUI::getQuestionObject ( )

Get question object.

Returns
object Value

Definition at line 113 of file class.ilAnswerWizardInputGUI.php.

References $qstObject.

◆ getSingleline()

ilAnswerWizardInputGUI::getSingleline ( )

Get singleline.

Returns
boolean Value

Definition at line 93 of file class.ilAnswerWizardInputGUI.php.

References $singleline.

Referenced by insert().

+ Here is the caller graph for this function:

◆ getTemplate()

ilAnswerWizardInputGUI::getTemplate ( )
protected
Returns
string

Reimplemented in ilLogicalAnswerComparisonExpressionInputGUI.

Definition at line 389 of file class.ilAnswerWizardInputGUI.php.

390 {
391 return "tpl.prop_answerwizardinput.html";
392 }

Referenced by insert().

+ Here is the caller graph for this function:

◆ getTextInputLabel()

ilAnswerWizardInputGUI::getTextInputLabel (   $lng)
protected
Parameters
$lng
Returns
mixed

Reimplemented in ilLogicalAnswerComparisonExpressionInputGUI.

Definition at line 372 of file class.ilAnswerWizardInputGUI.php.

373 {
374 return $lng->txt('answer_text');
375 }

References $lng.

Referenced by insert().

+ Here is the caller graph for this function:

◆ getValues()

ilAnswerWizardInputGUI::getValues ( )

Get Values.

Returns
array Values

Reimplemented in ilLogicalAnswerComparisonExpressionInputGUI.

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

References $values.

◆ insert()

ilAnswerWizardInputGUI::insert (   $a_tpl)

Insert property html.

Returns
int Size

Reimplemented from ilTextInputGUI.

Definition at line 273 of file class.ilAnswerWizardInputGUI.php.

274 {
275 global $lng;
276
277 $tpl = new ilTemplate($this->getTemplate(), true, true, "Modules/TestQuestionPool");
278 $i = 0;
279 foreach ($this->values as $value)
280 {
281 if ($this->getSingleline())
282 {
283 if (is_object($value))
284 {
285 $tpl->setCurrentBlock("prop_text_propval");
286 $tpl->setVariable("PROPERTY_VALUE", ilUtil::prepareFormOutput($value->getAnswertext()));
287 $tpl->parseCurrentBlock();
288 $tpl->setCurrentBlock("prop_points_propval");
289 $tpl->setVariable("PROPERTY_VALUE", ilUtil::prepareFormOutput($value->getPoints()));
290 $tpl->parseCurrentBlock();
291 }
292 $tpl->setCurrentBlock('singleline');
293 $tpl->setVariable("SIZE", $this->getSize());
294 $tpl->setVariable("SINGLELINE_ID", $this->getPostVar() . "[answer][$i]");
295 $tpl->setVariable("SINGLELINE_ROW_NUMBER", $i);
296 $tpl->setVariable("SINGLELINE_POST_VAR", $this->getPostVar());
297 $tpl->setVariable("MAXLENGTH", $this->getMaxLength());
298 if ($this->getDisabled())
299 {
300 $tpl->setVariable("DISABLED_SINGLELINE", " disabled=\"disabled\"");
301 }
302 $tpl->parseCurrentBlock();
303 }
304 else if (!$this->getSingleline())
305 {
306 if (is_object($value))
307 {
308 $tpl->setCurrentBlock("prop_points_propval");
309 $tpl->setVariable("PROPERTY_VALUE", ilUtil::prepareFormOutput($value->getPoints()));
310 $tpl->parseCurrentBlock();
311 }
312 $tpl->setCurrentBlock('multiline');
313 $tpl->setVariable("PROPERTY_VALUE", $this->qstObject->prepareTextareaOutput($value->getAnswertext()));
314 $tpl->setVariable("MULTILINE_ID", $this->getPostVar() . "[answer][$i]");
315 $tpl->setVariable("MULTILINE_ROW_NUMBER", $i);
316 $tpl->setVariable("MULTILINE_POST_VAR", $this->getPostVar());
317 if ($this->getDisabled())
318 {
319 $tpl->setVariable("DISABLED_MULTILINE", " disabled=\"disabled\"");
320 }
321 $tpl->parseCurrentBlock();
322 }
323 if ($this->getAllowMove())
324 {
325 $tpl->setCurrentBlock("move");
326 $tpl->setVariable("CMD_UP", "cmd[up" . $this->getFieldId() . "][$i]");
327 $tpl->setVariable("CMD_DOWN", "cmd[down" . $this->getFieldId() . "][$i]");
328 $tpl->setVariable("ID", $this->getPostVar() . "[$i]");
329 $tpl->setVariable("UP_BUTTON", ilGlyphGUI::get(ilGlyphGUI::UP));
330 $tpl->setVariable("DOWN_BUTTON", ilGlyphGUI::get(ilGlyphGUI::DOWN));
331 $tpl->parseCurrentBlock();
332 }
333 $tpl->setCurrentBlock("row");
334 $tpl->setVariable("POST_VAR", $this->getPostVar());
335 $tpl->setVariable("ROW_NUMBER", $i);
336 $tpl->setVariable("ID", $this->getPostVar() . "[answer][$i]");
337 $tpl->setVariable("POINTS_ID", $this->getPostVar() . "[points][$i]");
338 if($this->isAddRemoveAllowed())
339 {
340 $tpl->setVariable("ADD_REMOVE_ID", $this->getPostVar() . "[$i]");
341 $tpl->setVariable("CMD_ADD", "cmd[add" . $this->getFieldId() . "][$i]");
342 $tpl->setVariable("CMD_REMOVE", "cmd[remove" . $this->getFieldId() . "][$i]");
343 $tpl->setVariable("ADD_BUTTON", ilGlyphGUI::get(ilGlyphGUI::ADD));
344 $tpl->setVariable("REMOVE_BUTTON", ilGlyphGUI::get(ilGlyphGUI::REMOVE));
345 }
346 if ($this->getDisabled())
347 {
348 $tpl->setVariable("DISABLED_POINTS", " disabled=\"disabled\"");
349 }
350 $tpl->parseCurrentBlock();
351 $i++;
352 }
353
354 $tpl->setVariable("ELEMENT_ID", $this->getPostVar());
355 $tpl->setVariable("ANSWER_TEXT", $this->getTextInputLabel($lng));
356 $tpl->setVariable("POINTS_TEXT", $this->getPointsInputLabel($lng));
357 $tpl->setVariable("COMMANDS_TEXT", $lng->txt('actions'));
358
359 $a_tpl->setCurrentBlock("prop_generic");
360 $a_tpl->setVariable("PROP_GENERIC", $tpl->get());
361 $a_tpl->parseCurrentBlock();
362
363 global $tpl;
364 $tpl->addJavascript("./Services/Form/js/ServiceFormWizardInput.js");
365 $tpl->addJavascript("./Modules/TestQuestionPool/templates/default/answerwizard.js");
366 }
global $tpl
Definition: ilias.php:8
getFieldId()
Get Post Variable.
static get($a_glyph, $a_text="")
Get glyph html.
special template class to simplify handling of ITX/PEAR
getMaxLength()
Get Max Length.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public

References $lng, $tpl, ilTextInputGUI\$value, ilGlyphGUI\ADD, ilGlyphGUI\DOWN, ilGlyphGUI\get(), getAllowMove(), ilFormPropertyGUI\getDisabled(), ilFormPropertyGUI\getFieldId(), ilTextInputGUI\getMaxLength(), getPointsInputLabel(), ilFormPropertyGUI\getPostVar(), getSingleline(), ilTextInputGUI\getSize(), getTemplate(), getTextInputLabel(), isAddRemoveAllowed(), ilUtil\prepareFormOutput(), ilGlyphGUI\REMOVE, and ilGlyphGUI\UP.

+ Here is the call graph for this function:

◆ isAddRemoveAllowed()

ilAnswerWizardInputGUI::isAddRemoveAllowed ( )
Returns
bool

Definition at line 141 of file class.ilAnswerWizardInputGUI.php.

References $allowAddRemove.

Referenced by insert().

+ Here is the caller graph for this function:

◆ minvalueShouldBeGreater()

ilAnswerWizardInputGUI::minvalueShouldBeGreater ( )

Get minvalueShouldBeGreater.

Returns
boolean true if the minimum value should be greater than minvalue

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

References $minvalueShouldBeGreater.

Referenced by checkInput(), and setMinvalueShouldBeGreater().

+ Here is the caller graph for this function:

◆ sanitizeSuperGlobalSubmitValue()

ilAnswerWizardInputGUI::sanitizeSuperGlobalSubmitValue ( )
protected

Reimplemented in ilLogicalAnswerComparisonExpressionInputGUI.

Definition at line 394 of file class.ilAnswerWizardInputGUI.php.

395 {
396 if( isset($_POST[$this->getPostVar()]) && is_array($_POST[$this->getPostVar()]) )
397 {
399 }
400 }
static stripSlashesRecursive($a_data, $a_strip_html=true, $a_allow="")
Strip slashes from array and sub-arrays.

References $_POST, ilFormPropertyGUI\getPostVar(), and ilUtil\stripSlashesRecursive().

Referenced by checkInput().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAllowAddRemove()

ilAnswerWizardInputGUI::setAllowAddRemove (   $allowAddRemove)
Parameters
bool$allowAddRemove

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

150 {
151 $this->allowAddRemove = $allowAddRemove;
152 }

References $allowAddRemove.

◆ setAllowMove()

ilAnswerWizardInputGUI::setAllowMove (   $a_allow_move)

Set allow move.

Parameters
boolean$a_allow_moveAllow move

Definition at line 123 of file class.ilAnswerWizardInputGUI.php.

124 {
125 $this->allowMove = $a_allow_move;
126 }

◆ setMinValue()

ilAnswerWizardInputGUI::setMinValue (   $a_minvalue)

Set Minimum Value.

Parameters
float$a_minvalueMinimum Value

Definition at line 178 of file class.ilAnswerWizardInputGUI.php.

179 {
180 $this->minvalue = $a_minvalue;
181 }

◆ setMinvalueShouldBeGreater()

ilAnswerWizardInputGUI::setMinvalueShouldBeGreater (   $a_bool)

Set minvalueShouldBeGreater.

Parameters
boolean$a_booltrue if the minimum value should be greater than minvalue

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

160 {
161 $this->minvalueShouldBeGreater = $a_bool;
162 }

References minvalueShouldBeGreater().

+ Here is the call graph for this function:

◆ setQuestionObject()

ilAnswerWizardInputGUI::setQuestionObject (   $a_value)

Set question object.

Parameters
object$a_valuetest object

Definition at line 103 of file class.ilAnswerWizardInputGUI.php.

104 {
105 $this->qstObject =& $a_value;
106 }

◆ setSingleline()

ilAnswerWizardInputGUI::setSingleline (   $a_value)

Set singleline.

Parameters
boolean$a_valueValue

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

84 {
85 $this->singleline = $a_value;
86 }

◆ setValue()

ilAnswerWizardInputGUI::setValue (   $a_value)

Set Value.

Parameters
string$a_valueValue

Reimplemented from ilTextInputGUI.

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

42 {
43 $this->values = array();
44 if (is_array($a_value))
45 {
46 if (is_array($a_value['answer']))
47 {
48 foreach ($a_value['answer'] as $index => $value)
49 {
50 include_once "./Modules/TestQuestionPool/classes/class.assAnswerBinaryStateImage.php";
51 $answer = new ASS_AnswerBinaryStateImage($value, $a_value['points'][$index], $index, 1, $a_value['imagename'][$index]);
52 array_push($this->values, $answer);
53 }
54 }
55 }
56 }
Class for answers with a binary state indicator.

References ilTextInputGUI\$value.

◆ setValues()

ilAnswerWizardInputGUI::setValues (   $a_values)

Set Values.

Parameters
array$a_valueValue

Reimplemented in ilLogicalAnswerComparisonExpressionInputGUI.

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

64 {
65 $this->values = $a_values;
66 }

Field Documentation

◆ $allowAddRemove

ilAnswerWizardInputGUI::$allowAddRemove = true
protected

Definition at line 17 of file class.ilAnswerWizardInputGUI.php.

Referenced by isAddRemoveAllowed(), and setAllowAddRemove().

◆ $allowMove

ilAnswerWizardInputGUI::$allowMove = false
protected

Definition at line 16 of file class.ilAnswerWizardInputGUI.php.

Referenced by getAllowMove().

◆ $minvalue

ilAnswerWizardInputGUI::$minvalue = false
protected

Definition at line 20 of file class.ilAnswerWizardInputGUI.php.

Referenced by getMinValue().

◆ $minvalueShouldBeGreater

ilAnswerWizardInputGUI::$minvalueShouldBeGreater = false
protected

Definition at line 21 of file class.ilAnswerWizardInputGUI.php.

Referenced by minvalueShouldBeGreater().

◆ $qstObject

ilAnswerWizardInputGUI::$qstObject = null
protected

Definition at line 19 of file class.ilAnswerWizardInputGUI.php.

Referenced by getQuestionObject().

◆ $singleline

ilAnswerWizardInputGUI::$singleline = true
protected

Definition at line 18 of file class.ilAnswerWizardInputGUI.php.

Referenced by getSingleline().

◆ $values

ilAnswerWizardInputGUI::$values = array()
protected

Definition at line 15 of file class.ilAnswerWizardInputGUI.php.

Referenced by getValues().


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