Moodle PHP Documentation 4.1
Moodle 4.1.19+ (Build: 20250706) (3342f23b299)
mod_h5pactivity\xapi\handler Class Reference

Class xapi_handler for H5P statements. More...

Inheritance diagram for mod_h5pactivity\xapi\handler:

Public Member Functions

 statement_to_event (statement $statement)
 Convert a statement object into a Moodle xAPI Event.
 

Detailed Description

Class xapi_handler for H5P statements.

Since
Moodle 3.9

Member Function Documentation

◆ statement_to_event()

mod_h5pactivity\xapi\handler::statement_to_event ( statement $statement)

Convert a statement object into a Moodle xAPI Event.

If a statement is accepted by the xAPI webservice the component must provide an event to handle that statement, otherwise the statement will be rejected.

Parameters
statement$statement
Return values
core::event::base|nulla Moodle event to trigger

The documentation for this class was generated from the following file: