TODO:
- Insert info about process in backup_log
- Be able to see that info from admin/backup.php
- Email to the admin with the execution progress
- Create all languaje strings
Bye :-)
Now backup of one course is ENTIRELY encapsulated inside backup_scheduled.php.
And a backup of EVERY course can be executed invoking try.php.
Backing up to a custom directory is working too !!
They are preliminary versions, of course, but seem to work fine :-)
Now I'm going to make all the necessay structures to support the cron system
and to be able to inform the admin about every scheduled backup process.
Ciao :-)
0=Sunday....6=Saturday format, independent from the
visual display of the week. :-)
It uses the "firstdayofweek" string in every languaje pack
(defaults to 0-Sunday)
This is a course setting. By default it is off. When on, there
is a new link in the course admin menu for students, and they can
browse the same report that teachers see.
The report icon is temporary.
- Check if (category_id, category_name) exists.
- Check if (category_name) exists.
- Check if category_id = 1 exists.
- Create a new, initially invisible category withe the info in backup-file.
This solves a issue when restoring to a new course and category_id 1
had been removed !!
- Restoring to courses without section 0 (manually deleted).
- Restoring to sections without mods and null values in its sequence field.
Thanks to Janne Mikkonen...
"course users" are selected. This uses the xxxx_get_participants()
function in every module.
This solves an issue about info in modules belonging to
unenrolled users (Bug #692 closed).
Mantain compatibility with old backups (1.1 and 1.1.1).
Updated version to "1.2 development".
Included support to "label" module (by Martin)
that tells us how far to indent the activity when it is displayed.
This gives us some more flexibility on the course outline to
arrange things as we might like them, into subtopics etc
Backup/restore is updated as well.
There is also a bit more robustness in course/mod.php