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) {
22 $modelValue->getExpression(),
23 $modelValue->getPoints(),
24 $modelValue->getOrderIndex() - 1
28 if (!count($formValues)) {
32 parent::setValues($formValues);
37 $formValues = parent::getValues();
39 $modelValues =
array();
41 foreach ($formValues as $formValue) {
43 $expression->setExpression($formValue->getAnswertext());
44 $expression->setPoints($formValue->getPoints());
45 $expression->setOrderIndex($formValue->getOrder() + 1);
46 $modelValues[] = $expression;
58 return $lng->txt(
'tst_sol_comp_expressions');
67 return $lng->txt(
'tst_comp_points');
75 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.