New type of quiz responses report. Where to start?

New type of quiz responses report. Where to start?

Kate Sin -
回帖数:3

v. 2.3.x

I need to create new type of report for quiz responses.

How to create new kind of report for quiz resposnes? Where should I start?

Where for example is created html report or ods report?

I found mod/quiz/reponses

Thank you for the help , Kate

回复Kate Sin

Re: New type of quiz responses report. Where to start?

Tim Hunt -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
回复Tim Hunt

Re: New type of quiz responses report. Where to start?

Kate Sin -

Thank you, I found that. I`m looking for information about possibility of generating exports (other formats than ods etc.)?

回复Kate Sin

Re: New type of quiz responses report. Where to start?

Jamie Pratt -

Hi Kate,

You can create a new download format that can be used in most downloadable tables of data across your Moodle site by defining a new class whose name will be 'table_{formatname}_export_format' in lib/tablelib.php See the examples in there for the existing formats. Then you need to add the human readable name of your format, as it will be appear in the drop down at the bottom of the table, to lang/en/table.php. Like this :

 
$string['download{formatname}'] = 'String that will appear in drop down';

 

That's it, it is pretty straight forward.

Jamie