Author: Andrew Nicols
MDL-83245 core_files: Update file redaction API
This change:
- Moves the API to use the `before_file_created` hook
- Remove the newly created `$notify` param for `after_file_created` hook
- Stop persisting redactable content
- Update manager to not deal with `stored_file` instances
- Correct namespace from `\core\filereact` to `\core_files\redactor`
- Add `redactor` as a valid L2 namespace within the `core_files` API
- Correct config setting names
- Adds missing unit tests
- Disables the service for PHPUnit tests
AMOS BEGIN
MOV [fileredact,core_files],[redactor,core_files]
MOV [fileredact,core_files],[redactor:exifremover,core_files]
MOV [fileredact,core_files],[redactor:exifremover:emptyremovetags,core_files]
MOV [fileredact,core_files],[redactor:exifremover:enabled,core_files]
MOV [fileredact,core_files],[redactor:exifremover:enabled_desc,core_files]
MOV [fileredact,core_files],[redactor:exifremover:failedprocessexiftool,core_files]
MOV [fileredact,core_files],[redactor:exifremover:failedprocessgd,core_files]
MOV [fileredact,core_files],[redactor:exifremover:heading,core_files]
MOV [fileredact,core_files],[redactor:exifremover:mimetype,core_files]
MOV [fileredact,core_files],[redactor:exifremover:mimetype_desc,core_files]
MOV [fileredact,core_files],[redactor:exifremover:removetags,core_files]
MOV [fileredact,core_files],[redactor:exifremover:removetags_desc,core_files]
MOV [fileredact,core_files],[redactor:exifremover:tag:all,core_files]
MOV [fileredact,core_files],[redactor:exifremover:tag:gps,core_files]
MOV [fileredact,core_files],[redactor:exifremover:tooldoesnotexist,core_files]
MOV [fileredact,core_files],[redactor:exifremover:toolpath,core_files]
MOV [fileredact,core_files],[redactor:exifremover:toolpath_desc,core_files]
AMOS END
http://git.moodle.org/gw?p=moodle.git;a=commit;h=b9a5ed77371d1a3af2e255492ae98a6967701dd2
http://github.com/moodle/moodle/commit/b9a5ed77371d1a3af2e255492ae98a6967701dd2
+ 4.5 en [redactor,core_files]
+ 4.5 en [redactor:exifremover,core_files]
+ 4.5 en [redactor:exifremover:emptyremovetags,core_files]
+ 4.5 en [redactor:exifremover:enabled,core_files]
+ 4.5 en [redactor:exifremover:enabled_desc,core_files]
+ 4.5 en [redactor:exifremover:failedprocessexiftool,core_files]
+ 4.5 en [redactor:exifremover:failedprocessgd,core_files]
+ 4.5 en [redactor:exifremover:heading,core_files]
+ 4.5 en [redactor:exifremover:mimetype,core_files]
+ 4.5 en [redactor:exifremover:mimetype_desc,core_files]
+ 4.5 en [redactor:exifremover:removetags,core_files]
+ 4.5 en [redactor:exifremover:removetags_desc,core_files]
+ 4.5 en [redactor:exifremover:tag:all,core_files]
+ 4.5 en [redactor:exifremover:tag:gps,core_files]
+ 4.5 en [redactor:exifremover:tooldoesnotexist,core_files]
+ 4.5 en [redactor:exifremover:toolpath,core_files]
+ 4.5 en [redactor:exifremover:toolpath_desc,core_files]
- 4.5 en [fileredact,core_files]
- 4.5 en [fileredact:exifremover,core_files]
- 4.5 en [fileredact:exifremover:emptyremovetags,core_files]
- 4.5 en [fileredact:exifremover:enabled,core_files]
- 4.5 en [fileredact:exifremover:enabled_desc,core_files]
- 4.5 en [fileredact:exifremover:failedprocessexiftool,core_files]
- 4.5 en [fileredact:exifremover:failedprocessgd,core_files]
- 4.5 en [fileredact:exifremover:heading,core_files]
- 4.5 en [fileredact:exifremover:mimetype,core_files]
- 4.5 en [fileredact:exifremover:mimetype_desc,core_files]
- 4.5 en [fileredact:exifremover:removetags,core_files]
- 4.5 en [fileredact:exifremover:removetags_desc,core_files]
- 4.5 en [fileredact:exifremover:tag:all,core_files]
- 4.5 en [fileredact:exifremover:tag:gps,core_files]
- 4.5 en [fileredact:exifremover:tooldoesnotexist,core_files]
- 4.5 en [fileredact:exifremover:toolpath,core_files]
- 4.5 en [fileredact:exifremover:toolpath_desc,core_files]