New type of quiz responses report. Where to start?

New type of quiz responses report. Where to start?

Kate Sin發表於
Number of replies: 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

評比平均分數: -
In reply to 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的相片
In reply to 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.)?

In reply to 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