4 require_once
'Modules/TestQuestionPool/classes/class.ilAnswerWizardInputGUI.php';
5 require_once
'Modules/TestQuestionPool/classes/class.assAnswerSimple.php';
6 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionSolutionComparisonExpression.php';
18 $formValues =
array();
20 foreach($modelValues as $modelValue)
23 $modelValue->getExpression(),
24 $modelValue->getPoints(),
25 $modelValue->getOrderIndex() - 1
29 if( !count($formValues) )
34 parent::setValues($formValues);
39 $formValues = parent::getValues();
41 $modelValues =
array();
43 foreach($formValues as $formValue)
46 $expression->setExpression($formValue->getAnswertext());
47 $expression->setPoints($formValue->getPoints());
48 $expression->setOrderIndex($formValue->getOrder() + 1);
49 $modelValues[] = $expression;
61 return $lng->txt(
'tst_sol_comp_expressions');
70 return $lng->txt(
'tst_comp_points');
78 return "tpl.prop_lac_expression_input.html";
Class for simple answers.
static stripSlashesRecursive($a_data, $a_strip_html=true, $a_allow="")
Strip slashes from array and sub-arrays.
Create styles array
The data for the language used.