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.

Class for converting files between different file formats using google drive.

Copyright: 2017 Andrew Nicols <andrew@nicols.co.uk>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 271 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: converter  - X-Ref

Class for converting files between different formats using unoconv.

start_document_conversion(\core_files\conversion $conversion)   X-Ref
Convert a document to a new format and return a conversion object relating to the conversion in progress.

param: \core_files\conversion $conversion The file to be converted
return: this

serve_test_document()   X-Ref
Generate and serve the test document.

return: stored_file

poll_conversion_status(conversion $conversion)   X-Ref
Poll an existing conversion for status update.

param: conversion $conversion The file to be converted
return: $this;

are_requirements_met()   X-Ref
Whether the plugin is configured and requirements are met.

return: bool

supports($from, $to)   X-Ref
Whether a file conversion can be completed using this converter.

param: string $from The source type
param: string $to The destination type
return: bool

get_supported_conversions()   X-Ref
A list of the supported conversions.

return: string