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 |
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. |