upgrade.txt 1.2 KB

1234567891011121314151617181920212223242526
  1. This files describes API changes in /message/ messaging system,
  2. information provided here is intended especially for developers.
  3. === 3.1 ===
  4. * get_message_processors accepts an addition parameter for testing, which will just reset processor and exit.
  5. * Deprecated method message_current_user_is_involved() has been removed.
  6. === 2.9 ===
  7. * Renderer method \core_message_renderer::manage_messagingoptions now accepts a user id parameter as well.
  8. === 2.6 ===
  9. * Message processor extending message_output, should return true in can_send_to_any_users()
  10. if it supports message sending to internal (noreply/support) users.
  11. * Message API has been changed to allow attachments. Message processors that can support
  12. attachments can now use additional parameter as a part of $eventdata. To send attachments,
  13. $eventdata should contain properties called "attachment" (must be stored_file) and
  14. "attachname" (string). Currently, email message processor is the only one to support
  15. attachments.
  16. === 2.2 ===
  17. required changes:
  18. * lib/messagelib.php message_send($eventdata)
  19. $eventdata->userto should contain a property called "emailstop", $eventdata->userto->emailstop
  20. If it is absent it will be retrieved from the user table causing an additional database query