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.

Differences Between: [Versions 311 and 402] [Versions 311 and 403]

This is the external API for this component.

Copyright: 2019 Carlos Escobedo <carlos@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 164 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: external  - X-Ref

This is the external API for this component.

get_trusted_h5p_file_parameters()   X-Ref
get_trusted_h5p_file parameters.

return: external_function_parameters

get_trusted_h5p_file(string $url, int $frame, int $export, int $embed, int $copyright)   X-Ref
Return the H5P file trusted.

The Mobile App needs to work with an H5P package which can trust.
And this H5P package is only trusted by the Mobile App once it's been processed
by the core checking the right caps, validating the H5P package
and doing any clean-up process involved.

param: string $url H5P file url
param: int $frame The frame allow to show the bar options below the content
param: int $export The export allow to download the package
param: int $embed The embed allow to copy the code to your site
param: int $copyright The copyright option
return: array

get_trusted_h5p_file_returns()   X-Ref
get_trusted_h5p_file return

return: external_description