Skip to content

Repository files navigation

Moodle Plugin "sync_service"

This plugin for Moodle (type: local) adds serveral functions to the Moodle Web Service API. Those fuctions allow users and external services to remotely create and move new course modules. Furthermore an external service (called "Course Sync Extension Service") containing the newly added functions and other core web service functions, which are helpful to use the added functions, is added.

The plugin is developed to work with the desktop application MoodleSync, used for file synchronization between a local directory and the learning platform Moodle.

Following functions are added:

FunctionDescriptionNote
local_course_add_new_course_module_urlAdd course module URL
local_course_add_new_course_module_resourceAdd course module ResourceFile needs to be uploaded with "/webservice/upload.php" web service call.
local_course_add_new_course_module_directoryAdd course modul FolderFiles need to be uploaded with "/webservice/upload.php" web service call.
local_course_add_files_to_directoryAdd files to existing foldersFiles need to be uploaded with "/webservice/upload.php" web service call; since version 3.0.0
local_course_move_module_to_specific_positionMove a module to a dedicated position
local_course_add_new_sectionCreate and position a new course sectionSince version 2.0.0

Usage:

  • Tested on Moodle versions 3.11.4, 4.0.2, 4.1.2. and 4.2.2.
  • Usage of the "REST (returning JSON)"- web service protocol.
  • To install the plugin, you may use the in-build plugin installation interface. Or you can unzip the archive and copy the folder "sync_service" into the directory "\server\moodle\local". Afterwards restart Moodle, log-in as an admin and follow the installation process.
  • To use the added fuctions, either enable and use the added external service (file upload and file download must be allowed) or create a new external service.
  • Be aware: the plugins setting "restrictedusers" is disabled.

About

Moodle plugin for extending the Moodle Web Service API for remote course module creation and course file synchronisation.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages