Skip to content

MoodleNRW/moodle-local_quizattemptexport

Repository files navigation

Quizattemptexport

Automatically exports quiz attempts submitted by students into PDF files.

The files can be exported in two ways:

  • Into the moodle file system, where they may be viewed/downloaded through the browser
  • Into a directory within moodledata

To avoid performance impact when a large number of quiz attempts is submitted at the same time, the automatic export will be done by a scheduled task in the background.

You may also manually export any quiz attempt within the system, using the user interface hooked into the quiz instance administration. This is also where you may view and download the files from your browser.

Requirements

This plugin requires Moodle 3.9+

New Features in v2.0-r1 (2023113000)

  • Support question type qtyoe_elediasafeessay (Begrenzter Freitext).
  • Admin setting categoryfilter: determine in which categories the conversion takes place.
  • Admin setting: custom selection of fields fullname, username and idnumber to be shown as heading on the PDF overview page.
  • Admin setting: custom configuration of the filename of the exported pdf and attachments.
  • Use specific capabilities: local/quizattemptexport:viewpdf, local/quizattemptexport:generatepdf.
  • Use course module id as subdir in the course folder of the exportpath in moodledata (see below).
  • PDF export: show enrolmentkey from plugin enrol_elediamultikeys in the pdf heading table.
  • Overview page intro: show customised text at the top of the attempt overview page.
  • Hash length: Select the lenght of the hash value used in the filename of the exported pdf.

Packaged binary

The plugin uses a packaged binary to perform the transformation, which might require the installation of some additional shared libraries. The plugin tries to perform an environment check upon installation or upgrade and will display the missing shared libraries.

Additionally, the binary needs to be executable by the apache user. When the plugin is pulled directly from the Git repository the execute bit should be set automatically, in any other case the execute bit needs to be set manually.

Path to binary:

local/quizattemptexport/vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64

Note: This version comes without Windows support!

Exported files within moodledata

Please make also sure that there is a directory within moodledata where the plugin may write the exported files to. This directory needs to be set within the plugins settings page.

The files will be written into sub-directories of the configured directory, where the first level is the ID of the course and the second level is the ID of the course module (the id used when clicking on the link to the quiz instance within the course).

Logging

In case of problems during the export, the plugin will write log output into the file quizattemptexport.log within moodledata.

Credits

This plugin was originally developed by eLeDia: https://github.com/eledia/local_quizattemptexport

Some features are provided by Hochschule Niederrhein.

Related plugin repositories

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published