Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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

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.