Fixed
Details
Details
Priority
Components
Labels
Assignee
Juan Leyva
Juan LeyvaReporter
Juan Leyva
Juan LeyvaPeer reviewer
Dani Palou
Dani PalouIntegrator
David Monllaó
David MonllaóFix versions
Tester
Marina Glancy
Marina GlancyParticipants
Damyon Wiese
Dani Palou
David Monllaó
Eloy Lafuente
Juan Leyva
Marina Glancy
noreply
Pull from Repository
Pull Main Diff URL
Pull Main Branch
MDL-50032-master
Documentation link
Clockify
Clockify
Created 28 April 2015 at 21:41
Updated 17 October 2016 at 20:20
Resolved 11 March 2016 at 07:54
Pre-built services are good, but they have limitations:
You cannot add new functions (it will require modify the lib/db/services.php and upgrade the site)
You cannot add new functions via add-ons
We need to allow admins (and plugins) to add and remove existing functions, in this way it will be possible to:
Create standard Moodle plugins that add new functions (or remove) to the Mobile service
For the record, the functionality that finally was implemented was:
Add a new attribute "services" in the external functions declaration (/db/services.php file), in this attribute you can now indicate a list of prebuilt services where do you want to add the function.
In this way, via a contributed plugins you can add external functions to the official mobile service to extends its functionality.
This also has the advantage that now Moodle plugins are self-containing. The plugins are responsible of adding their functions to the service (previously, the core services had the plugins external functions hardcoded)