1 |
efrain |
1 |
This files describes API changes in core_xapi libraries and APIs,
|
|
|
2 |
information provided here is intended especially for developers.
|
|
|
3 |
|
|
|
4 |
=== 4.3 ===
|
|
|
5 |
* The default state store will throw and exception if the activity ID is not
|
|
|
6 |
a numeric value. This is to avoid problems with the database when using
|
|
|
7 |
the default state store. If a plugin requires a non numeric activity ID,
|
|
|
8 |
it must implement its own state store.
|
|
|
9 |
* New xAPI state webservices:
|
|
|
10 |
- core_xapi_delete_states: delete all user state data for an activity
|
|
|
11 |
|
|
|
12 |
=== 4.2 ===
|
|
|
13 |
|
|
|
14 |
* A new state store has been introduced. Now plugins can store state data
|
|
|
15 |
by overriding the PLUGINNAME\xapi\handler::validate_state method.
|
|
|
16 |
* New core_xapi\state_store class to handle the state data storing. Plugins
|
|
|
17 |
can provide alternative state store implementations by overriding the
|
|
|
18 |
PLUGINNAME\xapi\handler::get_state_store method.
|
|
|
19 |
* New xAPI state webservices:
|
|
|
20 |
- core_xapi_post_state: store a user state data
|
|
|
21 |
- core_xapi_get_state: gets a user state data
|
|
|
22 |
- core_xapi_get_states: get the list of user states
|
|
|
23 |
- core_xapi_delete_state: delete a user state data
|