This new messaging system replaces all the various email_to_user() calls.
They are now replaced by events triggers, and the messages are then
processed centrally according to user preferences and sent to one or more
processors (email, popup, jabber etc...)
This code is not finished yet, a lot of work still has to be done on the
interface. However, the basic structure is there and should be working.
Luis and I will be reviewing and polishing this heavily in the next few weeks.
This patch allows the much requested selection of individual instances of modules within a course to backup and restore.
It needs A LOT of testing and probably some prettyifying too.
- It's automatic. No setting for it. Does it sound ok?
- Any info related to non-exported modules is skipped.
- Any info related to non-exported users is skipped.
for scheduled backups and only done in SITE backups. Structure is:
<MESSAGES>
<MESSAGE>
Content of the message with one flag to difference read & unread
</MESSAGE>
<CONTACTS>
<CONTACT>
Content of the contact
</CONTACT>
</CONTACTS>
</MESSAGES>
message_get_participants() should include contact users too!!
- Old (>4 hour) directories are deleted at the beginning of the
execution, so the disk full problem should be out!
- There are 2 types of errors:
- Controlled errors: The backup process finish although something
has been wrong.
- Uncontrolled errors: The backup process dies (memory fault, apache
problem, electric problem...:-)).
- Now scheduled backup is able to detect previous uncontrolled errors to
avoid repeating the same course always. It'll be deferred to the next
execution.
- Every time that a backup cycle has finished, admins will receive an email
with the summary of the execution.
- The 'ERROR' text will be present in email subjects if something was wrong.
With this, all should be ok (I hope).
Merged from MOODLE_14_STABLE
configured to 48 hours). Force to execute the clean before doing the
backup itself. This should avoid the disk full of temp backup files
issue. See bug 1520.
http://moodle.org/bugs/bug.php?op=show&bugid=1520
Changes merged from MOODLE_13_STABLE.
Solve an important issue about scheduled backups not working properly
when encoding links...
Added support for event->visible in backup & restore.
TODO: Add wwwroot to backup/restore to use it when decoding.
Change the system to encode forum calls.
- Now course events are supported in backup & restore.
- in manual backups
- in scheduled backups
- Fixed important bug when restoring groups.
- Added support to the "user change password" action
(with some changes done in login/change_password.php)
Please, test it !!!!
old is that status in backup_logs table. If there is no activity
in that period, then the script status is unlocked automatically.
This prevents to become RUNNING for ever !!!