Skip to content

Stores xAPI statements from H5P in a LRS

Notifications You must be signed in to change notification settings

ClassCloud/wp-h5p-xapi

 
 

Repository files navigation

This plugin stores all xAPI statements generaded by H5P in a remote LRS.

== Description == This plugin interfaces between the H5P plugin and an xAPI compatible learning record store (LRS) such as Learning Locker. It auto saves xAPI statements generated by the H5P libraries into the LRS.

You can use this plugin as a component to make your Wordpress installation function as a Learning Management System.

After installation you will find a settings page called H5P xAPI in the admin panel. You need to enter the credentials for the connection to the LRS there, please see screenshots and further instructions on the settings page.

If you find this plugin useful we would like to know about it! Tell us your story!.

= For developers =

This plugin makes the following hooks available:

  • h5p-xapi-pre-save
    This filter is applied before the statement is saved. Plugins implementing this filter have a chance to modify or add information to the statement to be saved. It's also possible to block the statement from being saved by returning NULL.

  • h5p-xapi-post-save
    This action is triggered after a statement has been saved to xAPI. The statement that was just saved is passed to the action as a parameter in the form of an array.

  • h5p-xapi-auth-settings
    This filter is applied as a means for other plugins to provide settings for connecting to the xAPI backend. If this filter is implemented, the wp-h5p-xapi plugin will pick up the connection settings from there and operate in the background, i.e. not show any settings page. The filter function should return an array contining the keys endpoint_url, username and password.

== Installation == Download the plugin and upload it in the plugins section of your wordpress instance.

= Optionally, you can do the following =

  1. Download and extract the plugin,
  2. Put the extracted folder in your /wp-content/plugins/ directory,
  3. Navigate to your wordpress instance,
  4. Login and active the plugin.

After installation you will find a settings page called H5P xAPI in the admin panel. You need to enter the credentials for the connection to the LRS there, please see screenshots and further instructions on the settings page.

About

Stores xAPI statements from H5P in a LRS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 82.6%
  • JavaScript 15.8%
  • CSS 1.6%