Class xapi_handler for H5P statements.
More...
|
static | create (string $component) |
| Returns the xAPI handler of a specific component. More...
|
|
|
string | $component |
| component name in frankenstyle.
|
|
Class xapi_handler for H5P statements.
- Since
- Moodle 3.9
- Copyright
- 2020 Ferran Recio ferra.nosp@m.n@mo.nosp@m.odle..nosp@m.com
◆ create()
static core_xapi\handler::create |
( |
string |
$component | ) |
|
|
staticfinalinherited |
Returns the xAPI handler of a specific component.
- Parameters
-
string | $component | the component name in frankenstyle. |
- Return values
-
handler|null | a handler object or null if none found. |
- Exceptions
-
◆ process_statements()
core_xapi\handler::process_statements |
( |
array |
$statements | ) |
|
|
inherited |
Process a bunch of statements sended to a specific component.
- Parameters
-
statement[] | $statements | an array with all statement to process. |
- Return values
-
int[] | return an specifying what statements are being stored. |
◆ 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 |
Reimplemented from core_xapi\handler.
◆ supports_group_actors()
core_xapi\handler::supports_group_actors |
( |
| ) |
|
|
inherited |
Return true if group actor is enabled.
Note: this method must be overridden by the plugins which want to use groups in statements.
- Return values
-
The documentation for this class was generated from the following file: