This is a test quiz where the questions are set with LD and/or H5P.
Possible way to update LD results with H5P results.
Prerequisite:
- The quiz must have one question with answer type of ‘Assessment’ and ‘Different points for each answer’ must be checked ON.
- For ease of this example the answer should have as many assessments as the max_points for inserted H5P content.
Procedure:
- @See: \LD_QuizPro::ld_adv_quiz_pro_ajax() function.
- Put the break at LN:90
$data = isset( $_POST['data'] ) ? (array)$_POST['data'] : null;
- Run Quiz, select ‘Finish Quiz’ button.
- When debugging at the breakpoint change the
$_POST["data"]["responses"][51]["response"]
to the value being in the range set in the question.