Moodle PHP Documentation 4.4
Moodle 4.4.9+ (Build: 20250706) (82fb415b695)
mod_h5pactivity\xapi\handler Class Reference
Inheritance diagram for mod_h5pactivity\xapi\handler:

Public Member Functions

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

Protected Member Functions

 validate_state (state $state)
 Validate a xAPI state.
 

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

◆ validate_state()

mod_h5pactivity\xapi\handler::validate_state ( state $state)
protected

Validate a xAPI state.

Check if the state is valid for this handler.

This method is used also for the state get requests so the validation cannot rely on having state data.

Parameters
state$state
Return values
boolif the state is valid or not

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