◆ 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
-
- Return values
-
core::event::base|null | a 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
-
- Return values
-
bool | if the state is valid or not |
The documentation for this class was generated from the following file:
- mod/h5pactivity/classes/xapi/handler.php