MDL-10984, this could be part of the base class so all import plugins get it if they want to, but if this is hard then all we need for 1.9 is for the XML import plugin to have it.
Firstly, the file picker needs to have an extra field added under it as an alternative, where you can paste in a URL to a file which is on the web somewhere. (Most likely this will be an export like
If this is selected, then there should be additional options:
Import this file regularly: [X]
Every day at: :
Send notifications of problems to: [ email@example.com ]
Then there would be a cron() hook in grade/import/xml that keeps track of the time with plugin config variables and runs it at the correct time ... and there needs to be a loop written in grade_cron() in gradelib.php to search for and call these cron functions in all the export and import plugins.
Now, we assume that everything is set up correctly. If the incoming data does not have a matching idnumber or userid then we simply ignore it and report the problems to the given email address. Otherwise the data should be inserted as a normal file upload would.