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
mNo edit summary
Line 50: Line 50:


'''Reporting'''
'''Reporting'''
*Search system-wide
*Filter by course
*Search by course and activity
*Filter by activity
*Search by user
*Filter by user
*Search by message_type
*Filter by message_type
*Search by sent datetime
*Filter by sent datetime
*Search by subject
*Filter by subject

Revision as of 11:36, 17 April 2014

Message Logging and Reporting


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

Description This plugin will allow admins and teachers to search through messages sent to users. The purpose is to easily answer the question of whether or not a user was notified of an important event, such as a face-to-face session, quiz deadline, etc.

Notes:

  • Not all emails go through the messaging system. This needs to be investigated and fixed.
  • We might want to allow a place for developers to add hooks or decorate this functionality

Capabilities:

  • Can view own messages
  • Can view other messages
  • Can view messages in your courses (teacher)

Options:

  • Optionally log body of message

Proposed Table Schema

messaging_log

  • id
  • from (user_id)
  • from_address (email address or identifier when the message was sent)
  • 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


Reporting

  • Filter by course
  • Filter by activity
  • Filter by user
  • Filter by message_type
  • Filter by sent datetime
  • Filter by subject