Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403]

(no description)

File Size: 153 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: \core_external\external_description