The idea behind the Moodle block is to give an entry point for Moodle classes to be able to use Remote Labs from their classes.
To install this block with Git, you should:
-
Go to
your-moodle-installation/blocks
-
git clone THIS-URL lms4labs
That creates a lms4labs
in your Moodle folder. You're done!
-
Download the block here.
-
Unzip it in
your-moodle-installation/blocks
-
Rename the folder to
lms4labs
.
You are done.
Simple, right?
The installation will setup a lists.php
function that will be queried from the
RLMS to give permission to specific courses to specific labs.
This will respond with the following JSON:
start
: The start index of the list. An integer.number
: The total number of courses. An integer.per-page
: The number of courses per page on each response. Integercourses
: An array ofCourses
objects. Each course object will have anid
which is the ID of the course in the Moodle database, and aname
which is the name of the course in the Moodle DB.
Here is an example of a response:
start: 4,
number: 50,
per-page: 10,
courses: [
{id: 3, name: 'Informática para máquinas'},
{id: 4, name: 'Información sobre lo que siempre quisiste saber sin saber.'}
]