MDL-46455 backup: Implement backup of standard logstore
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 29 Mar 2015 14:53:07 +0000 (16:53 +0200)
committerMark Nelson <markn@moodle.com>
Fri, 9 Oct 2015 23:23:09 +0000 (16:23 -0700)
commit73c2a354202c7f280bf06d0aacc8db7930a002ff
tree258a45b1de2eefc42fe6298e7d018a180ceac93a
parent6a45e6b169b63c0f11545a4268e294bb27c1d47a
MDL-46455 backup: Implement backup of standard logstore

Using standard subplugin support, this commit implements
the backup of logstore subplugins in general and the
standard logstore in particular. Notes:

- Uses a custom final element (base64_encode_final_element) to
  support the storage of serialized 'other' information in logs.
- Organization: Instead of directly extending backup_subplugin,
  every logstore extends backup_tool_log_logstore_subplugin just
  in case any shared code is needed in the future.
- Implements both course and activity logs, sharing the structure
  completely (both are based in contextid to pick the target
  information, from database or whatever other logstores use).
admin/tool/log/backup/moodle2/backup_tool_log_logstore_subplugin.class.php [new file with mode: 0644]
admin/tool/log/store/standard/backup/moodle2/backup_logstore_standard_subplugin.class.php [new file with mode: 0644]
backup/moodle2/backup_activity_task.class.php
backup/moodle2/backup_course_task.class.php
backup/moodle2/backup_custom_fields.php
backup/moodle2/backup_stepslib.php