Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Hackfest UK 2014/Email Logging: Difference between revisions

From MoodleDocs
No edit summary
No edit summary
Line 20: Line 20:
*Optionally log body
*Optionally log body


Proposed Table Schema
'''Proposed Table Schema'''


'''messaging_log'''
'''messaging_log'''
*id
*id
*from (user_id)
*from (user_id)
*type (FK mdl_message_provider)
*message_type (FK mdl_message_provider)
*moduleid
*moduleid
*courseid
*courseid

Revision as of 11:16, 17 April 2014

Message Logging and Reporting


  • Contact Name: Larry Zoumas (larry.zoumas@xtractor.se) Martin Sandberg (martin.sandberg@xtractor.se)
  • please add name if interested

Changing the focus to messaging instead of only emails

Notes:

  • Not all emails go through the messaging scary.
  • We might want to make a place to hook into this or decorate it

Capability:

  • Can View own messages
  • Can View other messages
  • Can View courses you own

Options:

  • Optionally log body

Proposed Table Schema

messaging_log

  • id
  • from (user_id)
  • message_type (FK mdl_message_provider)
  • moduleid
  • courseid
  • subject
  • body_id
  • time

messaging_log_user

  • id
  • message_log_id (FK to messaging log)
  • userid
  • to_address (email address or identifier when the message was sent)
  • time
  • status

messaging_log_body

  • id
  • body_text