Search moodle.org's
Developer Documentation

See Release Notes

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

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

(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