Class handler handles basic xapi statements.
More...
|
static | create (string $component) |
| Returns the xAPI handler of a specific component. More...
|
|
|
string | $component |
| component name in frankenstyle.
|
|
Class handler handles basic xapi statements.
- Copyright
- 2020 Ferran Recio
◆ __construct()
core_xapi\handler::__construct |
( |
string |
$component | ) |
|
|
finalprotected |
Constructor for a xAPI handler base class.
- Parameters
-
string | $component | the component name |
◆ create()
static core_xapi\handler::create |
( |
string |
$component | ) |
|
|
staticfinal |
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 | ) |
|
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()
core_xapi\handler::statement_to_event |
( |
statement |
$statement | ) |
|
|
abstract |
Convert a statement object into a Moodle xAPI Event.
If a statement is accepted by validate_statement the component must provide a event to handle that statement, otherwise the statement will be rejected.
Note: this method must be overridden by the plugins which want to use xAPI.
- Parameters
-
- Return values
-
core::event::base|null | a Moodle event to trigger |
Reimplemented in mod_h5pactivity\xapi\handler.
◆ supports_group_actors()
core_xapi\handler::supports_group_actors |
( |
| ) |
|
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: