Like, 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 MDL-10984)
If this is selected, then there should be additional options:
Import this file regularly: [X]
Every day at: [14]:[30]
Send notifications of problems to: [ martin@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.
- has been marked as being related by
-
MDL-9636 Implement CSV import
- Closed