MDL-40049 mod_choice: Replaced old add_to_log calls with event triggers.
authorAdrian Greeve <adrian@moodle.com>
Thu, 19 Sep 2013 05:39:44 +0000 (13:39 +0800)
committerAdrian Greeve <adrian@moodle.com>
Tue, 1 Oct 2013 02:36:13 +0000 (10:36 +0800)
commit8a94144332779255a07d43544192be5ee65de3e5
tree5a763d3f896aa1ddc105235fed2868e101aeac28
parentd45e65ccadbf4097a970655941ac1c5cae17f26d
MDL-40049 mod_choice: Replaced old add_to_log calls with event triggers.

Also added a generator for unit tests.
13 files changed:
mod/choice/classes/event/answer_submitted.php [new file with mode: 0644]
mod/choice/classes/event/answer_updated.php [new file with mode: 0644]
mod/choice/classes/event/course_module_viewed.php [new file with mode: 0644]
mod/choice/classes/event/instances_list_viewed.php [new file with mode: 0644]
mod/choice/classes/event/report_viewed.php [new file with mode: 0644]
mod/choice/index.php
mod/choice/lang/en/choice.php
mod/choice/lib.php
mod/choice/report.php
mod/choice/tests/events_test.php [new file with mode: 0644]
mod/choice/tests/generator/lib.php [new file with mode: 0644]
mod/choice/tests/generator_test.php [new file with mode: 0644]
mod/choice/view.php