Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 39 and 311]

This file contains the version information for the comments feedback plugin

Copyright: 2012 Davo Smith
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 134 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 functions


Functions that are not part of a class:

assignfeedback_editpdf_pluginfile($course,$cm,context $context,$filearea,$args,$forcedownload,array $options = array()   X-Ref
Serves assignment feedback and other files.

param: mixed $course course or id of the course
param: mixed $cm course module or id of the course module
param: context $context
param: string $filearea
param: array $args
param: bool $forcedownload
param: array $options - List of options affecting file serving.
return: bool false if file not found, does not return if found - just send the file

assignfeedback_editpdf_after_file_updated(stdClass $file, stdClass $filepreupdate)   X-Ref
Files API hook to remove stale conversion records.

When a file is update, its contenthash will change, but its ID
remains the same. The document converter API records source file
IDs and destination file IDs. When a file is updated, the document
converter API has no way of knowing that the content of the file
has changed, so it just serves the previously stored destination
file.

In this hook we check if the contenthash has changed, and if it has
we delete the existing conversion so that a new one will be created.

param: stdClass $file The updated file record.
param: stdClass $filepreupdate The file record pre-update.