Class for converting files between different formats using unoconv.
More...
|
const | UNOCONVPATH_DOESNOTEXIST = 'doesnotexist' |
| Does not exist.
|
|
const | UNOCONVPATH_EMPTY = 'empty' |
| Not set.
|
|
const | UNOCONVPATH_ERROR = 'error' |
| Any other error.
|
|
const | UNOCONVPATH_ISDIR = 'isdir' |
| Is a dir.
|
|
const | UNOCONVPATH_NOTESTFILE = 'notestfile' |
| Test file missing.
|
|
const | UNOCONVPATH_NOTEXECUTABLE = 'notexecutable' |
| Not executable.
|
|
const | UNOCONVPATH_OK = 'ok' |
| No errors.
|
|
const | UNOCONVPATH_VERSIONNOTSUPPORTED = 'versionnotsupported' |
| Version not supported.
|
|
|
static array | $formats |
| $formats The list of formats supported by unoconv.
|
|
static bool | $requirementsmet = null |
| $requirementsmet Whether requirements have been met.
|
|
Class for converting files between different formats using unoconv.
- Copyright
- 2017 Damyon Wiese
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ are_requirements_met()
static fileconverter_unoconv\converter::are_requirements_met |
( |
| ) |
|
|
static |
◆ fetch_supported_formats()
static fileconverter_unoconv\converter::fetch_supported_formats |
( |
| ) |
|
|
staticprotected |
Fetch the list of supported file formats.
- Return values
-
◆ get_supported_conversions()
fileconverter_unoconv\converter::get_supported_conversions |
( |
| ) |
|
◆ is_format_supported()
static fileconverter_unoconv\converter::is_format_supported |
( |
|
$format | ) |
|
|
staticprotected |
Whether the specified file format is supported.
- Parameters
-
string | $format | Whether conversions between this format and another are supported |
- Return values
-
◆ is_minimum_version_met()
static fileconverter_unoconv\converter::is_minimum_version_met |
( |
| ) |
|
|
staticprotected |
Whether the minimum version of unoconv has been met.
- Return values
-
◆ poll_conversion_status()
fileconverter_unoconv\converter::poll_conversion_status |
( |
conversion |
$conversion | ) |
|
Poll an existing conversion for status update.
- Parameters
-
conversion | $conversion | The file to be converted |
- Return values
-
Implements core_files\converter_interface.
◆ serve_test_document()
fileconverter_unoconv\converter::serve_test_document |
( |
| ) |
|
Generate and serve the test document.
- Return values
-
◆ start_document_conversion() [1/2]
Convert a document to a new format and return a conversion object relating to the conversion in progress.
- Parameters
-
conversion | $conversion | The file to be converted |
- Return values
-
◆ start_document_conversion() [2/2]
core_files\converter_interface::start_document_conversion |
( |
conversion |
$conversion | ) |
|
|
inherited |
Convert a document to a new format and return a conversion object relating to the conversion in progress.
- Parameters
-
conversion | $conversion | The file to be converted |
- Return values
-
◆ supports()
static fileconverter_unoconv\converter::supports |
( |
|
$from, |
|
|
|
$to |
|
) |
| |
|
static |
Whether a file conversion can be completed using this converter.
- Parameters
-
string | $from | The source type |
string | $to | The destination type |
- Return values
-
Implements core_files\converter_interface.
◆ test_unoconv_path()
static fileconverter_unoconv\converter::test_unoconv_path |
( |
| ) |
|
|
static |
Whether the plugin is fully configured.
- Return values
-
The documentation for this class was generated from the following file: