Skip to content
Snippets Groups Projects
developers.md 2.10 KiB

Developers

This page contains documentation for developers (people who would like to contribute code to the project).

Setup

From the root directory of your Moodle installation run the script below.

cd admin/tool/log/store; rm -rf xapi; git clone git@github.com:xAPI-vle/moodle-logstore_xapi.git xapi; cd xapi; php -r "readfile('https://getcomposer.org/installer');" | php; rm -rf vendor; php composer.phar install --prefer-source;

If you hadn't already installed the plugin, you'll need to login as an admin and navigate to "http://www.example.com/admin/index.php" (replacing “www.example.com” with your own domain). Once there you can follow on from step 6 of the user installation guide.

Adding Events

Assuming you've followed the instructions above, you can modify and test events by updating the code inside the directories below.

  • vendor/learninglocker/moodle-log-expander
  • vendor/learninglocker/moodle-xapi-translator
  • vendor/learninglocker/xapi-recipe-emitter