Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 131... Línea 131...
131
        $fromform->name = 'Simple sum';
131
        $fromform->name = 'Simple sum';
132
        $fromform->questiontext = 'What is {a} + {b}?';
132
        $fromform->questiontext = 'What is {a} + {b}?';
133
        $fromform->defaultmark = 1.0;
133
        $fromform->defaultmark = 1.0;
134
        $fromform->generalfeedback = 'Generalfeedback: {={a} + {b}} is the right answer.';
134
        $fromform->generalfeedback = 'Generalfeedback: {={a} + {b}} is the right answer.';
Línea 135... Línea 135...
135
 
135
 
136
        $fromform->unitrole = '3';
136
        $fromform->unitrole = '0';
137
        $fromform->unitpenalty = 0.1;
137
        $fromform->unitpenalty = 0.1;
138
        $fromform->unitgradingtypes = '1';
138
        $fromform->unitgradingtypes = '1';
139
        $fromform->unitsleft = '0';
139
        $fromform->unitsleft = '0';
140
        $fromform->nounits = 1;
140
        $fromform->nounits = 1;
Línea 185... Línea 185...
185
        $fromform->feedback[2]['format'] = FORMAT_HTML;
185
        $fromform->feedback[2]['format'] = FORMAT_HTML;
186
        $fromform->feedback[2]['text'] = 'Completely wrong.';
186
        $fromform->feedback[2]['text'] = 'Completely wrong.';
Línea 187... Línea 187...
187
 
187
 
Línea -... Línea 188...
-
 
188
        $fromform->status = \core_question\local\bank\question_version_status::QUESTION_STATUS_READY;
-
 
189
 
-
 
190
        $fromform->hint = [
-
 
191
            [
-
 
192
                'text' => 'Add',
-
 
193
                'format' => FORMAT_HTML,
-
 
194
            ],
-
 
195
        ];
-
 
196
 
-
 
197
        $fromform->unit = [
-
 
198
            'x',
-
 
199
        ];
-
 
200
        $fromform->multiplier = [
-
 
201
            '1.0',
188
        $fromform->status = \core_question\local\bank\question_version_status::QUESTION_STATUS_READY;
202
        ];
189
 
203
 
Línea 190... Línea 204...
190
        return $fromform;
204
        return $fromform;
191
    }
205
    }