MDL-61905 workshop: Implement privacy API in grading strategies
commitfe745a0a8433c03fec6ca678cf1516869cd8f22d
authorDavid Mudrák <david@moodle.com>
Fri, 27 Apr 2018 09:07:41 +0000 (27 11:07 +0200)
committerDavid Mudrák <david@moodle.com>
Wed, 9 May 2018 08:01:50 +0000 (9 10:01 +0200)
tree577b6ab3cff29fe754470799fcfc17daee29cb04
parent84a57322c2cbe5a832b8b38ce7938b6c3c697114
MDL-61905 workshop: Implement privacy API in grading strategies

On low level, standard grading strategies subplugins do not store
personal themselves.  They make use of the grades storage provided by
the workshop itself.  What they do contain though is the information
about how the assessment forms were defined. And they are also
responsible for correctly interpreting the values in the central grades
table.

Grading strategies fulfil the contract with the parent workshop module
by implementing the workshopform_provider interface. That gives them a
chance to export data about the assessment form to each of exported
assessment.
12 files changed:
mod/workshop/form/accumulative/classes/privacy/provider.php [new file with mode: 0644]
mod/workshop/form/accumulative/lang/en/workshopform_accumulative.php
mod/workshop/form/accumulative/tests/privacy_provider_test.php [new file with mode: 0644]
mod/workshop/form/comments/classes/privacy/provider.php [new file with mode: 0644]
mod/workshop/form/comments/lang/en/workshopform_comments.php
mod/workshop/form/comments/tests/privacy_provider_test.php [new file with mode: 0644]
mod/workshop/form/numerrors/classes/privacy/provider.php [new file with mode: 0644]
mod/workshop/form/numerrors/lang/en/workshopform_numerrors.php
mod/workshop/form/numerrors/tests/privacy_provider_test.php [new file with mode: 0644]
mod/workshop/form/rubric/classes/privacy/provider.php [new file with mode: 0644]
mod/workshop/form/rubric/lang/en/workshopform_rubric.php
mod/workshop/form/rubric/tests/privacy_provider_test.php [new file with mode: 0644]