MDL-68918 mod_h5pactivity: add context to get_h5pactivities_by_courses

This commit is contained in:
Ferran Recio 2020-06-05 14:27:38 +02:00
parent 111b293f61
commit 2bdd6b120c
2 changed files with 14 additions and 3 deletions

View file

@ -132,6 +132,9 @@ class h5pactivity_summary_exporter extends exporter {
'coursemodule' => [
'type' => PARAM_INT
],
'context' => [
'type' => PARAM_INT
],
'introfiles' => [
'type' => external_files::get_properties_for_exporter(),
'multiple' => true
@ -197,6 +200,7 @@ class h5pactivity_summary_exporter extends exporter {
$values = [
'coursemodule' => $context->instanceid,
'context' => $context->id,
];
$values['introfiles'] = external_util::get_area_files($context->id, 'mod_h5pactivity', 'intro', false, false);