Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

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

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.

return: bool false if file not found, does not return if found - just send the file
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.

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.